Follow Discord
Sweep 06 Nov 2026 · 01:32Z Build v2.1.319 537 read Stable v2.1.311 Latest v2.1.318 Next v2.1.319 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.319 ·

Failed file writes now try to put the original file back

If a fallback file write fails partway, Claude Code now tries to restore the original file and says where the new content was saved

You'll notice Bug Fixes
JSON All of v2.1.319
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
File EditingArea: what it touches
Bug FixesKind: in v2.1.319,
Bug FixesSection of the release
What

Claude 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.

The 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.

Why

This makes it less likely that config or settings files are lost on unusual file systems.

See this entry in the whole of v2.1.319 →

Feedback