Rewind a session
Rewind takes a session back to one of your messages. The project files return to how they were when you sent that message. The agent forgets every turn from that message on. Nothing is deleted, and you can undo a rewind.
Rewind works in OpenCode sessions. That includes the Claude, ChatGPT, and Grok sessions you start today.
Rewind to a message
- Point at one of your messages in the transcript.
- Select Rewind to here (the arrow under the message).
- Read the sheet. It says how many messages go away and which files change.
- Select Rewind.
To rewind to your latest message, open the command palette and choose Rewind to my last message.
After the rewind:
- The message text returns to the message box. Edit it, then send it again.
- The rewound messages fold under a Rewound line. Select the line to read them. They are read-only.
- The agent's next turn starts from just before that message.
When files changed outside the session
Sometimes a file changed after the agent's turn. You may have edited it yourself, or another session may have changed it. In that case the sheet lists the file and applies nothing. You can:
- Select Cancel to keep your files as they are.
- Select Overwrite and rewind to put the files back anyway.
Undo a rewind
- Find the Rewound line in the transcript.
- Select Undo rewind.
The files and the folded messages come back.
You can undo a rewind until you send your next message. After that, the files are still saved: open Changes and use Restore on the rewind's entry.
What you can't rewind
- A message in a Claude Code, Codex, or Gemini session. Admiral says why.
- A message sent before your Admiral had Rewind. Admiral saved no files for it.
- A session that is working. Stop it first.
- A session in a worktree. This comes later.
- On a phone. Phones show the fold, but you rewind from the desktop for now.
Next steps
- Review changes: read what the agent changed.
- Steer and queue: send your next message.