codex - 💡(How to fix) Fix Status UI mixes current context-window usage with cumulative token totals

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

The status UI appears to mix current context-window usage with cumulative token totals from a broader scope, which makes the displayed context usage look inconsistent.

In one session, /status showed:

  • Token usage: 844K total (762K input + 82.7K output)
  • Context window: 76% left (249K used / 998K)

At the same time, the bottom status bar showed:

  • Context 76% left
  • Context 24% used
  • 998K window
  • 15.6M used
  • 15.5M in
  • 82.7K out

This makes it appear as if the context window is both:

  • 249K / 998K used
  • and also 15.6M used

Those clearly are not the same metric, but the UI presents them close together without enough distinction.

Root Cause

Because the labels are not explicit enough, the display looks internally inconsistent.

RAW_BUFFERClick to expand / collapse

Summary

The status UI appears to mix current context-window usage with cumulative token totals from a broader scope, which makes the displayed context usage look inconsistent.

In one session, /status showed:

  • Token usage: 844K total (762K input + 82.7K output)
  • Context window: 76% left (249K used / 998K)

At the same time, the bottom status bar showed:

  • Context 76% left
  • Context 24% used
  • 998K window
  • 15.6M used
  • 15.5M in
  • 82.7K out

This makes it appear as if the context window is both:

  • 249K / 998K used
  • and also 15.6M used

Those clearly are not the same metric, but the UI presents them close together without enough distinction.

Expected behavior

The UI should clearly separate:

  1. Current context window usage

    • for example 249K / 998K
    • or 24% used / 76% left
  2. Cumulative session or thread token totals

    • for example total input/output tokens accumulated over time

These should not look like competing values for the same context window.

Actual behavior

Different token counters appear to be shown together in the status UI, but they seem to come from different accounting scopes:

  • current active context window occupancy
  • cumulative token totals for a longer-lived session/thread

Because the labels are not explicit enough, the display looks internally inconsistent.

Why this is confusing

A user naturally reads:

  • Context 24% used
  • 998K window
  • 15.6M used

as if they all describe the same resource, which is impossible.

This looks either like:

  • a display bug
  • or a UX/labeling bug where metrics with different scopes are mixed together without clarification

Environment

  • Codex CLI version: v0.129.0
  • Platform: macOS

Suggested fix

Possible fixes:

  1. Rename cumulative counters more explicitly, for example:

    • session tokens used
    • thread input total
    • thread output total
  2. Keep current-window metrics grouped together and visually separated from cumulative totals.

  3. Consider not showing cumulative token counters next to context-window metrics by default.

Additional note

This looks consistent with the UI combining at least two different data sources:

  • current context-window occupancy
  • cumulative token totals over a broader scope

So the issue may be more about display semantics than raw arithmetic.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

The UI should clearly separate:

  1. Current context window usage

    • for example 249K / 998K
    • or 24% used / 76% left
  2. Cumulative session or thread token totals

    • for example total input/output tokens accumulated over time

These should not look like competing values for the same context window.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING