codex - 💡(How to fix) Fix Bring back % for token use in statusline [3 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#17874Fetched 2026-04-15 06:27:04
View on GitHub
Comments
3
Participants
3
Timeline
9
Reactions
0
Author
Timeline (top)
labeled ×5commented ×3closed ×1
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

codex-cli 0.120.0

What subscription do you have?

Pro

Which model were you using?

No response

What platform is your computer?

macos

What terminal emulator and version are you using (if applicable)?

ghostty / vscode

What issue are you seeing?

Having the percentage in the status line is much more useful than a bar graph. A percentage allows you to choose what sorts of messages you want to send based on the remaining usable context space before compaction kicks in. Removing this makes it more difficult to work around compaction effects.

What steps can reproduce the bug?

/statusline with context-usage set

What is the expected behavior?

show a percentage

Additional information

This was changed away from percentage recently (in the last couple of releases) The rationale was that it was confusing. Perhaps something like xx% ctx would be useful / less confusing.

extent analysis

TL;DR

The issue can be addressed by modifying the status line configuration to display the context usage as a percentage.

Guidance

  • Review the recent changes in the Codex CLI releases to understand the rationale behind removing the percentage display.
  • Consider using a custom format for the status line, such as "xx% ctx", to display the context usage as a percentage.
  • Check the documentation for the /statusline command to see if there are any options or parameters that can be used to customize the display.
  • Test the proposed solution by running the /statusline command with the custom format to verify that it displays the desired information.

Example

No code snippet is provided as the issue does not imply a specific code change.

Notes

The solution may not be applicable if the Codex CLI does not support custom formatting for the status line. Additionally, the exact syntax for the custom format may vary depending on the specific version of the Codex CLI.

Recommendation

Apply workaround: The issue can be addressed by using a custom format for the status line, such as "xx% ctx", to display the context usage as a percentage. This approach allows for a flexible solution that can be adapted to the user's needs.

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

codex - 💡(How to fix) Fix Bring back % for token use in statusline [3 comments, 3 participants]