Skip to content

@cloudflare/ai-chat@0.9.4

Choose a tag to compare

@github-actions github-actions released this 22 Jul 16:34
83e093b

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.