Repository navigation
feat(grok): one Grok tab for the one shared limit, with the split by product - #16
Merged
Merged
Conversation
…product All Grok products share a single weekly limit, so the separate Grok Bot tab could show a different number for the same pool. The Grok tab now keeps xAI's billing bar and shows the week's split by product (productUsage) under it. Grok Bot's plan name, on-demand spend and prepaid line fold in when its app is signed in; its weekly bar stands in only when the grok CLI has no reading. A saved Grok Bot tab setting keeps Grok enabled.
make render-baselines now also renders the Grok tab from the mock fixture, and the render test compares it, so the split line under the bar can't silently vanish. The PNGs themselves are generated on a machine with Qt and committed next.
DLANSAMA
force-pushed
the
claude/project-thread-b504is
branch
from
November 7, 2026 20:58
7ec38c0 to
205ae89
Compare
DLANSAMA
marked this pull request as ready for review
November 7, 2026 21:30
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.
What changes
All Grok products (Grok, Grok Build, Grok Bot) share one weekly limit, so the separate Grok Bot tab could show a different number for the same pool. This merges them into one Grok tab.
creditUsagePercent), or its log fallback. Grok Bot's own percent never overrides it (it read 53.76 against the pool's 53.0 in a live run).productUsagefrom the same billing reply is shown under the bar the way Claude's surface split is, e.g. "Grok Bot 53%". It is dropped when an ended period rolls to 0%.grokCLI reading, its weekly bar stands in, and a failure with a remedy (locked wallet, expired sign-in) is shown on the Grok tab.grokbotprovider is gone from the snapshot, the tab list and the settings chips.make render-baselinesalso renders the Grok tab; the Claude and Antigravity baselines are regenerated for the five-tab strip.Verification
lint-and-test) clean. The backend runs end to end in an empty home and prints valid JSON.productUsageentries add up to the pool (the live reply has one entry), and whether the CLI log's billing event carriesproductUsage.