Skip to content

Fix critical auth, billing, credit, and rerun correctness bugs#57

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-correctness-bugs-d184
Draft

Fix critical auth, billing, credit, and rerun correctness bugs#57
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-correctness-bugs-d184

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented May 24, 2026

Summary

  • Sanitizes GitHub OAuth return paths to prevent external post-login redirects.
  • Restores Stripe webhook processing to update the app's Neon billing tables and user billing columns.
  • Refunds credits when App Idea Chat or Pattern Analyzer fail after charging.
  • Preserves existing blueprints until replacement blueprints are successfully saved on analysis reruns.

Validation

  • pnpm install --frozen-lockfile
  • pnpm exec tsc --noEmit
  • pnpm exec eslint app/api/analyses/[id]/run/route.ts app/api/app-idea-chat/route.ts app/api/auth/github/callback/route.ts app/api/auth/github/login/route.ts app/api/pattern-analyzer/route.ts app/api/stripe/webhook/route.ts lib/queries.ts lib/redirects.ts

Note: full pnpm lint still fails on pre-existing unrelated lint errors outside the changed files.

Open in Web View Automation 

Co-authored-by: Cole Collins <DealPatrol@users.noreply.github.com>
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
repo-app-architect Ready Ready Preview, Comment May 24, 2026 11:13am
repofuse Ready Ready Preview, Comment, Open in v0 May 24, 2026 11:13am
v0-repo-app-architect Ready Ready Preview, Comment, Open in v0 May 24, 2026 11:13am

Request Review

@supabase
Copy link
Copy Markdown

supabase Bot commented May 24, 2026

This pull request has been ignored for the connected project bpjftwoiosftvjvxpovz because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant