Patch Changes
-
#1277
0cd0487Thanks @zebp! - Fix race condition inmessageConcurrencywhere rapid overlapping submits could bypass thelatest/merge/debouncestrategy. The concurrency decision checkedqueuedCount()before the turn was enqueued, but an interveningawait persistMessages()allowed a second message handler to see a stale count of zero and skip supersede checks. A pending-enqueue counter now bridges this gap so overlapping submits are always detected. -
#1272
22da9b1Thanks @threepointone! - WidenuseAgentChatagent prop type to accept both typed and untypeduseAgentconnections. Previously,useAgent<MyAgent>()results could not be passed touseAgentChatdue to incompatiblecalltypes. The agent prop now uses a structural type matching only the fieldsuseAgentChatactually uses.