[Bug]: Usage → Limits: accounts swap places on refresh, and ↻ +% counts only one of the accounts that reset together

Đang mở
#36,178 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
66/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Start in collectLimitPools and its orderReset sort in packages/shared/src/usageLimits.ts, then find where the ↻ +% total calls pool.resets.find(...). Check how the Usage → Limits page consumes that ordering. Done means account order stays fixed across refreshes when reset times are nearly equal, and the +% total includes every account resetting at the same moment, verified with two accounts resetting within seconds of each other.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug needs-triage
Before submitting
  • 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
  1. 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)
  2. 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%

Impact

Minor bug or occasional failure

Version or commit

0.1.10-nightly.20261113.4630

Environment

macOS desktop app, two environments

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

No response

Ngôn ngữ chính
TypeScript
Star
24.8k
Fork
6.4k
Merge trung bình
59 phút
Pull request đã merge (30 ngày)
418

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pingdotgg/t3code

Tất cả issue của pingdotgg/t3code

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.