@cloudflare/ai-chat@0.11.0
cloudflare/agents@cloudflare/ai-chat@0.11.0Aug 27, 2026by ben-reitz
AI Summary
Update regarding chat recovery behavior for `AIChatAgent` and `Think`.
Key Highlights
- Unconditional chat recovery for `AIChatAgent` and `Think`.
- Chat turns now run in a recovery fiber including WebSocket, programmatic, retry, and continuation paths.
Breaking Changes
- `chatRecovery` parameter `false` is no longer supported.
New Features
- Default recovery configuration applied when `false` is supplied by old code.
- Support for `{ continue: false }` in `onChatRecovery()` to prevent automatic inference after interruption.
Full Release Notes
### Minor Changes
- [#2071](https://github.com/cloudflare/agents/pull/2071) [`9620b58`](https://github.com/cloudflare/agents/commit/9620b58fcc78035e1dd9a65a647455f83328bc28) Thanks [@ben-reitz](https://github.com/ben-reitz)! - Make durable chat recovery unconditional for `AIChatAgent` and `Think`.
Every chat turn now runs in a recovery fiber, including WebSocket, programmatic, retry, and continuation paths. `chatRecovery` accepts `true` or a configuration object; `false` is no longer supported. Previously compiled JavaScript that still supplies `false` safely receives the default recovery configuration.
To keep durable bookkeeping while preventing automatic inference after an interruption, return `{ continue: false }` from `onChatRecovery()`. Use durable cancellation, side-effect, or spend state in that hook and tune `chatRecovery` budgets when retries must be bounded.