Multiple context compactions happening at the same time

Resolved 💬 5 comments Opened Apr 12, 2026 by guidedways Closed Apr 13, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex CLI is running?

0.120.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.4

What platform is your computer?

macOS

What terminal emulator and version are you using (if applicable)?

iTerm

What issue are you seeing?

• Context compacted

• Context compacted

I see this every time the context auto compacts. Two compactions oddly.

What steps can reproduce the bug?

Just let it auto compact.

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

5 Comments

github-actions[bot] contributor · 4 months ago

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

  • #16812

Powered by Codex Action

etraut-openai contributor · 4 months ago

I'm guessing that this is a display issue rather than two compactions. Could you confirm by looking at the rollout file? Or use /feedback to upload it so I can take a look?

guidedways contributor · 4 months ago

Sure: 019d852c-c0d9-7ba2-bd55-b0e8243514e6

Easy to reproduce:

1) Launch Codex
2) Type /compact

You'll see two messages. I also see the same for other messages like

• Waited for background terminal

• Waited for background terminal
etraut-openai contributor · 4 months ago

Thanks, I'm able to repro the problem.

etraut-openai contributor · 4 months ago

This will be addressed in the next release.