Patch Changes
-
#10597
f1a812d- never run a frontend tool'sexecutefor a tool call the backend owns. Tool-call parts gainproviderExecuted: the tool invocation tracker,ToolExecutionStreamandunstable_runPendingToolsskip a call that carries it, even when the run ends before the backend's result arrives. UI message streams set it for provider-executed calls, the data stream format carries it fromaddToolCallPart({ providerExecuted: true })to the client, and@assistant-ui/ai-sdksets it from the AI SDK part'sproviderExecuted. A dynamic tool call is marked only when its part carriesproviderExecuted: true, so otherwise it stays client-runnable as it is in the AI SDK.@assistant-ui/react-langchainholds a call while the graph is paused on an interrupt, and@assistant-ui/evenever hands a call to a frontend tool. (@Yonom) -
#10574
7250300- assistant-stream:UIMessageStreamDecoderforwards a data part's wireidtoonDatawhen the chunk carries one, so an in-place update of a data part is distinguishable from a second part with the same payload. A chunk without anidkeeps the previous callback shape. (@egg119)react-data-stream:
useDataStreamRuntime({ onData })receives that optionalid.