Follow Discord
Sweep 23 Nov 2026 · 19:13Z Build v2.1.331 548 read Stable v2.1.323 Latest v2.1.330 Next v2.1.331 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.331 ·

Rewind keeps files after a failed restore and says which ones it kept

When a /rewind restore partly fails, files created since then are kept rather than deleted, reported as heldPaths, with clearer failure messages

Group of 4 You'll notice Improvements
JSON All of v2.1.331
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
SessionsArea: what it touches
ImprovementsKind: in v2.1.331,
ImprovementsSection of the release

What

Rewind restores your files to an earlier point in a session. It now handles partial failures more carefully.

  • Files that did not exist at the earlier point, which rewind would normally delete, are now handled last. If a restore failed earlier in the same run, those files are kept instead of deleted.
  • The rewind result now includes heldPaths, the files it kept, alongside filesChanged, filesFailed and skippedPaths.
  • The rewind message adds a line such as "Kept N file(s) created since then, because a restore failed." after the "Couldn't restore" count.
  • When the backup copy of a file is missing and the file is also gone, this is now logged and counted as a failure.
  • The message when nothing was restored changed from "No files were restored: all differing files failed" to "No files were restored: a file failed and none changed".
  • Backup version numbers are now worked out by one shared helper.
  • In the same change, the check of submodules and worktrees (extra git checkouts) now compares Git LFS pointer files, small stand-ins for large files, by their sha256 against git's own id for the file.

Why

A rewind that partly fails no longer deletes files it could not safely put back, and it tells you which files it left on disk.

See this entry in the whole of v2.1.331 →

Feedback