What this thread does
Do first: Enter /rewind, preview an earlier interaction, and choose whether to restore chat, AI edits, or both.
Short answer
Use the interactive picker to select an earlier interaction, then choose whether to rewind chat, revert AI edits, or do both. The state restored is before the selected interaction. The release notes list /rewind in v0.27.0 (2026-02-03).
What to do
| Item | Value / action |
|---|---|
| Open picker | /rewind then Enter, or press Esc twice |
| Select / inspect | Up/Down to navigate; preview shows the prompt and changed-file count; Enter selects |
| Both | Rewind conversation and revert code changes |
| Chat only | Rewind conversation; keeps file changes |
| Files only | Revert code changes; keeps chat |
| Cancel | Do nothing (esc) |
| No file changes | File-reversion choices are hidden |
| Excluded changes | Manual edits and changes made by the shell tool ! |
Inspect the target interaction and choose the narrowest restoration you need. If you only revert files, tell the model the files changed so it can continue from accurate context.
Limits and open questions
Rewinding discards the removed conversation from the model’s memory and can discard file changes. It also crosses compression points by rebuilding stored history. Only edits made through AI edit tools can be reverted; it is not a general shell or manual-edit undo.
Not for: OpenCode session revert commands.
Sources
Checked
2026-11-17; read Gemini CLI Rewind, Gemini CLI release notes; no command was run.
Started from a post by @google-gemini, packaged by the editor. Original post