Debugging & Fixing Errors
Learn how to debug issues before reaching for rollback.
Every agent message in your conversation is a checkpoint. If the AI takes your app in the wrong direction, you can roll back to any previous checkpoint and try a different approach.
Each agent message in your chat history has a “Revert this” button. Click it to revert your project to the state it was in right before that message was processed. A confirmation dialog appears:
“All changes made after the selected checkpoint will be permanently lost and cannot be recovered.”
Confirm to roll back. Your app’s code and preview revert to that earlier state, and you can immediately send a new prompt to continue from there.
For smaller issues, a follow-up prompt is usually cheaper and faster than rolling back:
These targeted corrections save tokens compared to rolling back and re-describing everything from scratch.
Build incrementally and check results after each prompt. If you ask the AI to build five screens at once and the third one goes wrong, you have to roll back and lose the fourth and fifth screens too. One feature per prompt gives you more granular rollback checkpoints.
See Prompting Fundamentals for more on structuring your prompts effectively.
Debugging & Fixing Errors
Learn how to debug issues before reaching for rollback.
Token System
Understand how tokens work so you can manage your balance effectively.