/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

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 ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗