Skip to content

Decouple Codex reset-credit expiry display from “Show credits + extra usage” #1757

Description

@simon-ami

Problem

Codex reset-credit availability and expiry are currently hidden when Settings → Display → Show credits + extra usage is disabled.

That toggle is useful for hiding optional credit/extra-usage sections, but reset-credit expiry is different: it is time-sensitive operational information. If a user turns off credits/extra usage to keep the menu cleaner, they can also lose visibility into whether they have manual Codex resets available and when the next one expires.

Current behavior

  1. Enable Codex as a provider.

  2. Have at least one available Codex rate-limit reset credit.

  3. Open the CodexBar menu with Show credits + extra usage enabled.

  4. The menu shows the reset-credit section, e.g.:

    • Limit Reset Credits
    • 1 manual reset available
    • Next expires …
  5. Disable Settings → Display → Show credits + extra usage.

  6. The reset-credit availability/expiry section disappears too.

Expected behavior

Codex reset-credit expiry should not be coupled to the generic credits/extra-usage toggle.

Preferred behavior:

  • Always show Codex reset-credit availability/expiry when reset credits are available.

Alternative acceptable behavior:

  • Add a separate Display setting, e.g. Show Codex reset credits or Show reset-credit expirations, defaulting to enabled.

Why this matters

Manual reset credits can expire. Hiding their expiration together with optional credits/extra-usage makes it easy to miss a reset that should be used before it expires.

The reset-credit section feels closer to quota/reset visibility than to optional spend/credit details. Users may reasonably want to hide credit balances and extra usage while still seeing whether they have expiring reset credits.

Code context

The coupling appears to come from the reset-credit model helpers:

  • UsageMenuCardView.Model.codexResetCreditsText(input:)
  • UsageMenuCardView.Model.codexResetCreditsDetailText(input:)

Both currently guard on input.showOptionalCreditsAndExtraUsage.

There is also a focused test covering the current behavior:

  • CodexResetCreditsMenuCardTests
  • reset credits hide with optional usage disabled

So the change would likely involve either:

  1. removing the showOptionalCreditsAndExtraUsage guard from the reset-credit text/detail helpers and updating the test expectations, or
  2. introducing a dedicated reset-credit display setting and covering both toggles independently.

Suggested labels

  • enhancement
  • area:ui-ux
  • provider:codex
  • priority:low or priority:medium

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions