Skip to content

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

Closed

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

Activity

  1. added
    bug
    on Oct 3, 2025
  2. github-actions commented on Oct 3, 2025

    @github-actions
    Contributor
  3. 0xdeafbeef commented on Oct 3, 2025

    @0xdeafbeef

    #4502

    waiting for review

  4. added
    context
    on Nov 2, 2025
  5. etraut-openai commented on Nov 28, 2025

    @etraut-openai
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcontext

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions