@cloudflare/think@0.5.1
cloudflare/agents@cloudflare/think@0.5.1May 1, 2026by github-actions[bot]
AI Summary
This patch release (@cloudflare/think@0.5.1) fixes several critical issues with WebSocket handling in deployed Workers, chat stream resumption, and race conditions, while also adding support for multimodal workspace reads of images and PDFs.
Key Highlights
- Fixed sub-agent WebSockets on deployed Workers by keeping browser WebSocket owned by parent Agent and forwarding events over RPC
- Fixed resumed chat streams to rebuild partially hydrated assistant responses from replay chunks instead of rendering duplicate text
- Fixed resume ACK race condition that could cause drill-in chat connections to miss terminal stream frames
- Added multimodal-aware workspace reads for images and PDFs
New Features
- Multimodal-aware workspace reads for images and PDFs while maintaining compact persisted tool results
Full Release Notes
### Patch Changes
- [#1443](https://github.com/cloudflare/agents/pull/1443) [`e7d225b`](https://github.com/cloudflare/agents/commit/e7d225b72a743a2cf1491ebf73f06580c668e560) Thanks [@threepointone](https://github.com/threepointone)! - Fix sub-agent WebSockets on deployed Workers by keeping the browser WebSocket owned by the parent Agent and forwarding connect/message/close events to child facets over RPC.
Fix resumed chat streams so a partially hydrated assistant response is rebuilt from replay chunks instead of rendering replayed text as a second assistant text part.
Fix a resume ACK race where drill-in chat connections could miss the terminal stream frame if the helper completed between the resume notification and client acknowledgement.
- [#1435](https://github.com/cloudflare/agents/pull/1435) [`b197faf`](https://github.com/cloudflare/agents/commit/b197faf0ca79d9e921d2f80c5fcafe4899995d11) Thanks [@threepointone](https://github.com/threepointone)! - Add multimodal-aware workspace reads for images and PDFs while keeping persisted tool results compact.