Kimi reasoning token double-counting and compression bugs
Cluster 81481 · agent. Data as of
Nothing open on GitHub. Fix merged in #98998 on 31 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 #98998. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
unresolved. That is separate from the fix event. - Still open
- Nothing open on GitHub.
These items address two related issues with Kimi model handling: reasoning/reasoning_content fields being charged twice in token estimates, and chat histories incorrectly triggering premature compression. The bug report documents the combined ~2.5x estimate inflation and missing replay of reasoning content on the wire.
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
2 PRs closed without merging
From the close comments: done elsewhere 1 · superseded by another PR 1
Closed issues · 1
- Closed#81481[Bug]: reasoning/reasoning_content double-charged on every historical turn, neither replayed on kimi chat/completions wire — residual ~2.5x estimate inflation after #75884
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
- #98998
- Closed issues
- 1
- Attempts
- 2 PRs closed without merging
- Fix link checked
- 31 Aug 2026