@cloudflare/ai-chat@0.7.2
cloudflare/agents@cloudflare/ai-chat@0.7.2May 26, 2026by github-actions[bot]
AI Summary
This patch release (@cloudflare/ai-chat@0.7.2) improves chat recovery and error handling for AI chat turns. It adds the ability to automatically retry interrupted pre-stream messages and returns proper error statuses for stream errors in programmatic chat turns.
Key Highlights
- Pre-stream interruptions now automatically retry unanswered user messages when safe to do so
- Chat turn recovery metadata is stashed before inference starts for better reconciliation
- In-band stream errors now return proper error statuses across programmatic chat turns
New Features
- Automatic retry mechanism for interrupted pre-stream chat turns
- Improved chat recovery system with metadata stashing before inference
- Error status reporting for in-band stream errors in programmatic chat
Full Release Notes
### Patch Changes - [#1559](https://github.com/cloudflare/agents/pull/1559) [`f942ffe`](https://github.com/cloudflare/agents/commit/f942ffe4113bdf074942cc32c2c69922ef633502) Thanks [@cjol](https://github.com/cjol)! - Stash chat turn recovery metadata before inference starts so interrupted pre-stream turns can be reconciled by chat recovery. Pre-stream interruptions now automatically retry the existing unanswered user message when it is still safe to do so. - [#1567](https://github.com/cloudflare/agents/pull/1567) [`3cfa498`](https://github.com/cloudflare/agents/commit/3cfa49878c3ff8495f7f2b1b059a04440449bf7b) Thanks [@cjol](https://github.com/cjol)! - Return error statuses for in-band stream errors across programmatic chat turns.