# NousResearch/hermes-agent · Skip futile retries when context window is full

## Open now

- 1 issue, 1 PR open on GitHub.
- #106830: Truncated tool call burns 4 max_tokens retries when the prompt already filled the context window (sibling of #106571)
- PR #106836: fix(agent): skip futile max_tokens retries for truncated tool calls on a full context window

These issues and PRs address a scenario where truncated tool calls trigger repeated max_tokens-boost retries even though the prompt has already filled the context window, making those retries pointless. The work involves detecting this condition and skipping the wasteful retry attempts.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 1 open PR(s), 0 merged PR(s), 1 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. 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.67`: 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.

## Open related issues

- #106830: Truncated tool call burns 4 max_tokens retries when the prompt already filled the context window (sibling of #106571)

## Prior & competing PRs

- **#106836: fix(agent): skip futile max_tokens retries for truncated tool calls on a full context window**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `8d79c2ff5`
  - files: `agent/turn_truncation.py`, `tests/run_agent/test_truncation_window_filled_tool_call.py`
- **#106837: fix(turn-truncation): skip futile max_tokens-boost retries when prompt filled the window (#106830)**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#106836`, `#106571`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
