codex - 💡(How to fix) Fix Add a 10-cell context usage graph status line item [2 comments, 3 participants]

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…
GitHub stats
openai/codex#19768Fetched 2026-04-28 06:37:29
View on GitHub
Comments
2
Participants
3
Timeline
8
Reactions
0
Author
Timeline (top)
labeled ×4commented ×2unlabeled ×2

Code Example

[gpt-5.5 (1M context)] █░░░░░░░░░ 11%

---

cargo fmt -p codex-tui
cargo test -p codex-tui context_graph
RAW_BUFFERClick to expand / collapse

Request

Please add an official status line item that renders context usage as a compact 10-cell graph in the TUI footer.

Suggested item id: context-graph

Suggested rendering:

[gpt-5.5 (1M context)] █░░░░░░░░░ 11%

Why

Codex already supports textual status line entries such as context-used, context-remaining, and context-window-size. A compact graph is easier to scan during long sessions and keeps the footer readable while still showing model/window context.

Proposed behavior

  • Include model display name and compact context window size.
  • Render a fixed 10-cell bar, rounded up per 10% bucket.
  • Omit the item when context window information is unknown, matching existing context status line behavior.
  • Make it selectable in the status line setup UI.

Prototype

I have a working fork/branch implementing this:

Targeted verification on upstream main:

cargo fmt -p codex-tui
cargo test -p codex-tui context_graph

Both passed locally.

extent analysis

TL;DR

Add a new status line item context-graph to render context usage as a compact 10-cell graph in the TUI footer.

Guidance

  • Review the proposed behavior to ensure it aligns with existing context status line behavior, including omitting the item when context window information is unknown.
  • Verify the rendering of the compact graph, including the model display name and context window size, to ensure it is accurate and readable.
  • Test the new status line item using the provided commands: cargo fmt -p codex-tui and cargo test -p codex-tui context_graph.
  • Check the status line setup UI to ensure the new item is selectable.

Example

No code snippet is provided as the issue includes a link to a working fork/branch implementing the proposed change.

Notes

The proposed change is implemented in a fork/branch, and targeted verification has been performed locally. However, further testing and review may be necessary to ensure the change works as expected in all scenarios.

Recommendation

Apply the workaround by reviewing and merging the proposed changes from the fork/branch, as the implementation is already available and has passed local verification.

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING