Skip to content

feat(seer): Return denialReason on out-of-credits 402s - #131169

Draft
wedamija wants to merge 2 commits into
danf/seer-credit-check-labelsfrom
danf/seer-credit-denial-reason
Draft

wedamija wants to merge 2 commits into
danf/seer-credit-check-labelsfrom
danf/seer-credit-denial-reason

Conversation

@wedamija

@wedamija wedamija commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Part of the Seer token-based billing work. Before a Seer operation starts we ask billing whether the org has enough credits for it.

When the check fails, billing tells us whether the org is out of credits or hit its daily cap, but we threw that away. This adds it to the 402 as denialReason so the MCP and CLI can show the right message.

Stacked on #131168.

Refs CW-3100

@linear-code

linear-code Bot commented Nov 14, 2026

Copy link
Copy Markdown

CW-3100

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 14, 2026

This branch has not been deployed

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

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant