The entire conversation breaks after automatic context compaction (invalid_enum_value: 'context_compaction')
What version of the Codex App are you using (From “About Codex” dialog)?
V26.608.12217
What subscription do you have?
plus
What platform is your computer?
Windowns11
What issue are you seeing?
No other programming tool has an issue quite like this: why does the entire conversation result in an error after Codex automatically performs context compaction, causing any message you send to fail to work properly:
[ItemParam] [input[793]] [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?
You can achieve this effect almost immediately by having him work for an extended period and then compressing the context; the reason is that the characters recognized by the system are not actually these (in my opinion).
What is the expected behavior?
-Context compression-
[ItemParam] [input[793]] [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'.
Additional information
In my opinion, this issue should be fixed immediately, as it could affect many users and the user experience.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗