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?

  1. Open Codex App.
  2. Work in a long session until automatic context compaction is triggered.
  3. 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_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗