The worst update is the one that ships fine. You ask the AI for a new feature, it works, you deploy, and three days later someone tells you the invoice download has been broken since Tuesday. Nothing in the deploy failed. Nothing errored in front of you. The new feature just quietly changed something the old features depended on.
This happens to AI-built apps more than most, and the reason is simple: the AI has no memory of why your code looks the way it does. When you ask it to add a discount field, it reads the files around it, decides what seems safe to change, and edits freely. Sometimes the thing it changes is the thing your existing users rely on every day.
Here is how to add features to a vibe-coded app without finding out from an angry email that the old ones broke.
Why AI changes are riskier than they look
A careful human developer changing a payment flow will re-check everything the payment flow touches, because they know the system. An AI tool working through Cursor, Lovable or Bolt does something different: it optimises for the feature you asked for. If an existing function gets in the way, it may rewrite the function. If a piece of code looks unused, it may delete it. If your prompt implies a new pattern is fine, it will apply that pattern to old code as well as new.
Two things make this worse in practice. First, AI edits are broad. Asking for one change in Cursor can produce a diff across six files, including files you never discussed. Second, the app usually still works in the parts you look at. You test the new discount feature, it works, and the thing that broke is the customer export you last used in October.
So the goal is not to stop the AI from editing. It is to make sure that when it edits, you can see what changed, test what already existed, and undo the whole thing in one move if it went wrong. Those are three separate habits, and they go in that order.
Start with the undo button, not the code
Before you accept any significant AI change, check that you could get yesterday's app back. This takes two minutes and it is the habit that saves the most pain.
If you built with Cursor or Claude Code, the safety net is git. The test: could you run one command right now and get the previous working version back? If you have never committed the current state, commit it now, with a message that says what the app was like before the AI touched it. If your repo lives only on your machine and not on GitHub, that is worth fixing before the next feature, because a laptop problem plus a bad AI edit on the same day is how people lose apps entirely.
If you built with Lovable, Bolt or Replit, the safety net is version history. All three keep previous versions of your project. Find the restore button now, before you need it, and confirm you understand how it works: does it roll back the code, the database, or both? Restoring code without restoring the database is a very common way to break an app a second time, so knowing the answer in a calm moment is worth more than working it out during an incident.
One caution here: a rollback is your safety net for the code, not for the data. If the AI changed the database as part of the feature, rolling back the app will not undo those changes. Database changes need their own care, which is what our post on database migrations in AI-built apps covers.
Read what the AI actually changed
When the AI says the feature is done, the most valuable two minutes you can spend is looking at the diff: the list of lines it added, changed and deleted. In Cursor, that is the diff it shows you before you accept. In Lovable and Bolt, recent versions often let you see what changed between two versions of the project.
You are not looking for bugs in code you cannot read. You are answering one question: did it touch anything outside the feature I asked for? If it edited a shared settings file, a component used elsewhere, or a file with a name that means nothing to you, that is exactly where existing features break. You can deal with it in one of two ways: ask the AI to explain why it changed that file in plain English, or ask it to undo the parts of the change you did not request.
A pattern worth building into your prompts: when you ask for a feature, add a line telling the AI not to refactor or reorganise existing code as part of the change. It will not catch everything, but it noticeably cuts down on unrelated edits, and it gives you a clear instruction to point at when reviewing the diff.
Test the old features before you deploy
The new feature will get tested, because it is new and you are excited about it. What breaks in production is the old stuff, because nobody tested it. A short regression pass fixes that: regression testing just means testing things that worked before, to check they still work.
For most vibe-coded apps this is a manual checklist, not tooling. Write down the five to eight things a user can do in your app that matter most: sign up, log in, create a record, edit it, pay you, download the thing, get the email. Put the list in a file next to your project. Before every deploy, run through it in ten minutes in a private browser window, logged in as a test user.
Two details make this list actually useful. First, include the boring paths, not just the happy ones: an expired card, an empty search result, a user with no data yet. Second, include anything the new feature touches. If the feature added a field to a form, test every other form in the app, because AI tools sometimes copy a change into places you did not ask.
If a checkout or payment flow is involved, test it in the payment provider's test mode, not by making real charges. And if the pass finds a problem, fix it before deploy, not after. The fix is always cheaper before real users have hit the bug.
When you actually need a staging environment
A staging environment is a second copy of the app where you test updates before they reach real users. Plenty of advice says every app needs one. For most early-stage vibe-coded apps, that is overkill: a private browser window and a test account cover the same ground at zero cost.
The point where staging earns its keep is when updates become frequent enough, or the app load-bearing enough, that testing after each change is slower than maintaining a second copy. If you have paying users, if several people work on the app, or if an outage would cost you real money, a staging copy is worth the setup. Most hosting platforms Lovable, Bolt and Replit connect to support preview or branch deployments, which give you a second URL running your new code before you switch it to live. Cursor-built apps can do the same through the hosting platform.
Until then, the honest version is: deploy when you are least busy watching the app, not on a Friday evening. A change that goes out on a Tuesday morning when you have the day free does less damage than the same change going out before a weekend.
When an update breaks production anyway
Even with all of the above, it will happen. What matters is the order you do things in.
First, roll back to the last known good version rather than debugging live. The temptation is to fix forward, but every extra hour the broken version runs is another hour of confused users, and the fix will need testing anyway. Roll back, confirm the old version works, then work out what went wrong with the pressure off.
Second, check whether the problem is code or data. If the rollback fixes it, it was the code. If the app still misbehaves after a rollback, something in the database changed, and that is a different job with different tools. This is the reason the backup post on this blog keeps recommending you rehearse a restore before you need one.
Third, write down what the AI changed in a note you keep next to the project, even just a few lines. When you ask the AI to fix the problem later, that note is context it would otherwise have to rediscover, and it stops you shipping the same mistake twice.
A last check worth doing once
If you cannot remember the last time you tested your app's main features end to end, or you are not certain you could roll back today, that gap matters more than any single feature. The free surface check on our site takes a few minutes and shows you what your app currently exposes to the public, and the launch-readiness audit goes much deeper into the things AI-built apps tend to miss. When you would rather have a developer reviewing the AI's changes before they go live, that is exactly what our monthly plans are for.