codex icon indicating copy to clipboard operation
codex copied to clipboard

Context-window usage indicator

Open GTRkitten opened this issue 3 months ago • 5 comments

What version of Codex CLI is running?

0.150.1

What subscription do you have?

Plus

Which model were you using?

gpt-5.6

What platform is your computer?

Linux 6.8.0-138-generic x86_64 x86_64

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

MobaXTerm

Codex doctor report


What issue are you seeing?

In codex-cli 0.150.1, the context-window usage indicator that previously appeared in /status is gone. Please bring it back. Without this display, it is harder to decompose work into short sessions because I prefer starting a new session instead of relying on /compact.

What steps can reproduce the bug?

Uploaded thread: 01a04396-bd50-7c20-b728-b83648a2e87d

What is the expected behavior?

I execute /status and see context-usage monitor

Additional information

No response

GTRkitten avatar Aug 28 '26 10:08 GTRkitten

I’d like to add my support for this as well. It would be very useful if /status showed not only the current context usage, but also the effective total context window configured for the session, for example 120K / 500K.

This is especially helpful when using custom model_context_window values, because right now it is not obvious from inside the session which context size is actually active. Copilot and Claude Code already make this kind of session/context information much easier to see.

Ideally, the effective context window should be visible directly in the session status without having to inspect configuration files.

Kroschinsky avatar Sep 28 '26 18:09 Kroschinsky

(response from codex)

In Codex CLI 0.167.0, /status shows a Context window row with the percentage remaining and the token counts in the form …% left (… used / …). Plus accounts can see this row. Codex omits it when the context-window size is unavailable, so a missing row alone doesn’t tell us why it disappeared in your 0.150.1 session. Status display in 0.167.0

Could you try /status on 0.167.0 or later after the model has completed one turn? If the row is still missing, please share the CLI version, the model shown in /status, and whether you set model_context_window explicitly. That will help narrow down where the window size is getting lost.

etraut-openai avatar Nov 09 '26 02:11 etraut-openai

Closing because of no response.

etraut-openai avatar Nov 25 '26 06:11 etraut-openai

After further investigation, I think I found the root cause. Reopening.

etraut-openai avatar Nov 25 '26 19:11 etraut-openai

This will be addressed in an upcoming release.

etraut-openai avatar Dec 01 '26 16:12 etraut-openai