Rewind a Grok Build session to an earlier turn
Rewind a Grok Build session to an earlier turn
/rewind restores files and conversation history to a chosen prompt. Official: Sessions, Modes and Commands.
Rewind from the TUI
- Idle the session (finish or cancel the running turn).
- Run
/rewind, or pressEsc Escwhile the prompt is empty. - Pick the rewind point for the prompt you want to return to.
- Confirm. Grok restores files on disk to that point and truncates the conversation to match.
What changes on disk
Rewind modifies files. Reverted edits are lost unless they were already committed to git. Commit or stash anything you may need before you rewind past a large change set.
Related session tools
- Compress history without restoring files:
/compact— see Compact a long Grok Build session. - Branch into a peer session instead of undoing:
/fork— see Fork a Grok Build session. - Export a Markdown copy first: Export a Grok Build session transcript.
Pitfalls
- Rewinding while a turn is still running — cancel or wait first.
- Assuming rewind only edits the chat scrollback; file snapshots come with it.