You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Usage → Limits: accounts swap places on refresh, and ↻ +% counts only one of the accounts that reset together #36178
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
packages/contracts or packages/shared
Steps to reproduce
sign in two Claude accounts whose 5-hour windows reset within a few seconds of each other (one of them with its weekly limit spent)
open Usage → Limits and leave it open, or switch the environment filter
Expected behavior
account order stays put while the page is open, and the ↻ +% under the total adds up every account that resets at that moment
Actual behavior
accounts are sorted by next reset (orderReset in collectLimitPools, packages/shared/src/usageLimits.ts) so near-equal reset times swap on every refresh, and an account jumps to the end right after its window resets, so the row moves while i read it
↻ +% uses pool.resets.find(...) so with Claude 1 at 81% left and Claude 2 at 0%, both resetting in 3h 58m, it shows +6% or +50% depending on which one sorts first, instead of about +40%
Activity