github cloudflare/agents @cloudflare/ai-chat@0.9.4

latest releases: @cloudflare/shell@0.4.2, @cloudflare/voice@0.3.5, @cloudflare/codemode@0.4.4...
3 hours ago

Patch Changes

  • #1860 f5b1dd8 Thanks @mattzcarey! - Group SDK-managed initialization, startup, chat interactions, turns, and durable submissions into semantic phases. Storage-heavy setup, hydration, recovery, request persistence, and response persistence each receive a named bucket, keeping inference and tool spans visible without discarding lower-level Durable Object SQLite spans. Each span records agent identity, storage phase, a stable marker for UI grouping, and operation-specific metadata. No-op on runtimes without the tracing API.

  • #1963 3ce98ff Thanks @mattzcarey! - Reconcile stale useAgentChat server-streaming state after an errored client reconnects.

    Reconnect probes now include correlation IDs, and STREAM_RESUME_NONE distinguishes globally idle agents from active continuations owned by another connection. The hook clears fallback streaming state only for a correlated idle response. Reconnect opens are retained while a prior resume or status transition settles, in-flight handshakes are retransmitted on replacement sockets, and all AI SDK resume entry points share one serialization gate.

Don't miss a new agents release

NewReleases is sending notifications on new releases.