Minor Changes
-
#1237
f3d5557Thanks @threepointone! - AddbroadcastTransitiontoagents/chat— a pure state machine for
managing StreamAccumulator lifecycle during broadcast/resume streams.
Replaces scattered ref management in useAgentChat with explicit state
transitions. -
#1237
f3d5557Thanks @threepointone! - AddTurnQueuetoagents/chat— a shared serial async queue with
generation-based invalidation for chat turn scheduling. AIChatAgent and
Think now both useTurnQueueinternally, unifying turn serialization
and the epoch/clear-generation concept. Think gains proper turn
serialization (previously concurrent chat turns could interleave).
Patch Changes
-
#1248
c74b615Thanks @threepointone! - Update dependencies -
#1247
31c6279Thanks @threepointone! - AddContinuationStatetoagents/chat— shared state container for auto-continuation lifecycle. AIChatAgent's 15 internal auto-continuation fields consolidated into oneContinuationStateinstance (no public API change). Think gains deferred continuations, resume coordination for pending continuations,onClosecleanup, and hibernation persistence for client tools viathink_request_contexttable.