auto compact error

Resolved 💬 0 comments Opened Sep 24, 2025 by notdp Closed Oct 14, 2025

What version of Codex is running?

codex-cli 0.40.0

Which model were you using?

gpt-5-codex high

What platform is your computer?

Darwin 24.6.0 arm64 arm

What steps can reproduce the bug?

I am using two codex windows to work at the same time, but the new window triggered the 220k auto compact specified by version 0.40 after just one conversation. I checked the other running window, which was just around 220k, so I suspect that the compact command that should have run in window A ended up running in window B.

new window:
<img width="5212" height="2772" alt="Image" src="https://github.com/user-attachments/assets/38818206-2475-4df8-972e-ca31b31756f6" />

Parallel:
<img width="2536" height="2654" alt="Image" src="https://github.com/user-attachments/assets/de24e83e-0b35-48bd-ba5a-433a4767eacb" />

What is the expected behavior?

A newly opened conversation won't reach the window limit in just one sentence.

What do you see instead?

A new conversation triggers autocompact and the dialogue token limit with one sentence.

Additional information

_No response_

View original on GitHub ↗