@cloudflare/ai-chat@0.12.3
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.
Why this signal matters
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.
Actionable summary
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.
- Agent usefulness
- 77/100
- Confidence
- 96%
- Canonical data
- JSON + Markdown
What builders should check
- Upgrade @cloudflare/ai-chat to version 0.12.3 (no breaking changes required).