ta
TanStack
GitHub
ai
Workspace
GitHub
CI Pipeline Executions
Filtered
Runs
Demo
Insights
Compare tasks
Analytics
Sign in
Toggle sidebar
Overview
⌘K
ai
Loading workspace stats
Loading workspace insights...
Statistics interval
7 days
30 days
Latest CI Pipeline Executions
Status
Fix filter
Filter
Fuzzy
Filter range
Sort by
Sort by
Start time
Sort ascending
Sort descending
Succeeded
fix/gemini-duplicate-tool-call-events
857f1f64 Merge e60cef093bffcb1d5aa898261f793dbe02d7ea45 into d3aa104932442bfb0e0268af1c8240a00fe51aa9
by Jeremy Sch...
J
Succeeded
fix/gemini-duplicate-tool-call-events
857f1f64 fix(gemini): drop duplicate tool call emission on UNEXPECTED_TOOL_CALL finish The UNEXPECTED_TOOL_CALL finish handler re-iterated the final chunk's functionCall parts, re-registered them in toolCallMap, and re-emitted TOOL_CALL_START/TOOL_CALL_END. The unconditional per-part loop had already registered and started those same parts earlier in the same iteration, and the trailing finish loop already emits TOOL_CALL_END for every tracked call. The duplicate events made the core engine throw "Duplicate interrupt id in final batch" and abort the chat run. Delete the redundant block; its work is a strict subset of the per-part loop plus the trailing TOOL_CALL_END loop (which also preserve thoughtSignature and merged args that the deleted block dropped). Adds a regression test: a final chunk carrying both functionCall parts and finishReason UNEXPECTED_TOOL_CALL emits exactly one TOOL_CALL_START and one TOOL_CALL_END per tool call.
by Jeremy Sch...
J
Previous
Next