Minor Changes
- #1484
364a45dThanks @whoiskatrin! - AddcancelOnClientAborttouseAgentChat. Generic browser/client stream cleanup is now local-only by default so server turns can continue and resume; explicitstop()still cancels the server turn. SetcancelOnClientAbort: trueto make generic client aborts cancel the server turn.
Patch Changes
-
#1376
6561a3fThanks @hrushikeshdeshpande! - Avoid throwing when chat stream resume negotiation/replay races with a closed WebSocket connection. -
#1487
752e25aThanks @whoiskatrin! - Close the original WebSocket chat transport stream when the socket disconnects before a terminal response, preventing recovered chat continuations from leavinguseAgentChatstuck in streaming state. -
#1481
12365ddThanks @whoiskatrin! - Fixed approval auto-continuation streams so reasoning chunks keep a validreasoning-startbeforereasoning-deltasequence when continuing from an assistant message that already has reasoning, and preserve the continuation reasoning in the final persisted message. -
#1483
5373f5cThanks @whoiskatrin! - Allow Think agent-tool children to complete without emitting assistant text. Non-chat tool-step agents can now provide structured output throughgetAgentToolOutput, with summaries derived from assistant text, string output, structured output, or an empty string.Fix
useAgentChat().isServerStreamingcleanup when a resumed stream first enters the fallback observer path and later becomes transport-owned.