Startup failures from a broken config file now report the file in structured fields
When Claude Code refuses to start because a config file cannot be read, the result now carries an invalid_config_file object with the file and backup paths
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
SDKArea: what it touches
ImprovementsKind: in v2.1.324,
ImprovementsSection of the release
What
When Claude Code runs without its interactive screen, inside another program or through the SDK, it can report its results as stream-json, which is a series of JSON lines that the other program reads. If Claude Code refuses to start because a config file cannot be parsed, the result message has startup_failure_reason set to config_file_invalid. That message can now include a new optional invalid_config_file object with these fields:
backup_searched: whether a backup copy was looked for.
backup_path: where that backup is.
The written description of the startup refusal codes now says that config_file_invalid errors carry invalid_config_file with these paths as fields. Before, it only said that the error names the file.
Why
Programs that embed Claude Code can find the broken file and its backup by reading these fields, instead of picking the path out of the error text. That makes it easier for them to help a user recover from a damaged config file.
Read from
Names in the bundleinvalid_config_fileconfig_file_invalid