Skip to content

feat(seer-billing): Check Seer credits and show out-of-credits failures - #2031

Open
srest2021 wants to merge 2 commits into
mainfrom
srest2021/CW-2330
Open

srest2021 wants to merge 2 commits into
mainfrom
srest2021/CW-2330

Conversation

@srest2021

@srest2021 srest2021 commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Fixes CW-2330

analyze_issue_with_seer now checks the org's Seer credits before starting a new run (the credit check endpoint is feature-flagged). If there aren't enough credits, it says so and doesn't start the run.

When a run stopped because the org ran out of credits (failure_reason=out_of_credits), the tool and get_issue_details now say why.

If the credit check itself fails, the run starts anyway, since LLM proxy still stops a run that runs out of credits. We make a Sentry issue if there's a contract mismatch between the MCP and the credit check endpoint.

analyze_issue_with_seer checks the organization's Seer credits before starting a run, and tells the user when a run stopped because the organization ran out of credits. get_issue_details shows the same reason. A failed credit check never blocks a run.

Refs CW-2330
@vercel

vercel Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Nov 5, 2026 11:00pm UTC

Request Review

@linear-code

linear-code Bot commented Nov 5, 2026

Copy link
Copy Markdown

CW-2330

@srest2021 srest2021 changed the title feat(seer): Check Seer credits and show out-of-credits failures feat(seer-billing): Check Seer credits and show out-of-credits failures Nov 5, 2026
@srest2021
srest2021 marked this pull request as ready for review November 5, 2026 22:05
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 5, 2026
@srest2021
srest2021 requested a review from a team November 5, 2026 22:06
Say auto-reload, which is what the billing settings call it, and point to someone with billing access, since MCP users can have any role.

Refs CW-2330

This branch was previously deployed

2 inactive deployments
Actions — 42b1ecf8 Deployed Nov 5, 2026 by srest2021 via eval #1670
Preview — 42b1ecf8 Deployed Nov 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant