Follow Discord
Sweep 27 Oct 2026 · 19:04Z Build v2.1.312 531 read Stable v2.1.308 Latest v2.1.312 Next v2.1.312 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.312 ·

Claude is warned before overwriting a file it has only partly read

If Claude tries to overwrite a file it saw only the start of, a message tells it to edit the file or read all of it first

You'll notice Improvements
JSON All of v2.1.312
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
File ToolsArea: what it touches
ImprovementsKind: in v2.1.312,
ImprovementsSection of the release
What

The Write tool replaces a file's whole contents. Claude may have seen only the beginning of a file, with nothing showing that it later read the whole file in one go. If it then tries to use Write on that file, Claude Code shows it a message. The message tells Claude to do one of two things:

  • Use the edit tool to change only part of the file.
  • Read the whole file in one call first. If the file comes back in pages, try again with the option to read it in full.
Why

This stops Claude from overwriting a large file and losing the parts it never saw.

See this entry in the whole of v2.1.312 →

Feedback