codex icon indicating copy to clipboard operation
codex copied to clipboard

/compact doesn't update the UI's context value, unless you run it twice

Open jcs180 opened this issue 1 year ago • 3 comments

What version of Codex is running?

codex-cli 0.42.0

Which model were you using?

gpt-5-codex

What platform is your computer?

Darwin 24.5.0 arm64 arm

What steps can reproduce the bug?

  • Use the tool for a bit, so that at the bottom you have a context percent left that is less that 100% - e.g. "93% context left"
  • use the /compact command (you will notice that although the task completes, the '93% context left' text does not update)
  • run it again, and now the text will say '100% context left'

What is the expected behavior?

I would expect the remaining context indicator to go back up to 100% (or at least change) upon the first run of the command.

What do you see instead?

It only changes the second time I run the command, straight after the first one.

Additional information

No response

jcs180 avatar Oct 03 '25 06:10 jcs180

Potential duplicates detected:

  • #4441

Powered by Codex Action

github-actions[bot] avatar Oct 03 '25 15:10 github-actions[bot]

https://github.com/openai/codex/pull/4502

waiting for review

0xdeafbeef avatar Oct 03 '25 15:10 0xdeafbeef

I think this has been fixed in recent versions. If you're still seeing it with the latest version of the CLI, let us know.

etraut-openai avatar Nov 28 '25 20:11 etraut-openai