# NousResearch/hermes-agent · Length continuation behavior when prompt fills context window

## Open now

- Nothing open on GitHub.

These issues and PRs concern a specific edge case where length-continuation retries worsen outcomes when the prompt itself has consumed the full context window. The work involves detecting this condition and aborting continuation attempts accordingly.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #106571. Verify it addresses your case.
- **Recommended:** read PR #106571 (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-106571`. 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.50`: 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

- #106120: Length continuation retries make the prompt LONGER when the prompt is what filled the window — 4 attempts, each worse than the last

## Prior & competing PRs

- **#106571: Length continuation stops when the prompt filled the context window (#106120, salvage #106223 #106233)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/turn_truncation.py`, `contributors/emails/124019182+KoNit-K@users.noreply.github.com`, `contributors/emails/214786078+gaoanze888@users.noreply.github.com`, `tests/agent/test_length_continuation_window_headroom.py`
- **#106223: fix(agent): abort length-continuation when the prompt filled the context window**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#106571`
- **#106233: fix(agent): abort length continuation only on proven context-window exhaustion**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `68bc4b216e`, `#106571`

## Fix status

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