Undo & revert
Every AI turn that changes files is saved as a checkpoint, so any change can be rolled back exactly — no AI involved, no credits spent.
Undoing the last change
Section titled “Undoing the last change”- Click the Undo last AI change button (the curved-arrow icon) in the builder header. It appears whenever the most recent AI turn changed files and hasn’t been reverted yet.
- The confirmation, Undo last change?, shows how many files that turn touched.
- Click Undo.
The files that turn changed go back to how they were before it, and the chat adds a note like “Reverted turn — restored 7 files”.
Reverting a specific earlier turn
Section titled “Reverting a specific earlier turn”Each AI reply that changed files carries a ±N files badge in the chat:
- Expand it to see which files that turn created, modified, or deleted.
- Click Revert this turn to roll back just that turn’s files.
- Once reverted, the badge is struck through and marked reverted.
Only the files that turn touched are restored — work from other turns stays. If a later turn changed the same files, those later edits to them are rolled back too.
The three levels compared
Section titled “The three levels compared”| Tool | Scope |
|---|---|
| Undo last AI change in the header | The last AI turn |
| Revert this turn on a chat message | That specific turn |
| Version History | The whole project, any snapshot |
Things worth knowing
Section titled “Things worth knowing”- Typing “undo” in chat is not the same. The chat treats it as an ordinary request: the AI tries to reverse its change by editing files again, which uses credits and isn’t guaranteed to be exact. Use the button or the checkpoint for an exact rollback.
- If reverting would delete a large part of the project — for example, rolling back to a nearly empty starting point — you’re asked first (This revert removes a lot), with Delete & revert to go ahead.
- Reverting is itself safe — the state you reverted from remains in Version History.
- The buttons are disabled while the AI is working on a turn.