Skip to content

codex will silently ignore malformed config.json instead of alerting that its malformed #1408

@geremyCohen

Description

@geremyCohen

What version of Codex is running?

0.1.2505172129

Which model were you using?

o4-mini

What platform is your computer?

Darwin 24.5.0 arm64 arm

What steps can reproduce the bug?

  1. Run codex with a working ~/.codex/config.json file
  2. Remove the opening curly brace of the config.json file, making it now invalid json
  3. Run codex.

What is the expected behavior?

If there is a file and it can't load it, it should throw [fatally] on startup stating the configuration could not be read.

What do you see instead?

Silent failure of loading the config.json. There is no error given that the json file was not parsed and read. Just keeps running with defaults, but user is not aware the existing config.json wasn't parsed and loaded as expected.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions