Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Bug]: Using a reset credit from the pooled usage bar shows no progress while it runs

Đang mở Phù hợp với người mới
#17,449 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/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ệ
react, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu từ UsageLimitsPooled.tsx tại RedeemableSegmentPopup, nơi onRedeem gọi closePopover() trước khi hộp thoại xác nhận mở ra, sau đó chuyển sang UsageLimits.tsx tại useResetCredit().redeem, nơi hộp thoại đóng lại trước khi consumeResetCredit được await. Span trạng thái nằm ngoài popover chỉ render redeem.status. Công việc được coi là hoàn thành khi một dòng đang chờ như "Using reset credit…" hiển thị ở vị trí đó trong lúc redeem.busy là true, và dòng này biến mất khi kết quả về.

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

Mô tả

[!NOTE]
Drafted by Claude Opus 5.5 in Claude Code (via T3 Code); reviewed and posted by @jieyuexing.

Before submitting
  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.
Area

apps/web

Steps to reproduce
  1. Have a Codex account with a reset credit available.
  2. Open Usage → Limits and click the redeemable segment of the pooled bar.
  3. Click the reset action in the popover, then confirm in the dialog.
Expected behavior

Something on screen shows the reset is in progress until the result appears, like the spinning refresh button on the same page.

Actual behavior

Nothing changes for several seconds. Then the result text appears.

RedeemableSegmentPopup closes the popover before opening the confirm dialog (UsageLimitsPooled.tsx, onRedeem → closePopover()), and useResetCredit().redeem closes the dialog before awaiting consumeResetCredit (UsageLimits.tsx). The only pending state, the disabled "Using…" button, lives inside the popover that is already closed. The status span outside the popover renders only redeem.status, which is set after the request settles, so busy is never visible on this path.

The wait itself is expected: for Codex the server spawns an app-server to consume the credit, then runs a full snapshot.refresh (another app-server, account/skills/models/rate limits) before replying. That makes the missing feedback noticeable.

Impact

Minor bug or occasional failure

Version or commit

v0.0.46-nightly.20261008.2833 (same code on main as of 2026-10-09)

Environment

macOS desktop app, Codex provider

Workaround

None. Wait for the result text.

Possible fix

Render a pending line in the same status slot outside the popover while redeem.busy is true (for example the account name plus "Using reset credit…"), so the pooled path shows the same feedback the per-account card already has.

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

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.