You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rewind /Restore failed to revert all the code changes. #394
Recently tried out the restore or rewind feature to revert my code changes that were made, but unfortunately it didn't work out as expected. I restored with both code and conversation multiple times till the point of my first or second message, where there were no code changes. The command code failed to restore all the code changes, and my project is now updated with the random code stuff. Some of the files are updated, some of them are not, and I have no idea how to fix them, so this didn't work out as expected.
Expected Behavior
I was expecting my code to be restored to this previous state, and I will have my old changes back, but it didn't work as expected I was expecting my code to be restored to this previous state, and I will have my old changes back, but it didn't work as expected
Actual Behavior
.
Steps to reproduce the issue
Read Project Codebase
Make multiple Changes
Use Restore to Move to older version
Use Rewind to go to previous Checkpoint
Both Fails to restore all the changes and some changes are reverted some are not.
Checkpoints were hardened: restores are now read-back verified, so a failed write can no longer be counted as restored and silently skipped. That was the exact cause of the partial reverts you saw, where some files came back and others didn't. Backups are also byte-safe now, with a stat-first size cap.
Activity
vipulgupta2048 commentedon May 26, 2026
I recently tried this out to test for someone else, and rewind did work for me. Need more information on how to replicate this behavior?
vipulgupta2048 commentedon Jul 24, 2026
Checkpoints were hardened: restores are now read-back verified, so a failed write can no longer be counted as restored and silently skipped. That was the exact cause of the partial reverts you saw, where some files came back and others didn't. Backups are also byte-safe now, with a stat-first size cap.
Update with: npm i -g command-code@latest
Docs: https://commandcode.ai/docs/core-concepts/checkpoints
Closing as fixed. If a restore comes back partial on v1.4.0+, comment with the restore mode you picked and open a new issue.