Repository navigation
fix(seer-billing): Keep token-billed orgs off the legacy usage-based Seer paths - #130825
Open
sentry-junior[bot] wants to merge 5 commits into
Open
sentry-junior[bot] wants to merge 5 commits into
sentry-junior[bot] wants to merge 5 commits into
Conversation
Token-billed orgs were treated as legacy usage-based orgs anywhere we only checked for seat-based Seer: post-process automation, agentic triage rate limits and tuning, valid stopping points, project settings serializers, first-assignment summaries, and new-project defaults. Route them through the seat-based path instead. Refs CW-3061 Co-Authored-By: sofia <sofia.rest@sentry.io>
A free cohort org that moved to token billing kept the cohort option, so it still got free-cohort behavior: the group setup check showed a paywall on issues without a run, and automated PRs said they were generated at no cost. Refs CW-3061
srest2021
marked this pull request as ready for review
November 11, 2026 22:05
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 736ae80. Configure here.
Post-process now skips automation for all token-billed orgs, but the agentic triage cron only counted token-billed orgs as paid when they also had the token-based billing onboarding flag. The free cohort excludes token-billed orgs, so ones without that flag got no automation at all. Treat every seat-based or token-billed org as paid in the cron.
This reverts commit 43e1fb7. Co-Authored-By: Sofia Rest <sofia.rest@sentry.io>
wedamija
approved these changes
Nov 12, 2026
This branch has not been deployed
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.

Problem: Token-billed orgs don't have
seat-based-seer-enabled, so every place that only checksis_seer_seat_based_tier_enabledsends them down the legacy usage-based path.This PR adds
is_seer_seat_or_token_billed_enabledand uses it at those checks, so token-billed orgs behave like seat-based ones:solutionstep) when validating settingsopen_pralso setsauto_create_prand tuning is limited to off/medium)is_free_cohort_orgnow also excludes token-billed orgs, so a free cohort org that moves to token billing is treated as paid. For these orgs:Relates to CW-3061
via sofia.
--
View Session in Sentry