The checkpoint marker
A thin checkpoint strip sits above each prompt in the chat:- Saving checkpoint… — the restore point is being captured
- Saved — the strip shows an Undo this turn button for as long as the restore point is available
- Failed — an amber warning tells you this turn will not be undoable; reload the editor if you want a fresh restore point before your next prompt
Undoing a turn
1
Click Undo this turn
Find the checkpoint strip above the prompt you want to undo and click Undo this turn.
2
Review what will be undone
A confirmation dialog lists every file the turn touched, each tagged as created, modified, or deleted. If later prompts have run since, the dialog tells you how many later turns will also be rolled back.
3
Confirm
Before anything changes, your current state is saved as a pinned safety checkpoint (named “Before undoing” plus the prompt label), so the undo itself is reversible. Then the restore runs.
4
Watch the progress
The dialog shows named phases with elapsed time: pinning your current state, restoring files, and pushing the restored files to your preview. You can send the dialog to the background and keep working — closing it never cancels the restore.
5
Read the outcome
When the restore finishes you get a plain summary: how many files were restored, how many already matched and were left alone, and which files added after the restore point were removed (with a list of the removed paths). Your preview refreshes automatically with the restored files.
What gets rolled back
Undoing a turn changes your editor and preview only. Your live site is unchanged until you deploy again. See Checkpoints for how restore points work project-wide.