Repository navigation
fix(web): show pending usage reset credit feedback - #17882
GabrielCoelhoCruz wants to merge 1 commit into
Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a focused fix to an existing reset-credit interaction, keeping pending and result feedback visible while preventing duplicate in-flight requests. The substantial diff is primarily interaction-test coverage, with no backend, schema, deployment, authentication, or billing logic changes. You can add or adjust custom eligibility rules. Learn more. |
|
Note Written by Thanks for documenting the missing reset-credit feedback. This unvouched PR changes 668 lines, including a 497-line interaction test file and shared redemption state, exceeding the scope we can take over under Read this first. Right now we are only taking focused bug fixes from outside contributors. Please keep #17449 as the problem report and submit a smaller fix within our 500-line review limit for reconsideration. |
Problem
In Usage → Limits, confirming a reset credit closes the popover and confirmation before the request finishes. The pending button disappears, and the page shows no feedback until the result arrives.
Closes #17449.
Change
Show "Using reset credit…" in the existing status region outside the popover. Keep the result visible when the last available credit disappears.
Bind confirmation, pending text, and results to the account identity. Share the pending guard across controls for the same redemption target, so repeated confirmation cannot attach another account to an old request.
Scope and approval
This is a focused fix for an obvious defect in an existing confirmed action, under the bug-fix exception in CONTRIBUTING.md. The account identity and duplicate guard belong to that same pending operation. Confirmation, cancellation, permissions, eligibility, RPC payloads, and backend redemption rules stay in place.
This covers #17449 only. It does not include preview keyboard changes from #17733 or PR #15035. PRs #17222 and #17705 touch some of the same usage files but address quota grouping and credit balances. This change does not implement those features.
Verification
git diff --checkpassed on current main. Shared typecheck emits an existing advisory insrc/symlink.ts.The external Codex service was replaced by a local protocol fixture. No real credit was redeemed. Account switching has behavioral test coverage, not an integrated account-switch check. Native desktop and mobile were not run. The videos sample the actual page and preserve capture timing.
Exact commands, tested revisions, and limitations
Before recording · After recording
Models used were GPT-6-Astra for implementation, GPT-6-Sol for independent review, and GPT-6.1-Sol for verification, through the Codex harness in T3 Code.