Skip to content

Rewind /Restore failed to revert all the code changes. #394

Closed

Description

@Dev-Muhammad-Junaid

Summary

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

  1. Read Project Codebase
  2. Make multiple Changes
  3. Use Restore to Move to older version
  4. Use Rewind to go to previous Checkpoint
  5. Both Fails to restore all the changes and some changes are reverted some are not.

Command Code Version

Updated 0.26.18 → 0.26.25
0.26.25

Operating System

macOS

Terminal/IDE

Terminal

Shell

zsh

Additional context

No response

Activity

  1. vipulgupta2048 commented on May 26, 2026

    @vipulgupta2048
    Member

    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?

  2. vipulgupta2048 commented on Jul 24, 2026

    @vipulgupta2048
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions