compact does nothing

Resolved 💬 2 comments Opened Oct 7, 2025 by CodeAlexx Closed Dec 9, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

.45

Which model were you using?

gpt5 codex high

What platform is your computer?

Ubuntu 24.04

What steps can reproduce the bug?

/compact xxxx does not compact, it has same low context and two or three tries later it says "■ Codex ran out of room in the model's context window. Start a new conversation
or clear earlier history before retrying."

/compact alone simply gives me the same message above.

lets just say my mood -- i might need a new keyboard.. im not a happy camper

What is the expected behavior?

_No response_

What do you see instead?

_No response_

Additional information

_No response_

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 10 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #4813
  • #4648
  • #4593

Powered by Codex Action

etraut-openai contributor · 9 months ago

We've fixed a bunch of bugs with /compact since this bug was filed, so it's likely no longer relevant. If you're still seeing this with the most recent version of the CLI, please open a new bug report and use the /feedback slash command to upload your session.