feat(tui): add rate-limit reset redemption to /usage#28118
Closed
jayp-oai wants to merge 1 commit into
Closed
Conversation
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
0682909 to
cf0b13a
Compare
Collaborator
Author
|
I have read the CLA Document and I hereby sign the CLA |
Collaborator
Author
|
recheck |
5241faa to
df9d29d
Compare
This was referenced Jun 14, 2026
Collaborator
Author
|
Superseded by #28154, which carries the same TUI change from an upstream branch so CI runs in the normal repository context. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Codex users can earn personal rate-limit reset credits, but the CLI does not currently provide a way to view or redeem them. The
/usagecommand restored in #27925 is intended to be the entry point for usage-related actions, so reset redemption belongs there rather than in a separate dashed slash command.Depends on #28143 for the app-server and backend-client reset-credit APIs.
What changed
/usageinto a menu with entries for token activity and earned rate-limit resets while preserving/usage daily,/usage weekly, and/usage cumulative.Validation
just test -p codex-tui chatwidget::tests::usage- 14 passed.just fix -p codex-tui- passed.cargo insta pending-snapshotsfromcodex-rs/tui- no pending snapshots.Examples