# NousResearch/hermes-agent · Fix max_tokens boost lost on truncated tool-call retries

## Open now

- 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.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 3 PR(s) closed without merging.
- A fix was merged to main in PR #121543. Verify it addresses your case.
- **Recommended:** read PR #121543 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-121543`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.40`: the share of member 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.

## Closed / duplicate issues

- #72770: Truncated tool-call retries re-send an identical request: the max_tokens boost is clamped to the cap already used

## Prior & competing PRs

- **#121543: fix(agent): truncation retries grow the output budget (clamped to model limit); tools-available continuation; refund fallback call**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - 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`
- **#72802: fix: preserve max_tokens boost on truncated tool-call retries (#72770)**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `3ac22a309b`, `#121543`, `#72770`
- **#73600: fix(agent): vary truncated tool-call retry instead of re-sending identical request**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `3ac22a309b`, `#72770`, `#121543`
- **#105789: fix(agent): log the truncated tool-call give-up path to agent.log**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `3ac22a309b`, `#121543`, `#72770`, `#121543`

## Fix status

- Merged to main in PR #121543 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-24`.
- Subsystem: `agent`
