Skip to content

Error running remote compact task: stream disconnected before completion #19660

Closed

Description

@linskay

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

26.313.41514

What subscription do you have?

plus

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

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?

Chat request - agent task execution - context compression attempt - error

What is the expected behavior?

context compression - task completion - response from agent

Additional information

No response

Activity

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

    @hhkhub

    same here.

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

  5. devvidhani commented on May 3, 2026

    @devvidhani
    Image

    Any luck with this one? this is an outstanding issue since 5.4 release?

  6. endoibiza commented on May 5, 2026

    @endoibiza

    Same here. Crashed 5x saying Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact). All tokens gone, nothing got done.

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

  8. chadhapankaj24 commented on May 29, 2026

    @chadhapankaj24

    Similar Error here:
    Error running remote compact task: stream disconnected before completion: unknown variant auto, expected high or original at line 1 column 180794

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