Codex sometimes fails during automatic context compaction with "stream disconnected before completion"
Resolved 💬 1 comment Opened Apr 25, 2026 by llcxlly Closed Apr 25, 2026
What version of the Codex App are you using (From “About Codex” dialog)?
26.423.10653
What subscription do you have?
plus
What platform is your computer?
windows x64
What issue are you seeing?
Codex intermittently fails during automatic context compaction with this error:
Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact)
It seems the remote compact request is interrupted before completion.
What steps can reproduce the bug?
- Open Codex App.
- Work in a long session until automatic context compaction is triggered.
- When Codex starts the remote compact task, it sometimes fails with:
Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact)
The issue is intermittent and may require a long session to reproduce.
What is the expected behavior?
_No response_
Additional information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗