Error running remote compact task: stream disconnected before completion
Resolved 💬 7 comments Opened Apr 26, 2026 by linskay Closed Jun 29, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of the Codex App are you using (From “About Codex” dialog)?
26.313.41514
What subscription do you have?
plus
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
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?
Chat request - agent task execution - context compression attempt - error
What is the expected behavior?
context compression - task completion - response from agent
Additional information
_No response_
7 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
same here.
Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact)<img width="918" height="431" alt="Image" src="https://github.com/user-attachments/assets/34a818ac-a25a-48a8-afd3-46fb0dc7f18a" />
Any luck with this one? this is an outstanding issue since 5.4 release?
Same here. Crashed 5x saying Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact). All tokens gone, nothing got done.
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).
Similar Error here:
Error running remote compact task: stream disconnected before completion: unknown variant
auto, expectedhighororiginalat line 1 column 180794<img width="1026" height="148" alt="Image" src="https://github.com/user-attachments/assets/23151f84-9852-40a3-96a7-050943af7278" />
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.