Skip to content

Windows Codex blank screen caused by config.toml filled entirely with NUL bytes; reinstall does not recover #44374

Open

Description

@quattrogg-glitch

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:

  1. A config.toml existed at:
    C:\Users<username>.codex\config.toml

  2. The file size was exactly 2700 bytes.

  3. All bytes in the file were 0x00 (NUL).

  4. Launch the Codex Windows desktop app.

  5. Codex processes start, but the application window remains completely white.

  6. Uninstall and reinstall the Codex desktop app.

  7. Launch Codex again.

  8. The blank white screen remains because the corrupted config.toml is preserved.

Recovery procedure:

  1. Back up config.toml.

  2. Rename the corrupted config.toml so it is no longer used as the active configuration.

  3. Launch Codex CLI.
    The CLI starts normally.

  4. Launch the Windows desktop app.
    The GUI also starts normally.

  5. 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

  1. added
    app
    on Sep 10, 2026
  2. added
    bug
    windows-os
    config
    on Sep 10, 2026
  3. stevenwest0-gif commented on Oct 3, 2026

    @stevenwest0-gif

    Additional Windows case, 3 Oct 2026: Codex reported config.toml parse error key 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. Renaming config.toml to config.toml.bak immediately 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.

  4. sergiobm14 commented on Oct 28, 2026

    @sergiobm14

    Confirmed another Windows occurrence on October 28, 2026: the preserved Codex config.toml contained exactly 7137 NUL (0x00) bytes out of 7137 total bytes (100%), verified with PowerShell. The error was config.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)

  5. Djurata commented on Nov 8, 2026

    @Djurata

    I can confirm another occurrence of this issue on Windows, on November 8, 2026.

    Error:
    ChatGPT configuration could not be loaded

    C:\Users\<username>\.codex\config.toml:1:3479

    key with no value, expected '='

    Additional details:

    • Corrupted file size: approximately 3.39 KB
    • Last modified: November 7, 2026, at 18:43
    • Attempting to repair the application did not resolve the problem.
    • Renaming config.toml to config.toml.bak immediately 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugconfigwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions