Patch Changes
-
#1860
f5b1dd8Thanks @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 thetracingAPI. -
#1963
3ce98ffThanks @mattzcarey! - Reconcile staleuseAgentChatserver-streaming state after an errored client reconnects.Reconnect probes now include correlation IDs, and
STREAM_RESUME_NONEdistinguishes 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.