Skip to content

Compaction error #14913

Closed
Closed

Description

@tkp666

What version of Codex CLI is running?

codex-cli 0.115.0

What subscription do you have?

every time the auto-compact run, the codex report the error, every time!

Which model were you using?

gpt-5.4

What platform is your computer?

Ubuntu

What terminal emulator and version are you using (if applicable)?

No response

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?

Uploaded thread: 019cfb14-d697-7f82-b5ec-7185da2d58d8

What is the expected behavior?

No response

Additional information

No response

Activity

  1. changed the title [-]error[/-] [+]Compaction error[/+] on Mar 17, 2026
  2. added
    contextIssues related to context management (including compaction)
    on Mar 17, 2026
  3. kuzkokov commented on Mar 26, 2026

    @kuzkokov

    same here after the latest update.
    here is my thread id: 019d2006-08a1-73d3-885b-c4e27fe89477

    not every time though. tried 3 times on one thread — no luck. forked it to the new one, and compaction went through

  4. lifeaddicted commented on Mar 31, 2026

    @lifeaddicted

    same here after the latest update.
    here is my thread id: 019d41ce-f40a-7920-b9fb-869e8185bde7

    codex-cli 0.116.0
    Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 x86_64
    Plus gpt-5.4 medium

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