Skip to content

Invalid config.toml (“key with no value, expected '='”) causes severe slowdown; no clear warning / safe mode #52848

Description

@cri84dsl

What version of the Codex App are you using (From “About Codex” dialog)?

codex-cli 0.154.0

What subscription do you have?

ChatGPT Pro

What platform is your computer?

Microsoft Windows 10.0.26200.9457

What issue are you seeing?

Summary
Codex becomes extremely slow/unstable when %USERPROFILE%.codex\config.toml is malformed; no clear warning that config parsing errors are causing degraded performance.

Environment

  • Codex CLI: codex-cli 0.154.0
  • Windows: 10.0.26200.9457

Config path
%USERPROFILE%.codex\config.toml

Observed error
key with no value, expected '=' (while parsing config.toml)

Steps to reproduce

  1. Put an invalid TOML line in %USERPROFILE%.codex\config.toml (e.g. a key with no value / missing '=')
  2. Start Codex
  3. Codex becomes very slow/unstable, without an explicit warning pointing to config.toml as the cause

Expected behavior

  • Show a clear warning/notification that config.toml is invalid and is being ignored (or may cause issues)
  • Provide a “Start with default configuration / safe mode” option (or automatic fallback to defaults)

Actual behavior

  • Performance degradation; only a parse error is visible, and it’s not clear it’s the root cause of slowness.

Workaround
Rename/delete config.toml so Codex recreates a clean config → performance immediately returns to normal.

What steps can reproduce the bug?

  1. Create/modify %USERPROFILE%.codex\config.toml with invalid TOML, e.g.:

    badkey

    (missing '=' value)

  2. Start Codex (codex-cli 0.154.0) and use it normally.

  3. Observe severe slowdown/instability; error shown: "key with no value, expected '='".

  4. Rename/delete %USERPROFILE%.codex\config.toml and restart Codex → performance returns to normal.

What is the expected behavior?

If config.toml fails to parse, Codex should show a clear warning that the config is invalid and automatically fall back to defaults (or offer a “Start with default configuration / safe mode” option), rather than running in a degraded/slow state.

Additional information

No response

Activity

  1. added
    appIssues related to the Codex desktop app
    on Oct 10, 2026
  2. added
    bugSomething isn't working
    CLIIssues related to the Codex CLI
    windows-osIssues related to Codex on Windows systems
    configIssues involving config.toml, config keys, config merging, or config updates
    on Oct 10, 2026
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

    CLIIssues related to the Codex CLIappIssues related to the Codex desktop appbugSomething isn't workingconfigIssues involving config.toml, config keys, config merging, or config updatesperformancewindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions