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_

View original on GitHub ↗

7 Comments

github-actions[bot] contributor · 2 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #19558
  • #19547
  • #19441
  • #18450
  • #19538

Powered by Codex Action

hhkhub · 2 months ago

same here.

Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact)

devvidhani · 2 months ago

<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?

endoibiza · 2 months ago

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.

presidenzo · 2 months ago

Also seeing this on Codex Desktop for macOS.

Thread ID: 019e0390-d329-74c3-b8ab-13a32d339c9b
Codex App: 26.429.61741 (2429)
Error:

Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact)

This is still happening today (2026-05-07).

chadhapankaj24 · 1 month ago

Similar Error here:
Error running remote compact task: stream disconnected before completion: unknown variant auto, expected high or original at line 1 column 180794

<img width="1026" height="148" alt="Image" src="https://github.com/user-attachments/assets/23151f84-9852-40a3-96a7-050943af7278" />

etraut-openai contributor · 21 days ago

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 /feedback and open a new bug report.