@cloudflare/think@0.7.3
cloudflare/agents@cloudflare/think@0.7.3May 26, 2026by github-actions[bot]
AI Summary
This patch release (@cloudflare/think@0.7.3) improves chat turn recovery and error handling. It adds pre-stream interruption retry capabilities and ensures error statuses are properly returned for stream errors in programmatic chat turns.
Key Highlights
- Chat turn recovery metadata is now stashed before inference starts, enabling better reconciliation of interrupted pre-stream turns
- Pre-stream interruptions automatically retry existing unanswered user messages when it's safe to do so
- Error statuses are now returned for in-band stream errors across programmatic chat turns
New Features
- Pre-stream interruption retry - automatically retries unanswered user messages during pre-stream interruptions
- Improved chat recovery - metadata stashed before inference for better turn reconciliation
- Error status reporting - in-band stream errors now return proper error statuses in programmatic chat turns
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.