Compaction dead-loop fix: stale reasoning budget handling
NousResearch/hermes-agent · cluster 84371 · agent
Data as of
Nothing open on GitHub. Fix merged in #98998. Check it covers your case.
The short answer
- Known?
- Yes. 6 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #98998. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #98998. That is separate from the fix event. - Still open
- Nothing open on GitHub.
These issues and PRs address a compaction dead-loop caused by mismatched treatment of stale reasoning tokens—preflight charges them but tail-budget walks exclude them, leading to infinite loops in Codex and Responses API sessions. Fixes involve correctly counting or excluding stale thinking tokens in both preflight and tail-budget calculations.
Open issues0
Open PRs0
Fixes on record
-
#98998 fix(compression): compaction dead-loop ended — trigger and tail walks charge stale thinking by wire truth (#84371)
files:
agent/context_compressor.py,agent/conversation_compression.py,agent/conversation_loop.py,agent/message_sanitization.py,agent/model_metadata.py,agent/turn_context.py,tests/agent/test_estimator_parity_84371.py
4 PRs closed without merging
From the close comments: closed without comment 1 · done elsewhere 1 · superseded by another PR 1 · other 1
- #84398 fix(compression): count stale reasoning in Codex tail budgets · closed without comment
-
#84401 fix(compression): count stale reasoning in Responses API tail budgets · done elsewhere →
64cc87e,#84371,#98998 - #84433 fix(compression): exclude stale thinking from preflight to prevent dead-loop (#84371) · superseded by another PR
-
#84436 fix(compression): exclude stale thinking from preflight to prevent dead-loop (#84371) · other →
#84371
Closed issues · 1
- Closed#84371Compaction dead-loop: preflight charges full reasoning replay but tail-budget walk excludes it (middle=0 on codex_responses sessions)
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.33: 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
- Subsystem
- agent
- Merged PRs
- #98998
- Closed issues
- 1
- Attempts
- 4 PRs closed without merging
- Fix link checked
- 31 Aug 2026