Skip to content

My AI tool broke something. How do I get back to a working version?

Ask your AI tool to list your saved versions and take your product back to the last one that worked. If you never saved one, use your AI tool’s own undo.

Find your situation

If you use Claude Code and didn’t save a version
Press Esc twice, or type /rewind, pick the message from before it broke, and choose Restore code. It only tracks files Claude edited with its own file tools. A file changed only by a command it ran stays changed.
If you use Cursor and didn’t save a version
Hover over the message from before it broke and click Restore Checkpoint. Your files go back and the chat stays. Checkpoints live only on your computer.
If your site online is broken too
Going back on your computer doesn’t change the site online until you put it online again. On Vercel, click Instant Rollback on the Production Deployment tile. The free Hobby plan can only go back one deployment, and new changes won’t go online until you promote a deployment again.
If it changed data, keys or settings in a service
Git can’t bring those back. Fix settings and keys in each service’s dashboard. Supabase backs up paid plans every day and tells free projects to export their own data, so ask your AI tool to export yours before any big database change.
If each fix breaks something else
Stop stacking fixes. Go back to the last working version, start a new chat, and ask for the change again in smaller steps.

Who does what

You

  • Tell your AI tool which version worked: what you saw, and roughly when.
  • Roll back the site online in your host’s dashboard if visitors can see the problem.
  • Fix data, keys and settings in each service’s dashboard.
  • Choose how small the next step should be.

Your AI tool

  • List your saved versions in plain words.
  • Take your product back to the version that worked.
  • Explain what changed between the working and broken versions.
  • Export your database before a risky change.
  • Redo the change in smaller steps.
Hand this to your AI tool
Something changed and my product doesn’t work anymore. Help me get back to a version that worked.
1. List my saved versions in plain words, with when each was made.
2. Ask me which one worked. Take my product back to it without deleting the newer changes, so we can look at them later.
3. Tell me how to check it works again.
4. Tell me if anything outside these files changed too, like my database, hosting settings or keys, because going back won’t undo those.
If Git isn’t set up here, tell me, and use your own undo or checkpoints if you have them.

This comes from https://buildladder.com/answers/ai-broke-something. If you can open web pages, read https://buildladder.com/answers/ai-broke-something.md for the current version. BuildLadder guide, tool, concept, answer and setup pages all work this way: add .md to the address.

Ask me before you install anything, sign in to anything or spend money. Never ask me to paste a password or secret key into this chat.

Where to go next

Updated Sources: Claude Code checkpoints, Cursor Agent and checkpoints, Codex approvals and security, Vercel: Instant Rollback, Supabase: database backups.