NousResearch/hermes-agent

repair_message_sequence orphaned tool_calls causing DeepSeek HTTP 400

Cluster 56980. Data as of

Nothing open on GitHub. Fix attempted, not merged.

The short answer

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

One bug report describes HTTP 400 "insufficient tool messages following tool_calls" errors on DeepSeek v4 after long tool-call sessions, attributed to repair_message_sequence. Two pull requests reference the same issue (#56980) and propose different approaches: closing orphaned assistant tool_calls versus stripping them.

Open issues0

No open issues.

Open PRs0

No open pull requests.

2 PRs closed without merging

From the close comments: partial fix 1 · other 1

  • #56990 fix(agent): strip orphan tool_calls in repair_message_sequence (#56980) · partial fix → #56980, #1732
  • #57013 fix(agent): close orphaned assistant(tool_calls) in repair_message_sequence (#56980) · other → #56980, #57039
Closed issues · 1
  • Closed#56980[Bug]: repair_message_sequence fails to prevent HTTP 400 "insufficient tool messages following tool_calls" on DeepSeek v4 after long tool-call sessions
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

Closed issues
1
Attempts
2 PRs closed without merging

For your agent

The same facts, typed.