{"version":"2.1.319","anchor":"in-place-file-write-fallback-made-safer-with-restore-of-the","canonical_anchor":"in-place-file-write-fallback-made-safer-with-restore-of-the","heading":"Failed file writes now try to put the original file back","tier":"notice","area":"File Editing","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319\/e\/in-place-file-write-fallback-made-safer-with-restore-of-the","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319","markdown":"### Failed file writes now try to put the original file back\n\nIf a fallback file write fails partway, Claude Code now tries to restore the original file and says where the new content was saved\n\n**What**\n\nClaude Code normally saves a file by writing a temporary copy and swapping it in. On some file systems that swap fails, and it writes over the file directly instead. It now remembers the original contents first. If the direct write fails partway, it tries to put the original back.\n\nThe error message says what state the file was left in and that the new content was kept at the temporary path. A failure to flush the file to disk is now logged and does not stop the write.\n\n**Why**\n\nThis makes it less likely that config or settings files are lost on unusual file systems.\n\n- Area: File Editing\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 0\/5\n- Scope: individual\n- Heads-up: no"}