high97%
Anthropic streaming server-tool input_json_delta overwrites completed client tool_use arguments due to stale cur_tool_call state
In llama-index-llms-anthropic streaming, ContentBlockStopEvent appends the finished ToolUseBlock but does not reset cur_tool_call/cur_tool_json. A subsequent server tool's InputJSONDelta is appended to the stale client ToolUseBlock and overwrites its input, causing agents to execute client tools with wrong arguments.
