"Goal blocked" after auto compact fail for ~1 hour run goal session.

Resolved 💬 2 comments Opened Jun 14, 2026 by tszyub1002 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)?

0.139.0

What subscription do you have?

pro 20x

What platform is your computer?

mac

What issue are you seeing?

I updated to Codex Desktop 26.601.10930 recently and hit a problem today.

I had a goal running for about an hour when Codex attempted an automatic context compaction and failed with:

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

After that, the goal stopped and showed "Goal blocked".

I remember previous versions automatically retrying compaction failures. This time the goal just stopped.

I clicked Resume and it continued, but then it kept asking for confirmations/approvals even though I had already granted full permissions at the beginning of the session.

Codex Desktop Version: 26.601.10930
Codex Version: codex-cli 0.139.0

What steps can reproduce the bug?

run long goal task

What is the expected behavior?

  • retry auto compact again.
  • when I click resume, it shouldn't ask for permission for every command.

Additional information

_No response_

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 2 months ago

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

  • #27018
  • #26885
  • #26879
  • #27682
  • #26787

Powered by Codex Action

etraut-openai contributor · 1 month 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.