Shipping an AI app or agent? Security review in 1 working day: $149 / ₹13,900. Request a review →
AI Review Ready
Home / Error fixes / Elastic section minimums
Fix · Codex desktop

Codex: elastic section minimums must sum to 128000

OpenAI fixed this on their side on 1 Dec 2026 (22:40 IST): "The fix was applied server-side, so no app update is required." Quit the Codex or ChatGPT desktop app completely and open it again. Now seeing got 130000? You probably added the 2,000-token workaround from GitHub to config.toml. Delete that block, save, and restart.

The messages

failed to load configuration: elastic section minimums must sum to DEFAULT_MAX_INPUT_TOKENS (128000), got 126000

The desktop app shows it as: ChatGPT can't load config.toml, so this chat can't resume. Fix config.toml: elastic section minimums must sum to DEFAULT_MAX_INPUT_TOKENS (128000), got 126000. After saving the file, reopen the chat. The same check prints got 130000 when the total is 2,000 over instead of 2,000 under.

What happened

  • From about 06:00 IST on 1 Dec 2026 (00:31 UTC, the first failure in issue #64903), the Codex desktop app and Codex inside the ChatGPT desktop app could not start or resume any chat. Reports came from Windows, macOS and Linux.
  • The standalone Codex CLI kept working, according to several reports (#64851, #64903).
  • Editing or emptying your own config.toml, reinstalling and restarting didn't help at the time: the bad numbers did not come from your file.
  • OpenAI closed the main issue (#64838) at 22:40 IST the same day: "This is now addressed. The fix was applied server-side, so no app update is required."

Fix, in order

  1. Quit the app completely (on Windows, also close it from the system tray; on macOS use Quit, not just the window) and open it again.
  2. Open your config file: %USERPROFILE%\.codex\config.toml on Windows, ~/.codex/config.toml on macOS and Linux (or the folder in CODEX_HOME, if you set it).
  3. Delete this block if it's there. It was shared in a GitHub comment as a temporary workaround, and after OpenAI's fix it pushes the total to 130000:
    [features.guardianv2.sync_elastic_sections.transcript_selected_exec_results]
    min_total_section_tokens = 2000
    max_section_entry_tokens = 2000
    nested_tool_names = ["exec_command"]
  4. Save and restart the app.
  5. Still failing? Use the Codex CLI meanwhile, and add your app version and error to issue #64838 or a new issue on github.com/openai/codex.

Why "got 130000" after the fix

The check adds up the minimum token size of every section and requires exactly 128,000. On 1 Dec the server-sent numbers added up to 126,000, so the workaround added a 2,000-token section to reach 128,000. Once OpenAI corrected the numbers, that extra section makes it 130,000. One Windows user reported exactly this (issue #65018) after "forcing 2,000 extra tokens".

Before you paste config from a GitHub comment

Settings copied from an issue thread stay in your config.toml after the bug is gone, and nobody tells you to remove them. Keep a dated comment next to any workaround you add, and remove it once the issue is closed.

Running Claude Code, Codex or Cursor on real repos, or shipping an AI agent? A Quick Review ($149 / ₹13,900, 1 working day) checks one repo, config or setup for leaked keys, risky agent permissions and MCP servers. Request a Quick Review

FAQ

How do I fix 'elastic section minimums must sum to DEFAULT_MAX_INPUT_TOKENS (128000), got 126000'?

OpenAI fixed it server-side on 1 Dec 2026, with no app update needed. Quit the Codex or ChatGPT desktop app completely and reopen it.

Why do I now get 'got 130000'?

You most likely added the 2,000-token workaround block ([features.guardianv2.sync_elastic_sections.transcript_selected_exec_results]) to config.toml. After OpenAI's fix it puts the total 2,000 over. Delete the block, save and restart.

Do I need to edit config.toml?

Not for the original 126000 error: the numbers came from OpenAI's side, which is why emptying config.toml didn't help. Edit it only to remove a workaround you added.

Does the Codex CLI have this error?

Reports say the standalone Codex CLI kept working while the desktop apps failed.

Related errors

Sources

Read 2 Dec 2026. These tools change often: if a step no longer matches, the linked page wins.

Related free tools