{"version":"2.1.331","anchor":"in-place-file-write-refusal-error-added","canonical_anchor":"in-place-file-write-refusal-error-added","heading":"File rewrites fail if another program replaces the file mid-write","tier":"notice","area":"File Writes","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/in-place-file-write-refusal-error-added","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### File rewrites fail if another program replaces the file mid-write\n\nIf another program replaces or removes a file while Claude Code rewrites it in place, the write now fails with an error asking you to try again\n\n**What**\n\nWhen Claude Code rewrites a file in place (changing the existing file directly rather than writing a new copy), it now checks whether another program replaced or removed the file during the write. If so, the write fails with: Could not rewrite (file) in place: another program replaced or removed it during the write. Try again. The error code is EAGAIN.\n\n**Why**\n\nThe write stops with a clear message instead of overwriting a file another program just put there.\n\n- Area: File Writes\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}