Fix database
12 fixes for the loops, auth traps and credit burn that prompting can't solve. Every fix links its sources.
Login loop or confirm-email link opens localhost after deploying
LovableBolt.newv0Supabase
- Fix
- In Supabase >
Authentication > URL Configuration, setSite URLto your live domain and add it (plus preview/localhost) toRedirect URLs. The AI can't see this setting, so prompting won't fix it. - Saves
- Stops a prompt loop; the AI can't fix this by prompting.
- Sources
- [1] dylancaponi.github.io ↗[2] supabase.com ↗
App hangs after login; Supabase calls never return
SupabaseLovable
- Fix
- Don't await Supabase calls inside
onAuthStateChange; defer them (e.g.setTimeout(...,0)) or upgradesupabase-js. - Sources
- [1] supabase.com ↗[2] tomaspozo.com ↗
Queries return empty data / 403 after enabling RLS
Supabase
- Fix
- With
RLSenabled no rows are accessible until you add explicit policies; write SELECT/INSERT policies (e.g.auth.uid() = user_id). - Sources
- [1] supabase.com ↗
'Try to fix' keeps failing on the same bug
Lovable
- Fix
- Stop retrying; restore the last working version from history and investigate in a planning/chat mode before changing code.
- Sources
- [1] docs.lovable.dev ↗
Millions of tokens burned in error-fix loops
Bolt.new
- Fix
- After a failed attempt or two, take the error to a separate chat/LLM, mark the next prompt as a new task, or export the project to an IDE.
- Sources
- [1] reddit.com ↗
A tiny fix consumed millions of tokens in agent mode
Cursor
- Fix
- Fresh chat per task, lean always-on rules, @-mention exact files/lines, use a lighter model for small edits.
- Sources
- [1] forum.cursor.com ↗
Huge rules file eats context and limits every session
Claude Code
- Fix
- Split giant rules into smaller, on-demand pieces (e.g. Skills) instead of one always-loaded file.
- Sources
- [1] reddit.com ↗
AI credits drain fast in VS Code agent sessions
GitHub CopilotVS Code
- Fix
- Lower thinking effort, expose only relevant tools, move repeated loops into scripts, and watch per-request usage in debug logs.
- Sources
- [1] code.visualstudio.com ↗
Hit Claude usage limit mid-session
Claude Code
- Fix
- Limits reset on a rolling 5-hour window (plus weekly caps on paid plans); wait, upgrade, or enable usage credits at API rates.
- Sources
- [1] claude.com ↗
Copilot stops when monthly allowance is used
GitHub Copilot
- Fix
- Set a dollar budget for paid usage ($0.01/credit), switch to a lighter model, or wait for the monthly reset; on Business/Enterprise ask an admin.
- Sources
- [1] github.com ↗
Unused credits vanished
Lovable
- Fix
- Monthly plan credits expire 2 months after issue and daily grants expire daily; top-ups last 12 months. Spend or plan around expiry.
- Sources
- [1] lovable.dev ↗