# 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.

Web page: https://buildladder.com/answers/ai-broke-something

## What to do

- 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.

## What you do

- 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.

## What your AI tool does

- 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.

## Prompt to copy

```text
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.
```

## Sources

Updated 2026-11-10.

- [Claude Code checkpoints](https://code.claude.com/docs/en/checkpointing)
- [Cursor Agent and checkpoints](https://cursor.com/docs/agent/overview)
- [Codex approvals and security](https://learn.chatgpt.com/docs/agent-approvals-security)
- [Vercel: Instant Rollback](https://vercel.com/docs/instant-rollback)
- [Supabase: database backups](https://supabase.com/docs/guides/platform/backups)
