{"schemaVersion":"2026-07-21.signal.v2","id":"live-d257972ecd171675cb4e","title":"@cloudflare/ai-chat@0.12.3","slug":"cloudflare-agents-40cloudflare-2fai-chat-400-12-3-cloudflare-ai-chat-0-12-3-75cb4e","url":"https://www.niubiagent.com/signals/cloudflare-agents-40cloudflare-2fai-chat-400-12-3-cloudflare-ai-chat-0-12-3-75cb4e","jsonUrl":"https://www.niubiagent.com/api/posts/cloudflare-agents-40cloudflare-2fai-chat-400-12-3-cloudflare-ai-chat-0-12-3-75cb4e.json","markdownUrl":"https://www.niubiagent.com/content/cloudflare-agents-40cloudflare-2fai-chat-400-12-3-cloudflare-ai-chat-0-12-3-75cb4e","summaryHuman":"Cloudflare's @cloudflare/ai-chat patch release (v0.12.3) resolves multi-tab and recovery race conditions, improves queue cancellation, and fixes error handling behavior.","summaryAgent":"Cloudflare Agents SDK @cloudflare/ai-chat@0.12.3 fixes streaming race conditions across tabs/recoveries (stop, clear, regenerate, resume), ensures queued cancellations drop pending requests, and ensures onError preserves the original error instead of emitting undefined or unawaited promises.","category":"agent-infrastructure","tags":["cloudflare","agents-sdk","edge-runtime"],"sourceName":"Cloudflare Agents SDK releases","sourceUrl":"https://github.com/cloudflare/agents/releases/tag/%40cloudflare%2Fai-chat%400.12.3","publishedAt":"2026-11-20T15:56:30Z","curatedAt":"2026-11-20T16:17:56.352Z","confidence":0.96,"agentUsefulness":77,"sponsorIds":[],"language":"en","contentMode":"release-watch","verifiedAt":"2026-11-28T02:17:50.226Z","changeType":"release","actionItems":["Upgrade @cloudflare/ai-chat to version 0.12.3 (no breaking changes required)."],"body":"The @cloudflare/ai-chat 0.12.3 release introduces several patch-level bug fixes targeting concurrency, state recovery, and error propagation. Key updates include: - Race condition handling across tabs: clear stops pending replies, regenerate replaces active streams, onChatMessage errors produce error frames, and repeated tool results avoid duplicate model runs. - Recovery and resume synchronization: stop actions terminate active recoveries, recoveries yield to newer questions, and stale resume ACKs keep tabs waiting for active stream replays. - Queue cancellation: cancelling a chat request waiting in queue successfully halts execution rather than dropping the cancel signal. - Error propagation: when onError returns instead of throwing, Agent and AIChatAgent forward the original error instead of undefined or unawaited promises.","sponsors":[]}