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

Resolved 💬 3 comments Opened May 30, 2026 by bsb66 Closed Jun 29, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

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

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 3 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #25030
  • #24797
  • #24039

Powered by Codex Action

etraut-openai contributor · 3 months ago

Are you using a custom model provider?

Can you provide /feedback?

etraut-openai contributor · 1 month ago

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.