Osegi
AI·2 min read

OpenAI Codex reasoning cut off at exactly 516 tokens, logs show

Two developers dug into their local Codex logs and found reasoning that stops dead at 516 tokens, plus a spike in replies with no reasoning at all.

A developer's laptop showing a code editor and a chart of token counts that hit a hard wall at 516 tokens.
Image: Хабр

Did OpenAI Codex really get worse in October, or was it placebo? Two developers, one on Windows 11 and one on macOS, stopped arguing and opened their own ~/.codex/ folders. What they found: the model's reasoning often stops dead at exactly 516 tokens.

The pair unpacked the .jsonl.zst session files, checked the local SQLite databases and compared the results with OpenAI's open-source Rust code. Users in Codex Desktop's ultra mode had complained that the model spat out long blocks of code instantly, missed obvious things, burned through quota faster, and no longer showed its reasoning.

Is the Codex quota to blame?

Not mainly. On the Windows machine (215 sessions, 34,523 server calls on a Plus plan, July to November 2026) median usage was 34% of the 5-hour window and 39% of the 7-day one. Quota hit 100% in well under 1% of calls. And 71.2% of the cutoffs at 516 tokens (1,066 of 1,498) happened while both quotas sat below 80%.

What is the 516-token wall?

Plotted as a histogram, reasoning tokens don't fade out smoothly. They hit a hard wall at 516, followed by peaks at 1034, 1552 and 2070. On the Mac (155,440 records), the authors counted 9,387 cutoffs at 516, 6,026 of them in October.

Could it just be a counting bug? The authors measured the encrypted reasoning field the server returns with each block. Its length correlates with token count at r = 0.99538, flattens near 8 KB at 516 tokens and grows by one block at each further peak. So the text really is truncated.

They also saw more calls with zero reasoning on the first step. On gpt-6.1-sol::ultra that went from 0 of 238 in August and September to 151 of 317 (47.6%) in October. Other models in the same projects showed none.

A Reddit user ran his own parser over 246,794 calls on a Pro plan and saw the same peaks. On gpt-6.1-sol::ultra, 103 of 136 first steps in October (75.7%) had no reasoning.

What did OpenAI say?

The authors say a GitHub issue about the 516 cluster, #30364, collected 188 comments and 428 reactions with no official reply. On 23 August an OpenAI engineer closed it, along with two big billing issues, as completed within 80 seconds and without a comment. They also link a later change to summary=none to a shift in how many reasoning blocks appear. The audit comes from users' own logs, not from OpenAI.

Apps worth a look

SUMO: the number puzzle

Tap the right tiles, add them up, hit the target. Easy to learn, hard to master. Free, for all ages.

Tags:openaicodexreasoning tokenscodex desktopgithub

More from this day

See all →

More in: AI

See all →