Home/Wiki Errors/Vibe Coding
Vibe Coding / Regression

AI regression loop in Cursor / Bolt / v0 app

The agent repeatedly fixes one bug while reintroducing another because tests, constraints, or state are missing.

Error text / 报错原文

  • AI regression loop
  • agent keeps breaking working code
  • Cursor app regression

What it means

The agent repeatedly fixes one bug while reintroducing another because tests, constraints, or state are missing.

Most common causes

  • No regression tests
  • Prompt lacks acceptance criteria
  • Agent edits broad files
  • Generated app has hidden coupling

Fastest fix

  • Reproduce the smallest failing case.
  • Check environment, platform, and production settings.
  • Use the related local tool to classify the issue.
  • Fix the highest-risk security or data issue first.

Safe fix

  • Keep secrets out of client code and logs.
  • Prefer least privilege and explicit allowlists.
  • Add a regression test or checklist before retrying.
  • Document the working production configuration.

What not to do

  • Do not disable security controls as a permanent fix.
  • Do not paste secrets into public issue trackers or AI chats.
  • Do not trust preview success as production readiness.

Diagnostic commands

npm run build
git diff --check
grep -R "SERVICE_ROLE\|STRIPE_SECRET\|SUPABASE" .

Related tools

Related errors

Sources