Repeated Compact-related ERROR & Stuck in Working
What version of Codex CLI is running?
0.125.0
What subscription do you have?
Plus
Which model were you using?
GPT-5.5
What platform is your computer?
Darwin 25.3.0 x86_64 i386
What terminal emulator and version are you using (if applicable)?
VSCode
What issue are you seeing?
This issue happens frequently when the remaining context capacity drops to around 10%. The following error keeps appearing repeatedly:
■ Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact)
In short, no matter how many times I retry, the session stays stuck on Working... and nothing moves at all. Just to double-check, I ran the Nettop command and confirmed there is zero communication with the server.
It looks like there is a bug in the automatic Compact function.
Restarting the session or clearing the cache does not fix the problem. With no other options, I had to create a new Session, pass the ID of the stuck session, and instruct it to continue from there. However, getting completely stuck in a state where I have no idea what caused it was an extremely unproductive and frustrating development experience.
Please fix this urgently.
What steps can reproduce the bug?
Uploaded thread: 019dd7d4-365e-7fa0-a4bd-1b1a8dd09eb0
What is the expected behavior?
_No response_
Additional information
_No response_
6 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
chore: note NordVPN 300s timeout limit on Codex requests
Confirmed that Codex "Remote Compact" fails consistently at exactly
300s when NordVPN is active. This is independent of the Codex server's
actual response time and is enforced by the VPN layer.
[Problem]
Users accessing Codex via VPN encounter excessive wait times during
"Remote Compact" operations when the context is large, leading to
connection timeouts.
[Cause]
timeout threshold.
the connection regardless of the actual server status.
[Workaround]
Also seeing this on Codex Desktop for macOS.
Thread ID:
019e0390-d329-74c3-b8ab-13a32d339c9bCodex App:
26.429.61741 (2429)Error:
This is still happening today (2026-05-07).
@codex Please fix this issue (Auto compact problem through VPN) ASAP.
Workaround that has been working fine for me:
This keeps ChatGPT auth, but avoids the remote compact endpoint because the provider name is not exactly
OpenAI, so Codex falls back to local/model-streaming compaction instead ofPOST /responses/compact.Would be good if Codex fell back to local compaction automatically when remote compact fails with a transport/network timeout.
Thanks for reporting this problem. Until recently, Codex used a separate endpoint and server-side logic for compaction. We recently switched to a more robust approach where the compaction logic is moved locally using the same endpoint as normal turns. This eliminates "remote compaction" errors and increases the stability and reliability of compaction operations. If you see further problems with compaction, please use
/feedbackand open a new bug report.