Skip to content

failing to compress #26879

Closed
Closed

Description

@XxSbyH

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

26.602.40742

What subscription do you have?

pro

What platform is your computer?

win10 x64

What issue are you seeing?

Error running remote compact task: stream disconnected before completion: error sending request for url
(https://xxxxx/v1/responses/compact)。

It keeps failing to compress over and over, unless I switch to a smaller model like gpt-4mini.

What steps can reproduce the bug?

This happens during a long task. It tries to auto-compress the context multiple times but keeps failing. It's happening on both desktop and CLI

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    appIssues related to the Codex desktop app
    on Jun 7, 2026
  2. added
    bugSomething isn't working
    CLIIssues related to the Codex CLI
    windows-osIssues related to Codex on Windows systems
    contextIssues related to context management (including compaction)
    connectivityIssues involving networking or endpoint connectivity problems (disconnections)
    on Jun 7, 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

    CLIIssues related to the Codex CLIappIssues related to the Codex desktop appbugSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)contextIssues related to context management (including compaction)windows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions