Skip to content

Group matching subscription limits onto one card - #33

Open
Guitaraholic wants to merge 1 commit into
MayankBansal12:mainfrom
Guitaraholic:feat/subscription-limit-cards
Open

Group matching subscription limits onto one card#33
Guitaraholic wants to merge 1 commit into
MayankBansal12:mainfrom
Guitaraholic:feat/subscription-limit-cards

Conversation

@Guitaraholic

@Guitaraholic Guitaraholic commented Sep 2, 2026

Copy link
Copy Markdown

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 as unauthenticated and this panel has nothing to show even when claude is 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

AGENT GENERATED

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.
@Guitaraholic

Copy link
Copy Markdown
Author

Claude Code usage windows in this panel also depend on a base-bb credential parse fix. Claude Code 2.1.x stores Claude Code-credentials as hex JSON; bb treated that as UTF-8, failed, and reported unauthenticated, so the plugin had no bars to render.

Issue: get-bb/bb#2928
Fix PR: get-bb/bb#2931

AGENT GENERATED

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.

Include subscription usage across agents and machines

1 participant