NousResearch/hermes-agent

Length continuation behavior when prompt fills context window

Cluster 106120. Data as of

Nothing open on GitHub. Fix merged in #106571 on 9 Sep 2026. Check it covers your case.

The short answer

0open issues
0open PRs
4items grouped
Known?
Yes. 4 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #106571. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #106571. That is separate from the fix event.
Still open
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.

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.

  • #106571 Length continuation stops when the prompt filled the context window (#106120, salvage #106223 #106233)

    merged to main

    files: agent/turn_truncation.py, contributors/emails/[email protected], contributors/emails/[email protected], tests/agent/test_length_continuation_window_headroom.py

2 PRs closed without merging

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

  • #106223 fix(agent): abort length-continuation when the prompt filled the context window · superseded by another PR → #106571
  • #106233 fix(agent): abort length continuation only on proven context-window exhaustion · done elsewhere → 68bc4b2, #106571
Closed issues · 1
  • Closed#106120Length continuation retries make the prompt LONGER when the prompt is what filled the window — 4 attempts, each worse than the last
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.50: 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

Merged PRs
#106571
Closed issues
1
Attempts
2 PRs closed without merging
Fix link checked
9 Sep 2026

For your agent

The same facts, typed.