{"repo":"NousResearch/hermes-agent","public_id":"106120","display_label":"Length continuation behavior when prompt fills context window","summary":"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.","subsystem":null,"counts":{"members":4,"open_issues":0,"open_issues_distinct":0,"open_prs":0,"closed_issues":1,"merged_prs":1,"attempt_prs":2},"landed_fix":{"status":"merged_to_main","basis":"structural","pr":106571,"merged_at":"2026-09-09T18:42:44+00:00"},"resolution":{"state":"resolved","by":"pr-106571"},"freshness":{"state":"verified","last_verified_at":"2026-09-09T18:42:44+00:00","is_stale":false},"grouping":{"backbone":"STRUCTURAL_SPANNING","link_density":0.5},"fix_edges":[{"issue_number":106120,"pr_number":106571,"tier":"verified","basis":"closing_ref","confidence":0.95,"recoverable_from_timeline":true,"pr_merged_at":"2026-09-09T18:42:44+00:00"}],"members":[{"kind":"issue","number":106120,"title":"Length continuation retries make the prompt LONGER when the prompt is what filled the window — 4 attempts, each worse than the last","url":null,"state":"closed"},{"kind":"pr","number":106223,"title":"fix(agent): abort length-continuation when the prompt filled the context window","url":null,"state":"closed","close_reason":{"refs":[{"kind":"pr","value":"#106571","number":106571}],"category":"superseded_by_pr","implication":"superseded"},"merged":false},{"kind":"pr","number":106233,"title":"fix(agent): abort length continuation only on proven context-window exhaustion","url":null,"state":"closed","close_reason":{"refs":[{"kind":"commit","value":"68bc4b216e","number":0},{"kind":"pr","value":"#106571","number":106571}],"category":"implemented_elsewhere","implication":"superseded"},"merged":false},{"kind":"pr","number":106571,"title":"Length continuation stops when the prompt filled the context window (#106120, salvage #106223 #106233)","url":null,"state":"merged","close_reason":{"category":"merged"},"merged":true,"is_fix_pr":true,"fix_tier":"verified","files_changed":["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"]}],"trust":{"default_tier":"verified","includes_suggested":false}}