NousResearch/hermes-agent

Fix empty tool_calls wedging DeepSeek sessions

Cluster 83312 · agent. Data as of

Nothing open on GitHub. Fix merged in #86654 on 15 Aug 2026. Check it covers your case.

The short answer

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

These issues and fixes address assistant messages with empty tool_calls arrays causing permanent session failures with DeepSeek. The work involves stripping empty tool_calls at the wire boundary and making the sanitization logic idempotent to prevent recurrence.

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.

  • #86654 fix(agent): close the empty tool_calls 400 class at all three chokepoints (#83312, #77921)

    merged to main

    files: agent/agent_runtime_helpers.py, agent/transports/chat_completions.py, tests/agent/transports/test_chat_completions_empty_tool_calls.py, tests/run_agent/test_message_sequence_repair.py

2 PRs closed without merging

From the close comments: done elsewhere 1 · other 1

  • #83600 fix: strip empty tool_calls at wire boundary for DeepSeek compatibility · done elsewhere → #86654, #64345, #77944, #72591
  • #83622 fix(agent): make sanitize_api_messages a fixpoint so dedup cannot re-wedge sessions (#83312) · other → #83312
Closed issues · 1
  • Closed#83312DeepSeek 400: assistant messages with empty tool_calls:[] wedge sessions permanently
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.50: 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
#86654
Closed issues
1
Attempts
2 PRs closed without merging
Fix link checked
15 Aug 2026

For your agent

The same facts, typed.