TOO MUCH Error running remote compact task
What version of the Codex App are you using (From “About Codex” dialog)?
26.519.41501 (3044)
What subscription do you have?
pro 100USD
What platform is your computer?
Darwin 25.5.0 arm64 arm
What issue are you seeing?
Ever since a certain release of version 5.5, I've frequently encountered this issue whenever the context length becomes even moderately long. From my experience, the probability exceeds 50%, making Codex completely unusable now. In previous versions, I never experienced this problem, even with equally long contexts and under the same network conditions. This issue suddenly appeared in a recent update and has been occurring extremely frequently ever since. I encounter it heavily every day, and it's driving me to the brink of breakdown.
Codex ran out of room in the model's context window. Start a new thread or clear earlier history before retrying.
Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact)
What steps can reproduce the bug?
Feedback ID: 019e5f50-13ea-7a70-b8c6-37b28d5ccff7
What is the expected behavior?
_No response_
Additional information
_No response_
8 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Solution: openai/codex #24449 — TOO MUCH Error running remote compact task
Issue Summary
Since Codex v5.5, when context length becomes moderately long (>50% probability), the remote compaction task fails with: "stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact)". This makes Codex completely unusable for long conversations. The error appeared suddenly in a recent release, indicating a regression.
Root Cause Analysis
The Error Pattern
Likely Causes
error sending requestsuggests a network-level failure (timeout, connection reset).Code Location
The compaction logic is likely in:
src/compaction/orsrc/session/compact.tssrc/compact/or similarProposed Fix
Fix 1: Increase compaction timeout with retry
Fix 2: Chunked compaction for very long contexts
For extremely long conversations, split compaction into chunks:
Fix 3: Fallback to local compaction
When remote compaction fails, fall back to local:
Test Plan
Impact Assessment
The same to me!
The same to me!
The same to me!
pro 100USD
Same here, since yesterday non-stop in all my codex sessions :/
Pro $100
CLI v0.134.0
same here, basically made codex unusable
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.