Skip to content

fix(accounts): treat SuperGrok Plus as a paid billing plan - #995

Open
lanting200 wants to merge 1 commit into
chenyme:mainfrom
lanting200:feat/recognize-supergrok-plus
Open

fix(accounts): treat SuperGrok Plus as a paid billing plan#995
lanting200 wants to merge 1 commit into
chenyme:mainfrom
lanting200:feat/recognize-supergrok-plus

Conversation

@lanting200

Copy link
Copy Markdown
Contributor

Summary

  • xAI now reports Build $100 SuperGrok Plus as subscriptionTier=SuperGrokPlus with weekly numeric limits at 0.
  • The paid-plan allowlist only knew SuperGrok / Pro / Heavy / Lite, so those accounts were classified as unknown and dropped out of Super routing.
  • Treat supergrokplus as paid, and keep later SuperGrok* plan names paid in both Go and the SQL list filters.

Test plan

  • go test ./internal/domain/account ./internal/infra/provider/cli ./internal/infra/persistence/relational
  • Import or refresh a Build account whose billing plan_name is SuperGrokPlus and weekly usage is 0%
  • Confirm the account list filter quotaType=paid includes it without setting buildSuperEntitled
  • Confirm Free / Basic accounts are still classified as free

Made with Cursor

xAI now reports SuperGrokPlus with zero weekly numeric limits, so the
allowlist missed it and Build routing classified those accounts as unknown.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant