Skip to content

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

@jcs180

Description

@jcs180

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions