/compact triggers automatic context compaction again after submitting the next prompt
Open 💬 0 comments Opened Jul 9, 2026 by raphaelramos
What version of the Codex App are you using (From “About Codex” dialog)?
Version 26.707.30751
What subscription do you have?
Enterprise
What platform is your computer?
macOS
What issue are you seeing?
<img width="349" height="244" alt="Image" src="https://github.com/user-attachments/assets/7d6d3a39-406a-4ea6-bb4d-7c21d5501b77" />
After manually running /compact in Codex, the UI shows that the context was compacted successfully. However, when I send the next message, Codex starts “Context automatically compacting” again, effectively compacting twice in a row.
This causes an unnecessary extra wait and makes it look like the manual /compact did not prevent the automatic compaction from running immediately afterward.
What steps can reproduce the bug?
- Open a Codex session with enough conversation context to make compaction relevant.
- Run the /compact command.
- Wait until the UI shows that the context was compacted.
- Send a new prompt/question.
- Observe that Codex starts “Context automatically compacting” again right after the message is sent.
What is the expected behavior?
_No response_
Additional information
_No response_