NousResearch/hermes-agent

Gemini parallel tool call streaming parse bugs

Cluster 25333 · agent. Data as of

2 open items. Fix attempted, not merged.

The short answer

1open issue
1open PR
13items grouped
Known?
Yes. 13 related items grouped here, 4 issues already closed.
Fix event
No fix has been merged to main. 7 PRs closed without merging; see the attempts below.
Tracker
The maintainers' tracker marks this unresolved. That is separate from the fix event.
Still open
1 issue and 1 PR.

Multiple bug reports and fix attempts addressing how Gemini's OpenAI-compatible and native endpoints emit parallel tool calls as concatenated or merged JSON during streaming, causing arguments to be dropped or misassigned. Includes related work to route Gemini through the native AI Studio API.

Open issues1

  • Issue#62937[Bug]: Gemini (OpenAI-compat) parallel tool calls are concatenated into one tool_calls entry → arguments dropped as {}

Open PRs1

  • PR#63015fix(agent): split concatenated tool_call args in streaming assembler

7 PRs closed without merging

From the close comments: duplicate 2 · superseded by another PR 2 · won't fix / by design 2 · closed without comment 1

  • #25346 fix(run_agent): split concatenated streamed tool-call args · won't fix / by design → 0430e71, #25333, #25346
  • #25347 fix(agent): repair concatenated JSON tool_call arguments from Gemini parallel calls · superseded by another PR → #25346
  • #26053 fix(run_agent): recover first object from concatenated tool_call args (#25333) · duplicate → #26053, #25347, #25346, #25333, #5
  • #36039 fix(run_agent): split concatenated streamed tool-call args (#25333) · won't fix / by design → #45835
  • #57941 fix(gemini): do not merge distinct parallel calls to the same tool in streaming · duplicate → #24676, #54355, #57165, #57939
Show 2 more
  • #67507 fix(agent): correctly merge parallel tool calls from Gemini endpoints · superseded by another PR → 91665b5
  • #117927 fix(gemini): thought signature sentinel replay and parallel tool calls · closed without comment
Closed issues · 4
  • Closed#25333run_agent: 'Unrepairable tool_call arguments' when Gemini-3-Flash-Preview emits parallel tool calls as }{ — JSON parser drops them
  • Closed#33402[Bug]: stream parser fails to lex parallel tool-calls emitted as concatenated JSON (Gemini 3.5)
  • Closed#57939Gemini streaming: distinct parallel calls to the same tool are merged into one tool call (misreported as "Response truncated due to output length limit")
  • Closed#62940Gemini (OpenAI-compat) parallel tool calls are concatenated into one tool_calls entry → arguments dropped as {}
How this cluster was grouped
  • Link evidence (partly structural links): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
  • Members outside that structural core may belong to a different underlying problem.
  • Pairwise link density 0.16: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. 1.00 means every pair is linked.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
agent
Closed issues
4
Attempts
7 PRs closed without merging

For your agent

The same facts, typed.