Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.903.894.0
What subscription do you have?
Pro
What platform is your computer?
No response
What issue are you seeing?
.Codex on Windows opened as a completely blank white window and was unusable.
The application processes were running normally in Task Manager. When maximizing/restoring the window, the normal Codex UI sometimes appeared for only a fraction of a second before returning to a white screen.
Rebooting Windows, signing out/in, checking VPN/proxy/Secure DNS, clearing site data/cookies, uninstalling Codex, and reinstalling the latest version did not resolve the issue.
I later installed Codex CLI. The CLI reported:
Error loading config.toml:
C:\Users<username>.codex\config.toml:1:2701
key with no value, expected '='
I inspected config.toml and found:
- File size: 2700 bytes
- Last modified: 2026-09-07 09:24:03 local time
- All 2700 bytes were 0x00 (NUL)
After backing up and renaming only this corrupted config.toml file, Codex CLI immediately started normally.
I then launched the Windows desktop app again. It also immediately displayed normally instead of the blank white screen.
My existing Codex projects/history were still intact.
A normal uninstall/reinstall did not resolve the problem because the corrupted config.toml remained under the user's .codex directory.
What steps can reproduce the bug?
I do not know what originally caused config.toml to become corrupted, so I cannot provide a reliable procedure for reproducing the corruption itself.
The observed failure condition was:
-
A config.toml existed at:
C:\Users<username>.codex\config.toml -
The file size was exactly 2700 bytes.
-
All bytes in the file were 0x00 (NUL).
-
Launch the Codex Windows desktop app.
-
Codex processes start, but the application window remains completely white.
-
Uninstall and reinstall the Codex desktop app.
-
Launch Codex again.
-
The blank white screen remains because the corrupted config.toml is preserved.
Recovery procedure:
-
Back up config.toml.
-
Rename the corrupted config.toml so it is no longer used as the active configuration.
-
Launch Codex CLI.
The CLI starts normally. -
Launch the Windows desktop app.
The GUI also starts normally. -
Existing Codex projects/history remain intact.
What is the expected behavior?
If config.toml cannot be parsed or is corrupted, the Windows desktop application should not fail with only a blank white window.
It should instead:
- display a clear configuration error,
- offer to regenerate/reset the corrupted configuration, or
- safely fall back to a default configuration.
Reinstall/troubleshooting guidance should also account for corrupted files under the user's .codex directory, because a normal uninstall/reinstall did not remove or repair this file.
Additional information
I preserved:
- the corrupted config.toml
- a backup copy
- screenshots of the CLI parse error
- file size and last-modified timestamp
- a Format-Hex dump confirming that all 2700 bytes were 0x00
- screenshots showing successful recovery after renaming config.toml
I can provide these if useful.
I am not claiming that Codex itself caused config.toml to become corrupted. I can only confirm that the corrupted file existed, caused Codex CLI to fail parsing it, and that renaming it immediately restored both Codex CLI and the Windows desktop GUI.
Activity
stevenwest0-gif commentedon Oct 3, 2026
Additional Windows case, 3 Oct 2026: Codex reported
config.tomlparse errorkey with no value, expected '='at line 1, character 4438. The file was about 5 KB, appeared blank in Notepad, and Visual Studio warned it contained binary characters. Renamingconfig.tomltoconfig.toml.bakimmediately restored Codex. I did not run a hex dump, so I cannot confirm all-NUL contents, but the symptoms and recovery closely match this issue. Suggestion: when config parsing fails, Codex should offer to back up and regenerate the config instead of sending users through generic connectivity troubleshooting.sergiobm14 commentedon Oct 28, 2026
Confirmed another Windows occurrence on October 28, 2026: the preserved Codex
config.tomlcontained exactly 7137 NUL (0x00) bytes out of 7137 total bytes (100%), verified with PowerShell. The error wasconfig.toml:1:7138: key with no value, expected '='. Preserving and renaming the corrupted configuration, then relaunching Codex with a regenerated configuration, restored startup. Previous conversations and projects appear intact. The cause remains unknown; no unexpected shutdown has been confirmed in this case. Full technical report: #26421 (comment)Djurata commentedon Nov 8, 2026
I can confirm another occurrence of this issue on Windows, on November 8, 2026.
Error:
ChatGPT configuration could not be loadedC:\Users\<username>\.codex\config.toml:1:3479key with no value, expected '='Additional details:
config.tomltoconfig.toml.bakimmediately restored normal application startup.Expected behavior:
If the configuration becomes corrupted, Codex should automatically detect the issue, preserve a backup, and offer to regenerate the configuration without requiring manual intervention.
I have retained the original file for further investigation if needed.
Thank you.