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
- 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
Open PRs0
Fixes on record
-
#106571 Length continuation stops when the prompt filled the context window (#106120, salvage #106223 #106233)
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
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.00means 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 LabAt a glance
- Merged PRs
- #106571
- Closed issues
- 1
- Attempts
- 2 PRs closed without merging
- Fix link checked
- 9 Sep 2026