Recover when a change broke a working build
Restore the last working behavior, keep recent good work and customer data, then reapply only the change you wanted.
When to use this
When the app worked, you requested a change, and now an important page or flow is broken even though you want to keep the useful parts of the recent work.
Before you start
- Stop sending more repair prompts until you identify the last version that definitely worked.
- The recent change that triggered the problem, copied as accurately as possible.
- The last known working date, time or version description.
- A short list of what still works, what broke and what useful new work you want to keep.
- Safe test accounts and test records for the affected flow.
- An export or written record of any real customer information added since the last working version. Never experiment on the only copy.
The prompt
Recover this app after [RECENT CHANGE OR PROMPT] broke [EXACT BROKEN BEHAVIOR]. Restore the working behavior without discarding [GOOD NEW WORK TO KEEP] or losing customer information added since [LAST KNOWN WORKING VERSION OR TIME]. Do not make another broad change yet. Compare the current version with the last known working version available in this platform's history. List what changed in the affected page, shared elements, login, stored information and external connections. Separate evidence you can see from guesses. Create a recovery plan with three outcomes. Restore [PREVIOUSLY WORKING FLOW]. Preserve [GOOD NEW CONTENT OR FEATURE]. Reapply only [THE INTENDED PART OF THE RECENT CHANGE] after the app is stable. Tell me which outcome can be completed safely and which needs my decision. Treat the app's pages and behavior separately from live customer information. Restoring an earlier visual or app version must not silently erase, replace or expose accounts, bookings, orders, messages, uploads or payments created afterwards. If the platform's restore action may affect stored information, connection settings or permissions, stop and explain the risk before using it. Use the platform's actual version-history, revert or deployment-rollback control when a restore is needed. Do not pretend that writing the word revert in chat has undone the change. Preview the last working version first where the platform allows it. Restore a safe working version or repair the smallest confirmed cause. Then test [BROKEN FLOW] with safe data, plus sign-in, the main navigation, [IMPORTANT FORM OR PAYMENT], the phone layout and one nearby feature that was not broken. Confirm that information added after the last working version is still present. Only after those checks pass, reapply [INTENDED CHANGE] as a narrow change that does not touch [AREAS TO PROTECT]. Test the old working flow and the new change together. If they conflict, keep the stable version and show me the decision instead of forcing both. Do not delete stored information, reset the app, replace the login system, change payment keys or remove access rules. Keep the repair surgical and the explanation calm. Finish with what was restored, what was preserved, what was reapplied and what I should test on the published site.
Already building? Paste this into your project. Starting fresh? Open a free account with a compatible builder below.
Build it on
What this creates
- A comparison between the broken and last working versions
- A recovery plan that separates restoration, preservation and reapplication
- A safe rollback or narrowly targeted repair
- Checks for the repaired flow, nearby features and recent customer information
- A controlled reapplication of only the intended change
- A plain-language recovery record for future problems
Check it worked
Paste the prompt, wait for the build to finish, then confirm these — in plain language, no technical checks needed:
- The action that worked before the change works again with safe test data
- The useful new text or feature you named is still present, or is clearly saved for reapplication
- Customer accounts, bookings, orders, messages and uploads added after the working version are still there
- Sign-in, navigation and the nearby feature you tested still work
- The narrow new change works without breaking the restored flow
- The published site shows the approved working version, not only the editor preview
- You receive a clear account of what was restored and anything that was deliberately left unchanged
Something missing? That's normal — ask for it in one short follow-up message rather than re-running the whole prompt.
Next steps
Reapply the useful change safely
After the old working behavior is restored and verified
Reapply only this part of the change: [EXACT DESIRED RESULT]. Protect [WORKING FLOW, DATA AND PAGES] from modification. Show me the smallest planned change first, then implement it and retest both the restored behavior and the new result.
You'll know it worked when: The intended improvement is present while the recovered flow still passes the same test.
Add a check for the broken behavior
Once the recovery is stable
Add a repeatable safe test for this rule: [WHAT MUST NEVER BREAK AGAIN]. Use test data only. Run it after the current version and explain in plain language how I can ask for the same check after future changes.
You'll know it worked when: The test passes now and gives a clear failure if the same break returns.
Record the recovery for next time
After the live site is confirmed working
Create a short recovery note containing [CHANGE THAT CAUSED THE BREAK], [VISIBLE SYMPTOM], [CONFIRMED CAUSE], [VERSION RESTORED OR FIX APPLIED], [DATA CHECKED] and [FINAL TESTS]. Keep it private to the owner and do not include passwords, payment details or connection keys.
You'll know it worked when: The owner has a private, readable record that makes a repeat problem faster to diagnose.
Watch out for
- More repair prompts can bury the last good state. Stop after the first clear regression and inspect history before asking for another broad fix.
- A chat request to revert may not perform a real rollback. Use the platform's visible Revert, Version History or deployment control and confirm which version is active.
- Restoring pages may not restore stored information in the same way. Code, layout, data and external settings can have separate histories. Never assume a visual rollback safely reverses a data change.
- A live rollback can restore visitors quickly without fixing the draft. Confirm both what the public sees and which version you will continue editing.
- Recent good work needs an inventory. Write down the text, features and records worth preserving before returning to an older version.
- The original change may genuinely conflict with the old behavior. If both cannot coexist safely, keep the stable version and make the tradeoff explicit.
Platform notes
<ul><li><strong>Base44:</strong> Use the actual Revert control or Version History. Base44 can preview an older version, restore it in the editor, or publish an older version while keeping the current draft, which is useful for restoring the live app before repairing the draft.</li><li><strong>Lovable:</strong> Lovable lets you preview and revert to earlier project versions. A version revert may not reverse every stored-data change, so inspect data and permissions separately before assuming the whole app returned to the earlier state.</li><li><strong>v0:</strong> A v0 project deployed on Vercel can return production to a previous deployment. That restores what visitors see, but the project source and any connected data still need separate review through project history or the connected GitHub backup.</li></ul>
Spend fewer credits
Every builder charges you for the work its AI does — so the cheapest habit is thinking before you build. These six rules cut most of the waste, whichever platform you choose.
- Plan in a free chat first. Sketch the whole thing in ChatGPT, Claude or Gemini — pages, features, what each form collects, what it should look like. Thinking there is free; thinking inside a builder is billed.
- Start from a written prompt, not a sentence. "Make me a website" is the most expensive sentence in AI building. A complete first prompt — like the ones on this site — saves dozens of correction rounds.
- Don't be lazy with the details. Every detail you leave out comes back as a correction you pay for. Business name, colors, every page, every form field, what happens after someone submits — put it all in the first prompt.
- One change per message afterwards. "Fix the header, and the form, and the colors" produces a tangle that costs more to unpick than it saved.
- Stuck? Stop patching. If the same fix fails about three times, don't send a fourth correction — describe the whole section's desired end state in one fresh message instead.
- Start free. Upgrade when you need more. Use the free allowance to build and explore your first version. Upgrade when you need more usage or paid features, and check any connected service costs before launch.
The prompts on this page are written to do most of this work for you — that's the point of them.
Read the full guideRelated playbooks
Last reviewed: 2026-07-27