Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta Adatta ai principianti
#17,449 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

Inizia da UsageLimitsPooled.tsx in RedeemableSegmentPopup, dove onRedeem chiama closePopover() prima che si apra la finestra di conferma, poi in UsageLimits.tsx in useResetCredit().redeem, dove la finestra si chiude prima che venga atteso consumeResetCredit. Lo span di stato fuori dal popover mostra solo redeem.status. Il lavoro è completato quando in quello spazio compare una riga di attesa come "Using reset credit…" mentre redeem.busy è true, e scompare quando arriva il risultato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

[!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.

Lingua principale
TypeScript
Stelle
24.8k
Fork
6.4k
Merge medio
8h 58m
PR unite (30g)
278

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pingdotgg/t3code

Tutte le issue di pingdotgg/t3code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.