Repository navigation
feat(usage): show Grok Build billing limits - #9205
diegosouzapw merged 4 commits into
Conversation
|
Merged via local merge-train on 192.168.0.113 (32 cores) @ train tip Green: This was the first train of the day to run against a genuinely clean base — #9447 and #9392 had just taken the release back to green after 15 unit failures inherited from #9275 — so every red here was re-run in isolation on the exact train tip rather than assumed. All of them passed:
No failure was attributable to any boarded PR. For reference, |
3440c11
into
cheaper-inference:release/v3.8.50
* feat(usage): show Grok Build billing limits * test(usage): keep Grok quota reset fixture in the future * fix(i18n): add Grok billing labels to pt-BR * fix(i18n): add Grok billing labels to Vietnamese
Summary
grok-cliconnections in Dashboard → Provider Quota using Grok Build's read-only/user?include=subscription,/billing?format=credits, and/auto-topup-rulesurfacesRelated Issues
Validation
Choose the change type and focused loop from the
Contribution Golden Path. The full unit suite,
Vitest, the 60% coverage gate, and the production build all run in CI on this PR (#8329):
npm run lintFocused and related validation:
A broader Grok and Provider Limits compatibility selection also passed 289 tests during review. The independent final review concluded
Approved — C0 / I0 / M0.npm run check:file-sizeretains three failures that reproduce identically on the exact release baseline and are outside this diff:open-sse/executors/base.tsopen-sse/handlers/chatCore.tstests/unit/chatcore-translation-paths.test.tsnpm run check:provider-consistencycould not run in this local dependency tree because Bun's package postinstall was not executed; the exact release baseline fails identically. CI has the canonical install environment.Tests Added Or Updated
tests/unit/grok-cli-provider-limits.test.tstests/unit/grok-cli-provider-limits-ui.test.tsCoverage Notes
Reviewer Notes
redirect: "error", a 10-second timeout, and a 256 KiB declared/streamed response limit/user?include=subscriptiondoes not provide a canonical user ID, the rule request is skipped and shown as unavailablehttps://grok.com/build?_s=usage