AI AgentBreaking Existing Functionality

The AI broke something that was working fine. What do I do?

Here's what to do when the AI breaks something that was working:

  1. Revert: Use the revert button to roll back to the version just before the issue occurred. All changes after that point stay in chat and can be reapplied.
  2. Re-prompt: After reverting, try a clearer, more specific prompt to guide the AI differently.
  3. Use Plan mode: Ask Lovable to outline steps before making changes — e.g., "Can you outline the steps for this feature?"
  4. If stuck: Prompt: "Take a step back. Analyze the error and suggest a different approach."

More details on these pages:

Troubleshooting guide Getting started – Revert a change