NousResearch/hermes-agent

Truncated or malformed tool-call JSON repair

Cluster 115061. Data as of

Nothing open on GitHub. Fix merged in #116674 on 20 Sep 2026. Check it covers your case.

The short answer

0open issues
0open PRs
3items grouped
Known?
Yes. 3 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #116674. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #116674. That is separate from the fix event.
Still open
Nothing open on GitHub.

These items address a bug where tool-call argument JSON arriving truncated or malformed was dropped rather than repaired. The work involves correctly tracking brackets outside strings and closing them in stack order to salvage incomplete tool calls.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #116674 fix(agent): misnested or truncated tool-call argument JSON is repaired instead of dropping the tool call (#115061, salvage #115096)

    merged to main

    files: agent/message_sanitization.py, tests/agent/test_repair_tool_call_arguments.py, tests/agent/test_streaming_tool_call_repair.py

1 PR closed without merging

From the close comments: merged via another change 1

  • #115096 fix(agent): count tool-call argument brackets outside strings and close in stack order · merged via another change → 081332f, #116674, #115061, #115096
Closed issues · 1
  • Closed#115061Tool-call JSON that arrives truncated/malformed is not repaired; plugins have no native button callback
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.67: 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

Merged PRs
#116674
Closed issues
1
Attempts
1 PR closed without merging
Fix link checked
20 Sep 2026

For your agent

The same facts, typed.