Skip to content

Fix credit charges when Anthropic is unconfigured#52

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

Fix credit charges when Anthropic is unconfigured#52
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-correctness-bugs-ac61

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented May 22, 2026

Summary

  • Add Anthropic configuration preflight checks to credit-charging App Idea Chat and Pattern Analyzer routes.
  • Return a 503 configuration error before deducting user credits when ANTHROPIC_API_KEY is missing.

Validation

  • pnpm exec eslint app/api/app-idea-chat/route.ts app/api/pattern-analyzer/route.ts
  • pnpm exec tsc --noEmit --pretty false
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 22, 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 22, 2026 11:08am
repofuse Ready Ready Preview, Comment, Open in v0 May 22, 2026 11:08am
v0-repo-app-architect Ready Ready Preview, Comment, Open in v0 May 22, 2026 11:08am

Request Review

@supabase
Copy link
Copy Markdown

supabase Bot commented May 22, 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