Skip to content

feat(seer-billing): Show out-of-credits Seer failures - #2031

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

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

Conversation

@srest2021

@srest2021 srest2021 commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Fixes CW-2330

Depends on getsentry/sentry#130284 (stacked on getsentry/sentry#130283), which makes Sentry answer 402 when a run can't start because the org is out of Seer credits.

analyze_issue_with_seer now says why a run didn't start when Sentry answers 402, for out-of-credits and out-of-quota orgs, instead of returning an API error.

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.

Until the Sentry PRs ship, a run that runs out of credits still starts and then stops with out_of_credits, which this PR already explains. Both Sentry checks are behind organizations:seer-credit-checks.

🤖 Generated with Claude Code

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 9, 2026 7:19pm 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
Sentry checks Seer credits when analyze_issue_with_seer starts a run and answers 402 if there aren't enough, so the extra credit-check request isn't needed. The tool now turns a 402 from starting a run into an "Analysis Not Started" message instead of an error.

Refs CW-2330

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@srest2021 srest2021 changed the title feat(seer-billing): Check Seer credits and show out-of-credits failures feat(seer-billing): Show out-of-credits Seer failures Nov 9, 2026

This branch was successfully deployed

1 active and 1 inactive deployments
Actions — 5ee1dff7 Deployed Nov 9, 2026 by srest2021 via eval #1747
Preview — 5ee1dff7 Deployed Nov 9, 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.

2 participants