{"version":"2.1.324","anchor":"result-message-gains-invalid-config-file-for-unparseable-con","canonical_anchor":"headless-start-errors-invalid-config-file-field-documented","heading":"Startup failures from a broken config file now report the file in structured fields","tier":"notice","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/result-message-gains-invalid-config-file-for-unparseable-con","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### Startup failures from a broken config file now report the file in structured fields\n\nWhen 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\n\n**What**\n\nWhen 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:\n\n- `path`: the config file that could not be read.\n\n- `is_global`: whether it is the global config file.\n\n- `backup_searched`: whether a backup copy was looked for.\n\n- `backup_path`: where that backup is.\n\nThe 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.\n\n**Why**\n\nPrograms 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.\n\n- Area: SDK\n- Names: `invalid_config_file`, `config_file_invalid`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}