NousResearch/hermes-agent

Fix max_tokens boost lost on truncated tool-call retries

Cluster 72770 · agent. Data as of

Nothing open on GitHub. Fix merged in #121543. Check it covers your case.

The short answer

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

These items address a bug where truncated tool-call retries re-send an identical request because the max_tokens boost is clamped to the already-used cap. The fix preserves the boost and introduces variation in retry behavior.

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.

  • #121543 fix(agent): truncation retries grow the output budget (clamped to model limit); tools-available continuation; refund fallback call

    merged to main

    files: agent/context_compressor.py, agent/conversation_loop.py, agent/turn_context_compaction.py, agent/turn_empty_response.py, agent/turn_final_response.py, agent/turn_iteration_prep.py, agent/turn_truncation.py, tests/agent/test_empty_response_fallback_refund.py, tests/agent/test_partial_stream_continuation_prompt.py, tests/agent/test_run_agent.py, tests/agent/test_truncated_tool_call_boost.py

3 PRs closed without merging

From the close comments: done elsewhere 1 · superseded by another PR 1 · other 1

  • #72802 fix: preserve max_tokens boost on truncated tool-call retries (#72770) · other → 3ac22a3, #121543, #72770
  • #73600 fix(agent): vary truncated tool-call retry instead of re-sending identical request · done elsewhere → 3ac22a3, #72770, #121543
  • #105789 fix(agent): log the truncated tool-call give-up path to agent.log · superseded by another PR → 3ac22a3, #121543, #72770
Closed issues · 1
  • Closed#72770Truncated tool-call retries re-send an identical request: the max_tokens boost is clamped to the cap already used
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.40: 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
#121543
Closed issues
1
Attempts
3 PRs closed without merging
Fix link checked
24 Sep 2026

For your agent

The same facts, typed.