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

Resolved 💬 3 comments Opened Oct 3, 2025 by jcs180 Closed Nov 28, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

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_

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 10 months ago

Potential duplicates detected:

  • #4441

Powered by Codex Action

0xdeafbeef · 10 months ago
etraut-openai contributor · 9 months ago

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.