{"version":"2.1.331","anchor":"rewind-now-reports-files-it-kept-heldpaths-after-a-faile","canonical_anchor":"rewind-now-reports-files-it-kept-heldpaths-after-a-faile","heading":"Rewind keeps files after a failed restore and says which ones it kept","tier":"notice","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/rewind-now-reports-files-it-kept-heldpaths-after-a-faile","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Rewind keeps files after a failed restore and says which ones it kept\n\nWhen a `\/rewind` restore partly fails, files created since then are kept rather than deleted, reported as `heldPaths`, with clearer failure messages\n\n**What**\n\nRewind restores your files to an earlier point in a session. It now handles partial failures more carefully.\n\n- 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.\n\n- The rewind result now includes `heldPaths`, the files it kept, alongside `filesChanged`, `filesFailed` and `skippedPaths`.\n\n- 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.\n\n- When the backup copy of a file is missing and the file is also gone, this is now logged and counted as a failure.\n\n- 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\".\n\n- Backup version numbers are now worked out by one shared helper.\n\n- 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.\n\n**Why**\n\nA rewind that partly fails no longer deletes files it could not safely put back, and it tells you which files it left on disk.\n\n- Area: Sessions\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}