Skip to content

[codex] Fix usage-limit reset copy and state#28793

Open
jayp-oai wants to merge 1 commit into
mainfrom
codex/usage-limit-reset-copy
Open

[codex] Fix usage-limit reset copy and state#28793
jayp-oai wants to merge 1 commit into
mainfrom
codex/usage-limit-reset-copy

Conversation

@jayp-oai

@jayp-oai jayp-oai commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Why

The reset flow introduced in #28154 still describes earned reset credits as "rate-limit resets" and uses generic reset-scope copy. It can also retain a stale available-credit count after redemption or an account change, leaving the reset action enabled after the last credit is used.

This follow-up updates terminology only within that reset feature. Existing rate-limit wording elsewhere in the CLI and TUI is unchanged.

What changed

  • Rename reset-specific /usage menu items, startup hints, and reset dialogs to "usage limit reset."
  • Describe monthly resets for Free, Go, and accounts that report a monthly usage window; otherwise describe the current 5-hour and weekly limits.
  • Recheck a cached zero balance when /usage is reopened, and refresh the balance after redemption so the final reset immediately disables the action.
  • Correlate async refresh results before updating snapshots and clear account-derived reset state, warnings, prompts, and status surfaces when the account changes.

Validation

  • just test -p codex-tui chatwidget::tests::usage — 29 passed.
  • just test -p codex-tui chatwidget::tests::status_command_tests — 7 passed.
  • Account-boundary prompt and plan-mode prompt regression tests passed.
  • cargo insta pending-snapshots from codex-rs/tui — no pending snapshots.\
image view for monthly image

@jayp-oai jayp-oai force-pushed the codex/usage-limit-reset-copy branch from 9ddb959 to 42f0a6f Compare June 17, 2026 21:34
@jayp-oai jayp-oai changed the title [codex] Use usage-limit copy for reset UI [codex] Fix usage-limit reset copy and state Jun 17, 2026
@jayp-oai jayp-oai marked this pull request as ready for review June 17, 2026 21:39
@jayp-oai jayp-oai force-pushed the codex/usage-limit-reset-copy branch from 42f0a6f to f3b209e Compare June 17, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant