Overview
While collaborating with Qoder, you may want to return to an earlier state — undo the most recent batch of changes, or restore the conversation to an earlier point and start over. Qoder CLI CN provides this through Rewind: using the user messages in the conversation as checkpoints, it lets you restore the conversation, file changes, or both to an earlier state.
Rewind (/rewind)
Use /rewind to open the rewind interface:
What can be restored
When confirming a rewind, you can choose the scope of restoration:
- Restore conversation and files (default): restore the conversation to the checkpoint, and also revert the file changes Qoder made after that point.
- Restore conversation only: restore the conversation history to the checkpoint; files stay in their current state.
- Restore files only: revert the file changes Qoder made after that point; the conversation stays in its current state.
File changes made through manual editing or shell commands may not be reverted by rewind. Rewind primarily targets changes Qoder made through its file-editing tools.
How it works
Qoder CLI CN records the file-edit history during a session. Each checkpoint corresponds to a user message in the conversation, and Qoder tracks the file changes made after it. When you choose to rewind to a checkpoint:
- If you choose to restore the conversation, the conversation history is truncated back to that checkpoint.
- If you choose to restore files, Qoder reverts the affected files to their state at the checkpoint based on the recorded edit history.
When to use
Rewind is a good fit for these situations:
- Qoder went in the wrong direction, and you want to go back before the fork and re-describe the requirement.
- The latest batch of changes isn't what you wanted, and you want to quickly revert and try another approach.
- You want to start again from an earlier point in the conversation and try a different plan.
Tips
- Before rewinding, check the file impact shown in the interface to confirm what will be reverted matches your expectations.
- For important changes, pairing with Git is safer: committing at key points lets you recover even beyond what rewind can cover.
- Rewind only covers the edit history recorded within the current session; changes across sessions or made manually/via shell are outside its scope.