Skip to content

Codex Desktop Context Compact Error #25030

Closed

Description

@xzltc

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

26.519.81530

What subscription do you have?

Plus

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What issue are you seeing?

The same issue occurs every time the conversation context is automatically compressed. This appears to be a server-side problem.
Example 1
Error running remote compact task: stream disconnected before completion: unknown variant auto, expected highororiginal at line 1 column 72088.
Example 2
Error running remote compact task: stream disconnected before completion: unknown variant auto, expected highororiginal at line 1 column 96342

What steps can reproduce the bug?

When exceeding the default context length

What is the expected behavior?

Image

Additional information

No response

Activity

  1. added
    app
    on May 29, 2026
  2. added
    bug
    context
    on May 29, 2026
  3. mafhper commented on Jun 12, 2026

    @mafhper

    up

    [ItemParam] [input[659]] [invalid_enum_value] Invalid value: 'context_compaction'. Supported values are: 'additional_tools', 'apply_patch_call', 'apply_patch_call_output', 'code_interpreter_call', 'compaction', 'compaction_trigger', 'computer_call', 'computer_call_output', 'custom_tool_call', 'custom_tool_call_output', 'file_search_call', 'function_call', 'function_call_output', 'image_generation_call', 'item_reference', 'local_shell_call', 'local_shell_call_output', 'mcp_approval_request', 'mcp_approval_response', 'mcp_call', 'mcp_list_tools', 'message', 'reasoning', 'shell_call', 'shell_call_output', 'tool_search_call', 'tool_search_output', and 'web_search_call'.

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

    appbugcontext

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions