Compact Error
What version of Codex CLI is running?
v0.116.0
What subscription do you have?
Usually sent Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact). It always have 40% more context left but it compact failed.
Which model were you using?
gpt-5.4
What platform is your computer?
linux
What terminal emulator and version are you using (if applicable)?
_No response_
What issue are you seeing?
I am frequently hitting a remote compaction failure in Codex on a Linux server environment.
Full error message:
Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact)
My setup uses a large context window (around 400k), with auto-compaction configured to trigger at around 240k. The problem occurs repeatedly even when the session still has more than 40% context remaining, so it does not seem to happen only when the conversation is close to the hard context limit.
This is happening in a remote/server Linux workflow rather than on a local desktop machine. The failure appears during the automatic compact step and interrupts normal usage. In my experience, this happens regularly in long-running sessions.
What steps can reproduce the bug?
Any session needs context compact have its possibility to reproduce the bug.
What is the expected behavior?
_No response_
Additional information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗