Skip to content

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

Closed

Description

@tszyub1002

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

Activity

  1. added
    appIssues related to the Codex desktop app
    on Jun 14, 2026
  2. added
    bugSomething isn't working
    contextIssues related to context management (including compaction)
    connectivityIssues involving networking or endpoint connectivity problems (disconnections)
    sandboxIssues related to permissions or sandboxing
    on Jun 14, 2026
  3. etraut-openai commented on Jun 29, 2026

    @etraut-openai
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)contextIssues related to context management (including compaction)sandboxIssues related to permissions or sandboxing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions