Skip to content

Remote compact task fails with unknown variant auto, expected high or original #25191

Closed

Description

@bsb66

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

codex-cli 0.133.0

What subscription do you have?

pro

What platform is your computer?

win11

What issue are you seeing?

Codex shows an internal error during remote context compaction:

Error running remote compact task: stream disconnected before completion: unknown variant auto, expected high or original at line 1 column 212507
Expected:
The remote compact task should complete successfully, or tolerate/normalize auto if older/newer clients may emit it.

Actual:
The stream disconnects before completion because a serialized field contains auto, while the server/parser only accepts high or original.

Likely cause:
A schema mismatch between client and remote compaction service. A field that looks like an image/detail setting is serialized as auto, but the receiving side only accepts the enum variants high and original.

Environment:
Codex desktop app, Windows workspace, timezone Europe/Bucharest. Error occurred during conversation compaction, not while running user code.

What steps can reproduce the bug?

Codex shows an internal error during remote context compaction:

Error running remote compact task: stream disconnected before completion: unknown variant auto, expected high or original at line 1 column 212507
Expected:
The remote compact task should complete successfully, or tolerate/normalize auto if older/newer clients may emit it.

Actual:
The stream disconnects before completion because a serialized field contains auto, while the server/parser only accepts high or original.

Likely cause:
A schema mismatch between client and remote compaction service. A field that looks like an image/detail setting is serialized as auto, but the receiving side only accepts the enum variants high and original.

Environment:
Codex desktop app, Windows workspace, timezone Europe/Bucharest. Error occurred during conversation compaction, not while running user code.

What is the expected behavior?

to do

Additional information

no

Activity

  1. added
    app
    on May 30, 2026
  2. added
    bug
    context
    app-server
    on May 30, 2026
  3. github-actions commented on May 30, 2026

    @github-actions
    Contributor
  4. etraut-openai commented on May 30, 2026

    @etraut-openai
    Contributor

    Are you using a custom model provider?

    Can you provide /feedback?

  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

    appapp-serverbugcontext

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions