Skip to content

Expose exact quota reset timestamps as status line items in Codex CLI. #18812

Open

Description

@zhw5592

What variant of Codex are you using?

CLI

What feature would you like to see?

Example config:

tui.status_line = [
  "model-with-reasoning",
  "context-remaining",
  "five-hour-limit",
  "five-hour-limit-reset-at",
  "weekly-limit",
  "weekly-limit-reset-at",
  "current-dir",
]

Expected behavior:

- render reset times in the user's local timezone
- update automatically as quota metadata changes
- render nothing when reset metadata is unavailable
- leave existing status line items unchanged

### Additional information

This would make quota information in the status line much more actionable for planning work, especially when users are close to a 5-hour or weekly limit.

Existing related status line items include:
- model-with-reasoning
- context-remaining
- five-hour-limit
- weekly-limit
- current-dir

Activity

  1. added
    enhancement
    on Apr 21, 2026
  2. added
    CLI
    rate-limits
    config
    TUI
    on Apr 21, 2026
  3. github-actions commented on Apr 21, 2026

    @github-actions
    Contributor
  4. removed
    CLI
    config
    on Apr 21, 2026
  5. xiaodream551-a11y commented on May 20, 2026

    @xiaodream551-a11y

    +1 on exposing reset info in the status line.

    One suggestion on the format: in addition to absolute timestamps (e.g. reset-at 14:32 local), a countdown form is often more actionable for in-flight planning decisions, e.g.:

    5h: 90% (3h 48m) | 7d: 93% (6d 14h)

    This is essentially what #17457 / #17456 proposed (closed for insufficient upvotes), and what users frequently reach for. Could this issue cover both presentations, or expose them as separate items, e.g.:

    • five-hour-limit-reset-at → absolute time
    • five-hour-limit-reset-in → countdown
    • weekly-limit-reset-at
    • weekly-limit-reset-in

    That way users can pick whichever fits their workflow without each variant needing its own feature request.

  6. Moviw commented on Sep 30, 2026

    @Moviw

    Until reset times land as native status line items, here's a way to get them today: codex-statusline adds a persistent bar under the Codex TUI with both reset times in local time.

    CTX USED ███░░░░░ 35% | 5h ████████░░ 78% 5:41pm | week ████░░░░░░ 39% Fri 3:41pm
    
    • Reset times update automatically as new quota metadata arrives
    • You keep typing codex; it reads only local session logs (no auth.json, no extra API calls)

    Install (macOS/Linux, tmux): uv tool install codex-statusline && codex-statusline install

  7. Thameempp commented on Nov 28, 2026

    @Thameempp

    It would be great to have a compact, always-visible usage meter built directly into the Codex CLI TUI, preferably in the bottom-right corner.

    For example:

    5H ███░░ 72% ↻ 2h 14m  |  WEEK  ██░░░ 38% ↻ 3d 8h
    

    Suggested improvements:

    • Color-coded usage indicators (green, yellow, orange, red).
    • Remaining usage percentage with small progress bars.
    • Live reset countdowns for both limits.
    • Display everything on a single line.
    • Minimal, unobtrusive design that doesn't interfere with the terminal layout.
    • Available by default without external tools or manual status-line configuration.

    This would let developers monitor their usage at a glance without interrupting their coding workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIenhancementrate-limits

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions