Repository navigation
feat(seer): Return denialReason on out-of-credits 402s - #131169
Merged
Merged
Conversation
srest2021
approved these changes
Nov 16, 2026
This PR was stacked on the credit check labels PR, which is on hold. Drop those commits so the denial reason change can go in on its own. Refs CW-3100
wedamija
changed the base branch from
danf/seer-credit-check-labels
to
master
November 16, 2026 19:10
billyvg
added a commit
that referenced
this pull request
Nov 16, 2026
A 402 from the autofix endpoint now carries `denialReason` (#131169). The toasts for a refused step or PR always said the organization was out of credits, even when it had hit its daily usage limit. They now read `denialReason` and say so for `daily_cap_exceeded`. Without a reason, including from backends that predate it, they still say out of credits. Co-Authored-By: Claude Opus 5.5 <[email protected]>
BYK
pushed a commit
to getsentry/toolkit
that referenced
this pull request
Nov 16, 2026
Part of the Seer token-based billing work. Before a Seer operation starts we ask billing whether the org has enough credits for it. Sentry now tells us why the credit check failed (getsentry/sentry#131169). If the org hit its daily spend limit we were still saying they're out of credits, which sends people to buy more when they just need to raise the limit or wait a day. This adds a message for that case in the MCP and the CLI. The CLI exit code is still 43. Refs CW-3100
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
denialReasonso the MCP and CLI can show the right message.Refs CW-3100