Group matching subscription limits onto one card - #33
Open
Guitaraholic wants to merge 1 commit into
Open
Conversation
Same Claude/Codex account on several machines is one quota, so it is one card with machine tags. Different accounts stay separate. Cards stay in a horizontal grid instead of stacking per-machine window copies. Fetch hosts sequentially with a 180s timeout so Anthropic 429s do not empty the panel.
Author
|
Claude Code usage windows in this panel also depend on a base-bb credential parse fix. Claude Code 2.1.x stores Issue: get-bb/bb#2928
|
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.
Summary
Same subscription on several enrolled machines is one account-wide quota, so Usage Limits should show one card, tagged with those machines — not one card per install. Different accounts (or unlabeled different plans) stay separate cards.
This is the same grouping as #31 (
accountEmail, else a single known account, else plan label; windows are maxed, not summed). The presentation is different: a horizontal grid of subscription cards with machine tags, instead of stacking per-machine window copies inside the card.Also fetches hosts sequentially with a 180s timeout. Parallel 3s fetches were emptying Claude bars on 429.
Claude Code bars
This plugin only renders
GET /api/v1/system/usage-limits. On macOS, Claude Code 2.1.x stores the Keychain secret as hex JSON, so bb reports Claude asunauthenticatedand this panel has nothing to show even whenclaudeis logged in.That is a base-bb fix, not this plugin: get-bb/bb#2928, PR get-bb/bb#2931.
Why a fresh PR
#31 already has the right identity math. Building on that branch would still mean rewriting the in-card machine stack. This PR is an alternative implementation of #30 that keep #31's grouping and changes only the layout/fetch. Happy to close this in favor of #31 if you prefer to take the grouping from there and apply the grid on top.
Closes #30
Related #31