compact bug

Resolved 💬 6 comments Opened Jun 7, 2026 by boqian001 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.602.40724

What subscription do you have?

plus

What platform is your computer?

macos

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?

Feedback ID: 019ea214-23b0-73a0-b157-c84ab2194c53

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

6 Comments

github-actions[bot] contributor · 1 month ago

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

  • #25493
  • #26069
  • #25678
  • #26879
  • #26481

Powered by Codex Action

ybsun0215 · 1 month ago

Why does this issue persist? Hasn't anyone noticed it? Even in version v0.138, Compact is still broken.

pineapple880066 · 1 month ago

The Codex desktop client hasn't appeared since this week (latest version). If you're using an earlier version, i recommend switching to the 5.4 mini model and then compacting it.
macOS too.

ybsun0215 · 1 month ago
Why does this issue persist? Hasn't anyone noticed it? Even in version v0.138, Compact is still broken.
The Codex desktop client hasn't appeared since this week (latest version). If you're using an earlier version, i recommend switching to the 5.4 mini model and then compacting it. macOS too.

Yes, that's a valuable suggestion. However, the CLI still has a bug (even in the latest v0.139) when running long-duration tasks with the 5.5 model. We can't reasonably expect developers to switch models manually as a workaround, especially when they're building automated workflows. Therefore, I believe this remains a serious bug and severely impacts the user experience.

pineapple880066 · 1 month ago
> Why does this issue persist? Hasn't anyone noticed it? Even in version v0.138, Compact is still broken. > The Codex desktop client hasn't appeared since this week (latest version). If you're using an earlier version, i recommend switching to the 5.4 mini model and then compacting it. macOS too. Yes, that's a valuable suggestion. However, the CLI still has a bug (even in the latest v0.139) when running long-duration tasks with the 5.5 model. We can't reasonably expect developers to switch models manually as a workaround, especially when they're building automated workflows. Therefore, I believe this remains a serious bug and severely impacts the user experience.

yes,when we are working this is a problem,especially in the /goal mode.Switch model just could use when the session is end or compact broken

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.