Skip to content

Add a 10-cell context usage graph status line item #19768

@k-kwen

Description

@k-kwen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displayenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions