Fix reasoning token estimates in preflight compression
Cluster 73298 · agent. Data as of
Nothing open on GitHub. Fix merged in #75884 on 1 Aug 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 #75884. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #75884. That is separate from the fix event. - Still open
- Nothing open on GitHub.
These items address a bug where reasoning_details content was incorrectly included in preflight token estimates, causing compression to trigger too early on thinking models. Fixes also touch compression index clamping, failure cooldown, and user-query preservation.
Open issues0
Open PRs0
Fixes on record
-
#75884 fix(compression): index clamps, persisted failure cooldown, user-query preservation, thinking-token estimates
files:
agent/context_compressor.py,agent/model_metadata.py,contributors/emails/[redacted:email],gateway/run.py,tests/agent/test_budget_reasoning_details_exclusion.py,tests/agent/test_compressor_tail_cut_oob_fix.py,tests/agent/test_compressor_zero_user_guard.py,tests/gateway/test_session_hygiene.py
2 PRs closed without merging
From the close comments: done elsewhere 1 · merged via another change 1
Closed issues · 1
- Closed#73298[Bug]: Preflight token estimate counts reasoning_details envelope at chars/4 — compression fires at ~27% of real usage on thinking models
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
- Subsystem
- agent
- Merged PRs
- #75884
- Closed issues
- 1
- Attempts
- 2 PRs closed without merging
- Fix link checked
- 1 Aug 2026