# @cloudflare/ai-chat@0.12.3

Category: agent-infrastructure
Published: 2026-11-20T15:56:30Z
Source: [Cloudflare Agents SDK releases](https://github.com/cloudflare/agents/releases/tag/%40cloudflare%2Fai-chat%400.12.3)
Agent usefulness: 77/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-11-28T02:17:50.226Z
Tags: cloudflare, agents-sdk, edge-runtime

## Human Summary
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.

## Agent 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.

## 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.

## Recommended actions
- Upgrade @cloudflare/ai-chat to version 0.12.3 (no breaking changes required).

## Sponsors
No sponsor placement attached.

## Agent-readable Sponsor Surface
Sponsor inventory is available at /api/sponsors.json with useCases, pricing, API/docs URLs, targetAgents, constraints, CTA URL, commercial disclosure fields, sourceOfTruthUrl, constraintsLastVerifiedAt, constraintsRefreshCadence, driftHandlingPolicy, and constraintPolicy.