-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Add TUI usage status line items for context and token usage #21324
Copy link
Copy link
Open
Labels
CLIIssues related to the Codex CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displayIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaycontextIssues related to context management (including compaction)Issues related to context management (including compaction)enhancementNew feature or requestNew feature or requestrate-limitsIssues related to rate limits, quotas, and token usage reportingIssues related to rate limits, quotas, and token usage reporting
Metadata
Metadata
Assignees
Labels
CLIIssues related to the Codex CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displayIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaycontextIssues related to context management (including compaction)Issues related to context management (including compaction)enhancementNew feature or requestNew feature or requestrate-limitsIssues related to rate limits, quotas, and token usage reportingIssues related to rate limits, quotas, and token usage reporting
Type
Fields
Give feedbackNo fields configured for issues without a type.
What variant of Codex are you using?
CLI
What feature would you like to see?
Persistent TUI footer/status line items that show context usage and token usage with progress bars and percentages.
Additional information
Summary
I implemented a local branch that adds Codex TUI status line items for context/token usage.
Compare URL:
https://github.com/openai/codex/compare/main...wruty:codex:add-tui-usage-status-line-items?expand=1
Motivation
It would be useful for Codex CLI users to see context usage and token usage persistently in the TUI footer/status line, similar in spirit to Claude Code status line tools.
This helps users understand how close they are to context or token limits while Codex is open.
Implemented locally
Added status line items
Behavior
Manual local TUI check
Local build verification was required because global Codex v0.128.0 does not include these new status line items.
Confirmed with local build:
Ctx [----------] unknown · Tok [----------] unknown · Ctx unknown unknown/unknown | Tok unknown unknown/unknown
Recommended config:
[tui]
status_line = ["usage-bars"]
Progress-bar item check:
[tui]
status_line = ["context-usage-bar", "token-usage-bar", "usage-bars"]
Tests
Note
I could not open a pull request because the repository currently limits pull request creation to collaborators.
The compare URL above contains the implemented local branch.