@cloudflare/ai-chat@0.6.1

cloudflare/agents@cloudflare/ai-chat@0.6.1May 1, 2026by github-actions[bot]

AI Summary

This is a patch release (0.6.1) focused on fixing three critical issues in the Cloudflare AI Chat implementation. The update addresses WebSocket handling for sub-agents on deployed Workers, improves chat stream resumption behavior, and resolves a race condition in drill-in chat connections.

Key Highlights

  • Fixed sub-agent WebSockets on deployed Workers by maintaining browser WebSocket ownership with the parent Agent and forwarding events over RPC
  • Fixed chat stream resumption to rebuild partially hydrated assistant responses from replay chunks instead of rendering duplicate text
  • Fixed a resume ACK race condition where drill-in chat connections could miss terminal stream frames during helper completion

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.