Skip to content

Automatic Compact Recurring Error #19329

Closed

Description

@diginfobiz

What version of the Codex App are you using (From “About Codex” dialog)?

26.422.21637 (2056)

What subscription do you have?

Pro 200$

What platform is your computer?

MacOS

What issue are you seeing?

When the conversation try to automatically compact the context, it shows an error and it blocks the work. It says: 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?

The automatic compact of each conversation always stop and shows this error: Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact)

What is the expected behavior?

To properly compact and work.

Additional information

019db22a-b11f-7f51-a0e8-219c2eb5f3db

Activity

  1. added
    appIssues related to the Codex desktop app
    on Apr 24, 2026
  2. added
    bugSomething isn't working
    contextIssues related to context management (including compaction)
    connectivityIssues involving networking or endpoint connectivity problems (disconnections)
    on Apr 24, 2026
  3. removed
    appIssues related to the Codex desktop app
    on Apr 24, 2026
  4. uujx commented on Apr 24, 2026

    @uujx

    same!

  5. MikeK184 commented on Apr 24, 2026

    @MikeK184

    same here, happens for some reason when it tries to compact around 5% left

  6. presidenzo commented on May 7, 2026

    @presidenzo

    Also seeing this on Codex Desktop for macOS.

    Thread ID: 019e0390-d329-74c3-b8ab-13a32d339c9b
    Codex App: 26.429.61741 (2429)
    Error:

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

    This is still happening today (2026-05-07).

  7. 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

    bugSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)contextIssues related to context management (including compaction)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions