github cloudflare/agents agents@0.12.4

Patch Changes

  • #1376 6561a3f Thanks @hrushikeshdeshpande! - Avoid throwing when chat stream resume negotiation/replay races with a closed WebSocket connection.

  • #1509 4aa4176 Thanks @threepointone! - Prevent duplicate initial state frames during Agent WebSocket connection setup so client-originated state updates are not overwritten by stale initial state messages.

  • #1476 3c48858 Thanks @whoiskatrin! - Fixed a bug that could cause client state to drift from internal Durable Object state when agent tool calls spanned a Durable Object restart. Recovery now defers user finish hooks until after agent startup and isolates hook failures so one failed mirror write does not block other recovered runs from finalizing.

  • #1514 0371a6f Thanks @threepointone! - Route streamable HTTP server-to-client requests through the originating POST stream when no standalone SSE stream is available.

  • #1500 7090e9e Thanks @threepointone! - Preserve structured tool output shapes when truncating older messages or oversized persisted rows, preventing custom toModelOutput handlers from crashing or mis-replaying compacted results.

    Also harden Think's workspace read tool so legacy raw-string read outputs replay as text instead of stalling subsequent turns.

  • #1504 5d27b71 Thanks @threepointone! - Prune stale sub-agent schedule rows when their owning facet registry entry no longer exists.

  • #1503 7b8ab51 Thanks @threepointone! - Bump PartyServer to pick up transient Durable Object routing retries and expose routingRetry configuration through getAgentByName.

Don't miss a new agents release

NewReleases is sending notifications on new releases.