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.275 ·

Atomic file writes support a 'beforePublish' refusal hook

Atomic file writes can now be aborted mid-write by a new beforePublish check that throws PublishRefusedError

Under the hood Internal Changes
JSON All of v2.1.275
Under the hoodTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
File WritesArea: what it touches
Internal ChangesKind: in v2.1.275,
Internal ChangesSection of the release
What

The internal helper Claude Code uses to write files and other artifacts safely (writing to a temporary location and then swapping it in, so a crash never leaves a half-written file) now supports a beforePublish check that runs just before the write completes. If that check returns false, the write is aborted, a new PublishRefusedError is thrown, and nothing is published, including cleaning up any empty placeholder file that may have been created along the way.

Why

This gives internal callers a way to cancel a write at the last moment based on some condition, without risking a partially-written or stray file being left behind.

See this entry in the whole of v2.1.275 →

Feedback