agents@0.12.1
cloudflare/agentsagents@0.12.1May 1, 2026by github-actions[bot]
AI Summary
This is a patch release (0.12.1) that fixes three issues in the Cloudflare Agents SDK: sub-agent WebSockets on deployed Workers, chat stream resumption with partial hydration, and a race condition in drill-in chat connections during resume acknowledgment.
Key Highlights
- Fixed sub-agent WebSockets on deployed Workers by keeping the browser WebSocket owned by the parent Agent and forwarding events over RPC
- Fixed resumed chat streams to rebuild partially hydrated assistant responses from replay chunks instead of rendering replayed text as duplicate text parts
- Fixed a resume ACK race condition where drill-in chat connections could miss terminal stream frames between resume notification and client acknowledgement
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.