Invalid value: 'context_compaction'

Open 💬 4 comments Opened Jun 11, 2026 by hzqn1234
💡 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)?

26.608.12217

What subscription do you have?

ChatGPT Pro 20x

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

feedback ID 019eb343-5be7-7cd1-a7ae-c4a117c5ac38

everytime when the context is automatcially compressed, this error pop up

[ItemParam] [input[2]] [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'.

What steps can reproduce the bug?

conversation with the agent until the context is automatcially compressed, then the error pop up

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

4 Comments

github-actions[bot] contributor · 2 months ago

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

  • #26493
  • #27005
  • #26573
  • #27269
  • #27423

Powered by Codex Action

hzqn1234 · 2 months ago

the error will also pop up when i use '/' to manually initiate context compressing

hzqn1234 · 2 months ago

i think i found a fix for this - i upgraded my remote server codex from 0.130.0 to 0.139.0 and it seems the issue is gone

hzqn1234 · 2 months ago
i think i found a fix for this - i upgraded my remote server codex from 0.130.0 to 0.139.0 and it seems the issue is gone

the 'upgrade' is done by removing the .codex folder (backup first) and then reinstalling with this command curl -fsSL https://chatgpt.com/codex/install.sh | sh