Skip to content

Commit 07da33f

Browse files
fix(shared): preserve Claude tier across generic hub refreshes
1 parent a3868ec commit 07da33f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎packages/shared/src/usageLimits.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,11 @@ export function collectLimitAccounts(presentations: LimitPresentations): readonl
210210
accounts.set(key, {
211211
...previous,
212212
displayName: previous.displayName ?? next.displayName,
213-
plan: winner.plan,
213+
// The hub's generic Claude label carries no tier information.
214+
plan:
215+
winner.driver === "claudeAgent" && winner.plan === "Claude Subscription"
216+
? ((fresher ? previous.plan : next.plan) ?? winner.plan)
217+
: winner.plan,
214218
accentColor: previous.accentColor ?? next.accentColor,
215219
environments,
216220
sourceLabel: environments.length > 0 ? null : (previous.sourceLabel ?? next.sourceLabel),

0 commit comments

Comments
 (0)