{"version":"2.1.335","anchor":"config-file-start-over-saves-and-unreadable-config-protecti","canonical_anchor":"config-file-start-over-saves-and-unreadable-config-protecti","heading":"Saving the config file now restarts if the file changed, and skips writing if it was unreadable","tier":"notice","area":"Internals","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/config-file-start-over-saves-and-unreadable-config-protecti","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### Saving the config file now restarts if the file changed, and skips writing if it was unreadable\n\nClaude Code now starts a save of `~\/.claude.json` over if the file changed since it was read, and will not write it if it could not be read at startup\n\n**What**\n\nClaude Code keeps settings and state in `~\/.claude.json`. Saving that file is now more careful:\n\n- If the file changed after Claude Code read it, for example because another Claude Code window wrote to it, the save starts over.\n\n- If the file could not be read when Claude Code started, Claude Code refuses to write it.\n\n- There are now two separate messages for an unreadable config: one for a permissions problem and one for a disk or network fault.\n\n- A message was added for when two Claude Code config files exist, naming the one this run uses.\n\n**Why**\n\nA brief read failure, or two processes writing at the same moment, could previously lead to the config being overwritten and settings lost. These checks are meant to stop that.\n\n- Area: Internals\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}