Pricing

Symptom: it worked an hour ago

How to roll back a broken Bolt app

The app was working. You asked for one more feature, then a fix for what that broke, then a fix for the fix. Now the preview is a blank screen or a wall of errors, and every new prompt makes it worse.

Why this happens

Each prompt asks the AI to change code it only half remembers. When one change breaks something, the next fix is built on top of the broken state, so errors compound instead of getting undone.

  • Fixes stack, they don’t reverse. “It’s broken now” gets a new edit, not an undo. After a few rounds the original working code is buried under patches.
  • The AI loses track of what changed. In a long chat it’s working from an older picture of your files, so it “fixes” code that no longer looks the way it thinks.
  • Small changes touch shared files. A feature that edits a layout, router, or config file can break pages that have nothing to do with the feature you asked for.

Step 1: get back to the last working version

Don’t prompt your way out of a broken app. Go back first, then make the change again, carefully.

  1. Use your tool’s built-in version history or restore option to go back to the last point where the app actually worked. In Bolt, earlier versions of the project are tied to earlier steps in the chat.
  2. If your project is connected to GitHub, you can also check out or revert to the last good commit there.
  3. Reload the preview and confirm the app works again before you type another prompt.
  4. Write down, in one sentence, the change you were trying to make. That’s all you carry forward.

Before you build anything new, save or commit this working version so you have a clean restore point next time.

Step 2: redo the change with this prompt

Start a fresh chat if you can, so the AI isn’t working from the broken history. Paste this and fill in the brackets:

The app is working right now. Keep it that way.

I want to add/change: [one sentence].
Last time this broke: [what broke, e.g. blank screen, login page].

Before writing code:
1. List every file you plan to change and why.
2. Tell me which existing features could be affected.
3. Wait for me to say "go".

When I say go:
- Make the smallest change that does this one thing.
- Do not rename, move, or reformat anything else.
- Do not touch [files/areas that are off limits, e.g. auth, database, config].
- Tell me exactly what to click to test it.
If anything outside this feature breaks, stop and tell me instead of fixing it.

Why it works: you start from known-good code, the AI has to show its plan before touching files, and it stops instead of patching when something unexpected breaks.

Know when to stop and roll back

The free 2-Strike Rule card tells you when to stop prompting and go back to a working version, plus what to paste in the fresh chat. One page, keep it next to your editor.

Free via Gumroad: enter $0 and your email at checkout.

Related symptoms

If the AI says it fixed the bug but it’s still there, read Cursor says “Fixed” but the bug is still there. For prompts that handle “every fix breaks something else,” see the Loop Breaker Pack.