# ChatGPT Can't Load config.toml (Got 126000/130000): What to Fix

> Got 126000 points to settings OpenAI sent: quit and reopen first. Got 130000: remove the block you added. Other text usually names the entry to fix.

- URL: https://blog.laozhang.ai/en/posts/chatgpt-cant-load-config-toml
- Published: 2026-12-01
- Updated: 2026-12-01
- Author: LaoZhang AI Team (https://blog.laozhang.ai/en/about)
- Topic: Troubleshooting
- Tags: OpenAI Codex, ChatGPT Desktop, config.toml, Guardian v2, Error Message, Troubleshooting

---
"ChatGPT can't load config.toml, so this chat can't resume" means the settings used to start that Codex chat failed validation. The cause is the text after the colon, and it isn't always in your file. If yours ends in `got 126000`, users who inspected the app traced the bad value to settings OpenAI sent to the desktop app, so fully quit and reopen ChatGPT before you edit anything. From about 03:40 UTC on December 1, 2026 (7:40 p.m. PT on November 30), people reported chats working again with no change on their side.

If it still says `got 126000` after that, a four-line block added to `config.toml` gets chats to start. If it says `got 130000`, that block is already in your file and you need to remove it. Almost any other text, such as ``Model provider `custom` not found`` or ``key with no value, expected `=` ``, names an entry in your own `config.toml`. Fix that entry, check the file with `codex features list`, and only then reopen the chat.

Your chats are stored separately from `config.toml`, so this message doesn't mean they're gone, and you don't need to delete anything. The results below come from replaying each case on December 1, 2026, against the Codex runtime shipped in ChatGPT desktop 26.1120.50957 for macOS, with an empty throwaway settings folder. Those runs only started or opened chats. They sent no messages and used no affected account.

## What "can't load config.toml, so this chat can't resume" means

The app shows this sentence whenever opening an existing chat fails with an error that begins `failed to load configuration:`. In the app code of 26.1120.50957, the full template is "ChatGPT can't load config.toml, so this chat can't resume. Fix `{location}`: `{detail}`. After saving the file, reopen the chat." Older builds said "thread" instead of "chat"; they are the same thing. When the first message of a new chat fails for the same reason, the heading is "Error submitting message" and the `failed to load configuration:` line sits under it. [GitHub issue 64848](https://github.com/openai/codex/issues/64848) quotes both versions from one Windows PC.

The word "Fix config.toml" is misleading because the app prints it even when the bad value didn't come from that file. Codex combines your `config.toml` with settings the desktop app passes in when it starts a chat, and the combined result is what gets checked. A useful sign is the position: when the location includes a line number, as in `config.toml:2:1`, the problem is in that file at that line. When there is no line number, it may still be your file, but it may also be something the app passed in, and the text decides which.

If "Error submitting message" has a second line that doesn't mention configuration at all, such as `Timeout`, start with [Codex “Error Submitting Message”: Fix It by the Second Line](https://blog.laozhang.ai/en/posts/codex-error-submitting-message) instead.

## Got 126000 or got 130000: add the block or remove it?

Read the number first. The full message is `elastic section minimums must sum to DEFAULT_MAX_INPUT_TOKENS (128000), got 126000`, and the number after "got" is your total. Below 128,000, the block may be needed. Above it, a block you added earlier is now the problem. Do these in order, and stop as soon as chats open.

1. Fully quit ChatGPT, then reopen it and try an old chat. On a Mac press Command-Q. On Windows quit from the system tray, because closing the window can leave it running.
2. If the message still ends in `got 126000`, copy `config.toml` to a dated backup. The file is `~/.codex/config.toml` on macOS and Linux and `%USERPROFILE%\.codex\config.toml` on Windows, or inside `CODEX_HOME` if you set it.
3. Add these four lines at the end of the file, once, and leave everything else as it is:

   ```toml
   [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. Fully quit and reopen again, then open the chat that failed.
5. When the message changes to `got 130000`, delete only those four lines and restart. Don't restore the whole backup, because it would undo any setting saved since.

The block is a community workaround, [first posted in GitHub issue 64838](https://github.com/openai/codex/issues/64838#issuecomment-7297430915) and confirmed there by about ten Windows and Mac users. It doesn't turn off Guardian, the app's automatic review of actions. It only fills in the missing 2,000. The December 1 replay, which passed in the 13 values quoted in [GitHub issue 64903](https://github.com/openai/codex/issues/64903) in place of a capture from OpenAI's servers, gave these results:

| Number shown | Combination that produced it | What to do |
| --- | --- | --- |
| `got 126000` | Sent settings total 126,000; no block, or no `config.toml` at all | Restart first, then add the block |
| `got 127000` | 126,000 plus a block with 1000 instead of 2000 | Set both values back to 2000 |
| `got 130000` | Sent settings already total 128,000, plus the block | Delete the block and restart |
| `got 129000` | 128,000 plus a block with 1000 | Delete the block and restart |
| No error | 126,000 plus the block, 128,000 without it, or the block with nothing sent | Nothing to fix now |

![Four bars against the required 128,000: 126,000 gives got 126000, 126,000 plus the 2,000 block passes, 128,000 passes, and 128,000 plus the block gives got 130000](https://blog.laozhang.ai/posts/en/chatgpt-cant-load-config-toml/img/got-126000-vs-130000-totals.webp)

If you added the block and still see 126000, it's most likely not in the file being read: check `CODEX_HOME`, the Linux home folder if the agent runs in WSL, or the remote host for SSH chats, which one user had to edit separately. Two paste mistakes swap this error for another. Pasting the block twice gives `duplicate key`. If the file already has `guardianv2 = true` (or `false`) under `[features]`, the block gives `cannot extend value of type boolean with a dotted key`; delete that line, or write it as `enabled = true` under its own `[features.guardianv2]` heading, which started normally with the block in the same test.

### Got 126000: where it came from and how to know if it's officially fixed

As of 06:00 UTC on December 1, 2026 (10:00 p.m. PT on November 30), OpenAI hadn't replied in the main reports, its status page listed no incident for this failure, and [GitHub issue 64838](https://github.com/openai/codex/issues/64838) was still open. The explanation comes from users. [Issue 64903](https://github.com/openai/codex/issues/64903) says the desktop app receives a Guardian experiment per account and passes it along when a chat starts, and that its 13 section minimums added up to 126,000. [Issue 64890](https://github.com/openai/codex/issues/64890) compared that with an older cached copy and found one section, `node_repl_evidence`, lowered from 10,000 to 8,000. Codex requires exactly 128,000, a rule you can read in [Codex's budget.rs source file](https://github.com/openai/codex/blob/main/codex-rs/guardian-context/src/budget.rs).

One user in issue 64838 dates the start of the failures to about 00:22 UTC on December 1 (4:22 p.m. PT on November 30), and that issue was opened at 00:37:12 UTC. By 04:10 UTC more than 40 separate issues quoted the number. Then one Windows user's last failure was 03:33:47 UTC, and chats worked from 03:42 with no local change ([issue 64898](https://github.com/openai/codex/issues/64898)). The most direct sign is a Windows user's measurement posted in issue 64838 at 03:51 UTC: 1000 in the block gave 129000, 2000 gave 130000, and removing it and restarting cleared the error, so the base was back at 128,000. A separate [got 130000 report](https://github.com/openai/codex/issues/64910) followed at 03:53 UTC, but it doesn't say whether the block was in the file. Together the recoveries and that measurement suggest the value was corrected on OpenAI's side and reached people at different times, but others were still failing at 04:30 and 04:54 UTC, and OpenAI has announced nothing.

So the practical test for "is it officially fixed" is your own app: take the block out if you added one, fully quit, reopen and open an old chat. If it opens, leave the block out. If it still says 126000, put the block back or work elsewhere for now. People hit by this kept working in Codex on the web, in the phone app and in the standalone CLI, and some in ChatGPT Work. If you don't have the CLI yet, see [Install and Configure Codex CLI on Windows, macOS, or Linux](https://blog.laozhang.ai/en/posts/codex-cli-install).

## What the other errors after the colon mean in config.toml

Any other text usually describes one specific mistake in one entry. Find your text below, go to that entry and fix only that. Each row was produced by putting that mistake in an otherwise valid file and starting a chat on December 1, 2026, with nothing sent by the app. The one exception is the `nested_tool_names` row, which appeared only when Guardian settings were sent too. The wording comes from codex-cli 0.171.0-alpha.13.2, the version inside desktop 26.1120.50957, and other versions may phrase it differently.

### Errors with a line and column number

These point at a place in the file, written as `config.toml:line:column`. For a duplicate the line number is the second copy.

| Text after the colon | What was in the file | Fix |
| --- | --- | --- |
| ``key with no value, expected `=` `` | `model` with no equals sign or value | Finish or delete the line |
| `duplicate key` | The same key, or the same `[table]` heading, twice | Merge the two, keep one |
| ``invalid basic string, expected `"` `` | `model = "gpt-6.2-sol` with no closing quote | Close the quote |
| `string values must be quoted, expected literal string` | Curly quotes: `model = “gpt-6.2-sol”` | Retype straight quotes |
| `too few unicode value digits, expected unicode hexadecimal value` | A Windows path in double quotes: `"C:\Users\me\x.exe"` | Use single quotes: `'C:\Users\me\x.exe'` |
| ``unclosed array, expected `]` `` or ``unclosed table, expected `]` `` | `notify = ["a",` or `[projects.'C:\a'` | Add the closing bracket |
| ``invalid type: integer `5`, expected a string`` | `model = 5` | Put the value in quotes |
| ``unknown variant `full`, expected one of `read-only`, `workspace-write`, `danger-full-access` `` | `sandbox_mode = "full"` | Use one of the three names listed |
| ``unknown variant `yes`, expected `trusted` or `untrusted` `` | `trust_level = "yes"` | Use one of the two names |
| `invalid transport` | An `[mcp_servers.x]` table with neither `command` nor `url` | Add the missing one or delete the table |
| ``model_providers contains reserved built-in provider IDs: `openai`. Built-in providers cannot be overridden. Rename your custom provider (for example, `openai-custom`).`` | A `[model_providers.openai]` table | Rename the table and the `model_provider` line |
| `model_providers.custom: provider name must not be empty` | `[model_providers.custom]` with no `name` | Add `name = "custom"` |
| `` `wire_api = "chat"` is no longer supported. `` | `wire_api = "chat"` in a provider table | Set `wire_api = "responses"`; the provider must support it |

The Windows path row also covers project headings such as `[projects."C:\Users\me\proj"]`, where `\U` is read as the start of a Unicode escape. One odd case is `key with no value` with a column number far past anything you can see. A 200-byte file made only of zero bytes gave `1:201: key with no value`, so a file that looks blank but isn't empty should be replaced from a backup.

### Errors without a line number

The app gives no position for these, so search the file for the name in the message. Reading the text is enough to tell which entry it means.

| Text after the colon | What was in the file | Fix |
| --- | --- | --- |
| ``Model provider `custom` not found`` | `model_provider = "custom"` with no matching table | Restore the table, or delete the line to use the default |
| `failed to read model instructions file <path>/a.md: No such file or directory (os error 2)` | `model_instructions_file = "a.md"`, and the file isn't there | Put the file back or delete the line |
| ``legacy `profile = "a"` config is no longer supported; use `--profile a` with `a.config.toml` instead`` | `profile = "a"` plus `[profiles.a]` | Delete the `profile` line |
| `Failed to read config file <path>/config.toml: invalid utf-8 sequence of 1 bytes from index 0` | The file saved as UTF-16 (other encodings give another index) | Save it again as UTF-8 |
| `transcript_selected_exec_results requires nonempty nested_tool_names` | The 126000 block without its last line | Add the `nested_tool_names` line |

Two things people suspect did not block chats in the same runs. A file saved as UTF-8 with a byte order mark loaded normally. An unknown key, or a key that slid under the wrong heading, only produced the warning "Codex is ignoring 1 unrecognized configuration setting", so the setting has no effect but chats still open.

The exception in this group is ``invalid transport in `mcp_servers.codex_app` `` when your file has no such table. In the August 2026 reports on [GitHub issue 40881](https://github.com/openai/codex/issues/40881), desktop 26.820 builds passed that entry in themselves, mostly with the agent running in WSL on Windows, and one reporter's chats worked again after updating to 26.820.9563.0. A version of it on Macs with several user accounts was reported again on 26.1021.22027 in [issue 56677](https://github.com/openai/codex/issues/56677). Update the app before touching the file.

## Check config.toml before you reopen the app: codex features list

Run `codex features list` in a terminal. With a valid file it lists features and exits 0. With a syntax error or one of the bad values tested, it exits 1 and prints the reason. On December 1, 2026, the runtime inside the desktop app and a standalone Codex CLI 0.166.0 both did this for a bad `sandbox_mode`, a missing provider and a retired setting.

1. Save `config.toml`, then run `codex features list`. If you have no CLI on a Mac, the app's own copy works: `/Applications/ChatGPT.app/Contents/Resources/codex-cli/bin/codex features list`.
2. If it prints an error, fix that entry and run it again. It may be a second mistake hidden behind the first.
3. Run it once more from inside the project folder. A trusted project can have its own `.codex/config.toml`, and in the test a broken one was reported only when the command ran from that folder. OpenAI's [Codex config basics page](https://learn.chatgpt.com/docs/config-file/config-basic) describes how the two files combine.
4. When it lists features, reopen the chat.

A clean result doesn't clear everything. In the December 1 runs the command caught syntax errors and the bad values tested, but it still exited 0 with a Guardian block written with 1000 or missing `nested_tool_names`. It also can't see that an old chat needs a provider table you removed, since an empty file passes too, and it doesn't receive the settings the desktop app passes in, so it can't detect 126000. If the agent runs in WSL, run the command inside WSL, because the `config.toml` in the Linux home is the one being read.

![Run codex features list after saving and again in the project folder: exit 1 means fix the entry and rerun, exit 0 twice means reopen the chat, but it can't detect got 126000, a faulty Guardian block or a removed provider table](https://blog.laozhang.ai/posts/en/chatgpt-cant-load-config-toml/img/codex-features-list-check.webp)

## Old chats show "Model provider custom not found" after switching

Every saved chat remembers the provider it was created with, so removing that provider's table from `config.toml` locks the chats that used it, while chats made with your current login still open. Put the table back under exactly the same ID. IDs are compared letter by letter, so a chat saved as `OpenAI` is not matched by the built-in `openai`.

The message depends on the version. Older desktop builds used the config.toml sentence, as in [GitHub issue 22484](https://github.com/openai/codex/issues/22484). Desktop 26.1120.50957 has its own notice, titled "Model provider unavailable": "This chat uses custom, which is no longer configured. Restore this provider’s configuration to keep using this chat." On December 1, 2026, a hand-written test chat saved with `custom` was refused as "no longer configured" with an empty file and opened once the table was back. The reverse mistake, a top-level `model_provider = "custom"` line with no table, made new chats fail with ``failed to load configuration: Model provider `custom` not found``.

If you still use that provider, restore its full table, with the name, base URL and `wire_api = "responses"`. [Codex Custom Provider Setup: API Key, Base URL, and Auth](https://blog.laozhang.ai/en/posts/codex-config-toml) covers rebuilding one. If you went back to your ChatGPT login and only want the old chats, add this at the end of the file, using the ID from your message in place of `custom`:

```toml
[model_providers.custom]
name = "OpenAI legacy alias"
wire_api = "responses"
requires_openai_auth = true
```

This version comes from users of CC Switch, a provider switching tool, in [CC Switch issue 6658](https://github.com/farion1231/cc-switch/issues/6658). In the December 1 test it opened the chat in the desktop app's runtime, including with `model_provider = "openai"` at the top, but sending a message afterward wasn't tested. Standalone Codex CLI 0.166.0 refused it with "This chat uses custom, but your current provider is openai. Switch to custom to continue." Leave `base_url` out unless you know you need it: one user in issue 22484 set it to `https://chatgpt.com/backend-api/codex` and it worked, while another in the CC Switch thread got a 401.

Switching tools can remove the table again the next time you switch. CC Switch's maintainer wrote on October 10, 2026, that v4.0.0 and later keep a dormant `custom` table for this reason, though one user reported the error back on November 3. Check the file after each switch.

## Reinstall, delete config.toml, downgrade or sign out: what didn't help

For `got 126000`, none of these fixed it in the [64838](https://github.com/openai/codex/issues/64838) and [64848](https://github.com/openai/codex/issues/64848) reports: emptying, renaming or deleting `config.toml`, reinstalling or repairing the app, signing out and back in, clearing caches, or downgrading, which one Mac user tried down to 26.1111.71704. That fits the cause, because the value arrives from outside the file and followed the account to a second PC. Setting `sync_elastic_budgeting = false` or `guardianv2 = false` in the file didn't help either: both still gave `got 126000` in the December 1 replay. Two people could continue by forking a broken chat, but one of them still couldn't start new ones, so treat that as a way to rescue a single chat.

For a mistake in your own file, an empty `config.toml` does start chats, at a price: your providers, MCP servers and other settings go with it. If you can't find the bad entry, rename the file rather than delete it, and copy entries back one at a time.

### Are my chats gone?

No. Chats are kept in the sessions folder and a local database in the same `.codex` folder, and people who renamed `config.toml` on December 1 still had their history. If whole projects are missing from the sidebar, that is another problem: see [Codex Local Projects Disappeared After Update: Don't Re-Add Yet](https://blog.laozhang.ai/en/posts/codex-projects-disappeared-after-update).

## "ChatGPT configuration could not be loaded" at startup is a different error

If a window with that title and the buttons Retry, Sign out and Quit appears before the app opens, the app itself can't start, so there is no chat to reopen. Its text says "ChatGPT cannot start until its configuration is fixed" and gives the reason, and it asks you to save the fix before choosing Retry. The one case reproduced on December 1, 2026, was `approval_policy = "untrusted"`, which made the runtime exit with `approval_policy = "untrusted" is no longer supported; remove this setting`. Delete that line, save and choose Retry. On a work computer, ask your administrator first, because the organization may manage that file.

## Sources

External pages this guide links to, in the order they appear. Last updated 2026-12-01.

- [GitHub issue 64848](https://github.com/openai/codex/issues/64848) (github.com)
- [first posted in GitHub issue 64838](https://github.com/openai/codex/issues/64838) (github.com)
- [GitHub issue 64903](https://github.com/openai/codex/issues/64903) (github.com)
- [Issue 64890](https://github.com/openai/codex/issues/64890) (github.com)
- [Codex's budget.rs source file](https://github.com/openai/codex/blob/main/codex-rs/guardian-context/src/budget.rs) (github.com)
- [issue 64898](https://github.com/openai/codex/issues/64898) (github.com)
- [got 130000 report](https://github.com/openai/codex/issues/64910) (github.com)
- [GitHub issue 40881](https://github.com/openai/codex/issues/40881) (github.com)
- [issue 56677](https://github.com/openai/codex/issues/56677) (github.com)
- [Codex config basics page](https://learn.chatgpt.com/docs/config-file/config-basic) (learn.chatgpt.com)
- [GitHub issue 22484](https://github.com/openai/codex/issues/22484) (github.com)
- [CC Switch issue 6658](https://github.com/farion1231/cc-switch/issues/6658) (github.com)
