Compact hangs and fails

Resolved 💬 3 comments Opened Mar 7, 2026 by puremachinery Closed Mar 7, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

Session has around 12% space left, keeps attempting to run compaction but hangs and returns this error: "■ Error running remote compact task: stream disconnected before completion: error sending request for url
(https://chatgpt.com/backend-api/codex/responses/compact)"

I've tried from the Codex macOS app Version 26.305.950 (863), as well as from codex-cli 0.107.0 and 0.111.0.

Everything else network-wise is working fine, so it doesn't appear to be a network connectivity issue.

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 5 months ago

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

  • #13784
  • #12425
  • #11954

Powered by Codex Action

Grallen · 5 months ago

This may only happen when you use gpt-5.4 instead of a codex model like gpt-5.3-codex. I was able to switch models, compact, and then switch back.

Grallen · 5 months ago

This it probably related to the too short timeout fix I just submitted https://github.com/openai/codex/issues/14860