---
id: 18253
lang: en
title: "Codex audit: reasoning cuts off at exactly 516 tokens, and quotas have nothing to do with it"
published_at: "2026-11-26 00:25:39"
source_name: "Habr AI"
source_url: "https://habr.com/ru/articles/1112460/?utm_campaign=1112460&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/18253"
categories: ["llm"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# Codex audit: reasoning cuts off at exactly 516 tokens, and quotas have nothing to do with it

> **Краткая суть (BLUF):** Codex Desktop users complained that in ultra mode the model had gotten worse at coding and was burning through quota faster. Two engineers went through the logs on Windows and macOS and found a hard wall: reasoning stops at exactly 516 tokens, across 1,498 of 34,523 calls. The "quotas just ran out" explanation didn't hold up: 71.2% of the cutoffs happened when both quota windows were below 80%. If an agent on Codex suddenly seems dumber, look for a cluster at 516 tokens in your logs before you blame the prompt.

In October, users of Codex Desktop in ultra mode started noticing something odd. Models produced long chunks of code instantly, without any visible deliberation, missed obvious things, burned through quota faster, and the reasoning block disappeared from the interface. On Reddit people argued about whether this was a real degradation or a placebo effect. The author of the audit and a colleague decided not to guess and instead checked what sits on disk: the local ~/.codex/ folders, compressed session logs, SQLite databases, and server-side ChatGPT data exports on two machines, Windows 11 and macOS on Apple Silicon.

## Quotas were ruled out first

The simplest explanation is that the subscription ran out and the system is conserving. But in every token_count event, the server itself reports how full the 5-hour and 7-day windows are. The Windows test rig logged 215 sessions and 34,523 server calls from July through November on a Plus plan. The median load was 34% for the 5-hour window and 39% for the weekly one. Only 0.37% and 0.09% of calls, respectively, reached 100%.

The key point: 71.2% of the cutoffs at 516 tokens (1,066 of 1,498) and 73.4% of calls with zero reasoning on high/ultra (2,848 of 3,878) happened when both quotas were under 80% full. In other words, the system was cutting reasoning while the limit was free.

## The 516-token wall

If you plot a histogram of reasoning length, it doesn't taper off smoothly; it hits a threshold. At 515 tokens there were 15 calls, at 517 there were two, and at 516 there were 1,498. Beyond that come multiple peaks: 1,034 tokens (364 calls), 1,552 (98), and 2,070 (41). The macOS picture is similar: 9,387 cutoffs at 516, of which 6,026 were in October.

A reasonable question is whether this is simply a bug in the log counter. To test that, the authors measured the length of the encrypted_content field, which the server returns with every reasoning block. Its size grows almost linearly with token count (correlation 0.995), and at 516 tokens it plateaus around 8 KB, which corresponds to a single block. Each subsequent 518 tokens adds another block of roughly 8 KB. So reasoning is being physically truncated, not just miscounted in the statistics.

The share of responses with no reasoning at all on the first step also rose separately. On gpt-6.1-sol::ultra it climbed from 0% (0 of 238 in August–September) to 47.6% (151 of 317 in October). On gpt-6.1-terra::ultra, 24.2% of responses had no reasoning in November, and median reasoning fell to 21 tokens. Other models in the same projects had no zero-reasoning first steps at all, so bad prompts can't explain the whole pattern.

The economics got worse too. Within a single model, the 5-hour quota consumed per million output tokens rose 18.9% after October 15, and the weekly quota rose 36% (September versus November). Cutoffs without an answer burned 200.1% of the 5-hour quota on the Windows rig, meaning two full windows were wasted.

An independent developer from Reddit confirmed the result. He wrote his own parser and ran it over 246,794 calls, mostly on the $200-per-month Pro plan. He recorded 9,021 cutoffs at 516 tokens and none at 517, and on gpt-6.1-sol::ultra in October, 75.7% of first steps came back without reasoning.

## What changed in the settings

The authors also found a possible trail. On October 22, on the same local binary without a client update, the summary parameter in the turn context switched from detailed to none. On macOS this happened on October 12. Judging by client versions, after the switch the share of two-block reasoning in the 517–700 token range gradually declined. The models.json file embedded in codex.exe sets summary to none by default for all 12 models, and the default reasoning level for the flagship models is low. Background subagents, meanwhile, are configured with xhigh.

The three most-discussed tickets in the openai/codex repository, about the quota spike and the 516 wall, were closed on August 23 within 80 seconds by an OpenAI employee without a single comment. There is no official answer to the substance of the question.

## Limitations and what to do

This is an audit of two machines plus data from one external user, with no confirmation from OpenAI. The cause of the cutoffs, whether a bug, a limit, or deliberate conservation, remains unknown, and the link to the summary change is correlational. The first rig ran on a Plus plan, so results on other plans may differ.

The practical takeaway: if you build workflows on Codex, look at the distribution of reasoning_output_tokens in your own logs. Peaks at 516, 1,034, and 1,552, plus empty reasoning on the first step, point to the same issue. Set the reasoning level and summary mode explicitly rather than relying on defaults. And don't mistake a client setting or a server-side ceiling for model degradation: measure first.

---
- **Первоисточник:** [Habr AI](https://habr.com/ru/articles/1112460/?utm_campaign=1112460&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/18253
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
