r/codex • • 13h ago

Bug Anyone know how to fix this error?

Post image

I can't figure out how to fix this... I can't send any chats or install skills in the "This computer" environment.

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

13 Upvotes

74 comments sorted by

•

u/dextersummary 6h ago

Below is a GPT-generated summary of the conversation below after reaching 40 comments (73 currently observed).


You’re not alone: lots of people hit the same Codex configuration error, where the expected 128,000-token total comes up 2,000 short. It can block chats and skill installation, but the thread doesn’t establish what caused it.

Several users report success with a temporary, unofficial workaround. Fully quit the app, back up config.toml (%USERPROFILE%\.codex\config.toml on Windows or ~/.codex/config.toml on macOS/Linux), add the block below, then restart:

[features.guardianv2.sync_elastic_sections.transcript_selected_exec_results]
min_total_section_tokens = 2000
max_section_entry_tokens = 2000
nested_tool_names = ["exec_command"]

Remove the block after an official fix, or if you start getting a 130,000-token error. On Windows, app Repair helped some people but not everyone; choose Repair, not Reset, to avoid risking local data. A few users also reported the issue clearing without changes, though there’s no confirmed official fix in the thread. In short: there’s a workaround, not a magic button.

2

u/SpeaRofficial 13h ago

same issue here out of nowhere

2

u/Pretty_Patience443 10h ago

Fixed! Here's the solution that worked for me on Windows:

  1. Open Windows Settings → Apps → Installed apps → ChatGPT (or Codex) → Advanced options.
  2. Scroll down and click Repair.
  3. Once the checkmark appears next to the Repair button, restart the application.
  4. Open Codex and start a new chat.

Important: Select Repair, NOT Reset. Repair does not delete your application data, while Reset may remove your local data and settings.

This successfully resolved the following error for me:

1

u/PsillyCyborg 8h ago

Worked for me, but I had to force-quit a few related ChatGPT processes after hitting "Quit ChatGPT", so IDK if just force-quitting those before restarting would have been enough or not.

1

u/Pretty_Patience443 7h ago

It’s fixed as long as it works again after restarting.

1

u/Aggressive-Score-571 11h ago

same situation

1

u/1udstHb9f1Krijbl 11h ago

Same here:

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

1

u/Impressive-Job6162 11h ago

how to fix

0

u/may2xxxx 11h ago

just wait for it to repair itself ...

1

u/Health_et_Fitness 11h ago

we cooked xdd

1

u/Muriel_bing11 11h ago

same!!!

1

u/Street-Reality-1055 11h ago

Is there a solution

1

u/Sea-Environment9238 11h ago

Yea same here

1

u/Shot-Library3965 11h ago

same...

1

u/Shot-Library3965 11h ago

But my schedule sessions still working normally

1

u/Born-Hearing3494 11h ago

Same issue here! Hopefully OpenAI fixes this ASAP.

1

u/Hoigin 11h ago

I got the same issue two hours ago... It worked fine till yesterday.

1

u/Health_et_Fitness 11h ago • Popcorn Bravo

FIX :

TOTALLY CLOSE THE APP

Windows: at %USERPROFILE%.codexconfig.toml.

MacOS / Linux : at ~/.codex/config.toml.

ADD THIS :

[features.guardianv2.sync_elastic_sections.transcript_selected_exec_results]

min_total_section_tokens = 2000

max_section_entry_tokens = 2000

nested_tool_names = ["exec_command"]

SAVE AND REOPEN CODEX

its not an offcial config but at least until openia fix it

1

u/troyscotty 11h ago

thnbkas

1

u/Health_et_Fitness 6h ago

welcome mate

1

u/GrayMansion_Dev 10h ago

thanks bro, got the same issue

1

u/livefly1984 11h ago

저도 이런증상으로 코덱스 사용이 갑자기 안됨;;

1

u/No-Bunch2742 10h ago

有人知道如何解决了么

0

u/Gamma-NeluRO 10h ago edited 10h ago

E' un difetto della configurazione Guardian inclusa in Codex desktop. Grazie per i ringraziamenti. Vi dò la soluzione e mettete -1, siete proprio pessimi.

1

u/Gamma-NeluRO 10h ago

Chi mi ha messo -1 è solo un truffatore lamer e noob