Codex bug double-counts historical reasoning tokens, triggering premature auto-compaction at ~55% usage

KiwiGeorge · ghdev · 2026-10-12

A bug report against Codex App 0.162.0-alpha.17.2 claims the client re-estimates historical reasoning tokens already counted server-side, inflating the auto-compaction counter. A Pro Max $500 user with a 1M context window and 900k threshold saw compaction start at 55% displayed usage (459,164 tokens): 459,164 server-reported + 324,498 estimated historical reasoning + 4,737 pending tool tokens = 788,399, crossing the effective 784,800 threshold. Compaction took 199 seconds. A minimal repro with gpt-6.1-sol at high effort shows an extra 244–268 tokens on both SSE and WebSocket, with server per-item attribution confirming the reasoning item was already counted.

Original post →

More from coding & agent

coding & agent channel →