NousResearch/hermes-agent

Agent tool message sanitization and repair fixes

Cluster 78071 · agent. Data as of

Nothing open on GitHub. Fix merged in #97167 on 28 Aug 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 #97167. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #97167. That is separate from the fix event.
Still open
Nothing open on GitHub.

These issues and PRs address gaps in sanitizing and repairing agent message sequences, specifically around tool call IDs (missing, empty, or whitespace-only) and stale or orphaned tool call entries.

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.

  • #97167 fix(agent): tool-pair sanitizers — whitespace ids pair, stale empty tool_calls drop, orphan logic unified (salvage #55845 + #78063 + #59434)

    merged to main

    files: agent/agent_runtime_helpers.py, agent/context_compressor.py, tests/agent/test_context_compressor.py, tests/run_agent/test_message_sequence_repair.py

1 PR closed without merging

From the close comments: merged via another change 1

  • #78063 fix(agent): drop stale empty tool_calls on repair_message_sequence merge (#77921) · merged via another change → f316f7d, #97167, #77921, #78071
Closed issues · 1
  • Closed#78071sanitize_api_messages does not catch tool messages with missing/empty tool_call_id
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

Subsystem
agent
Merged PRs
#97167
Closed issues
1
Attempts
1 PR closed without merging
Fix link checked
28 Aug 2026

For your agent

The same facts, typed.