# Codex Desktop auto-compaction sends unsupported \`context\_compaction\` item type

**URL:** <https://community.openai.com/t/codex-desktop-auto-compaction-sends-unsupported-context-compaction-item-type/1383066>\
**Category:** Codex\
**Tags:** codex-desktop-app\
**Created:** [June 8, 2026, 2:30pm UTC](https://community.openai.com/t/codex-desktop-auto-compaction-sends-unsupported-context-compaction-item-type/1383066 "2026-06-08T14:30:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sitevisor.cloud](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@sitevisor.cloud](https://community.openai.com/u/sitevisor.cloud)\
**Post date:** [June 8, 2026, 2:30pm UTC](https://community.openai.com/t/codex-desktop-auto-compaction-sends-unsupported-context-compaction-item-type/1383066/1 "2026-06-08T14:30:35Z")

</div>

## Description

When working in Codex Desktop, automatic context compaction can break the current thread with an API validation error.

The error says that an input item has type `context_compaction`, but the API schema only accepts `compaction` and `compaction_trigger` among the compaction-related item types.

This appears similar to or the same class of issue as:

> <https://github.com/openai/codex/issues/26493>
>
> \### What version of the Codex App are you using (From “About Codex” dialog)?
> 
> Co…dex CLI/runtime: codex-cli 0.137.0 Global npm package: @openai/codex@0.137.0 Codex App version: unknown / not shown in this report
> 
> \### What subscription do you have?
> 
> ChatGPT Plus
> 
> \### What platform is your computer?
> 
> Microsoft Windows 11, Microsoft Windows NT 10.0.26200.0 x64
> 
> \### What issue are you seeing?
> 
> After Codex automatically compacts context, the thread shows an internal schema/enum error:
> 
> \[ItemParam\] \[input\[6\]\] \[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'.
> 
> This happens immediately around the "Context compacted" event. It looks like the Codex App/runtime is sending or replaying a \`context\_compaction\` item type, but the receiving schema only accepts \`compaction\` / \`compaction\_trigger\` and other listed item types.
> 
> A full uninstall/reinstall did not fix related Codex schema errors on this machine, so this appears to be a client/server schema mismatch or persisted thread replay compatibility issue rather than a normal local install problem.
> 
> Screenshot attached.
> 
> \### What steps can reproduce the bug?
> 
> 1. Use Codex App on Windows 11.
> 2. Continue a thread until automatic context compaction happens.
> 3. After the "Context compacted" marker appears, send another message or continue the thread.
> 4. Observe the invalid\_enum\_value error for \`context\_compaction\`.
> 
> \### What is the expected behavior?
> 
> Context compaction should complete cleanly and the thread should remain usable. If \`context\_compaction\` is a valid newer item type, the app/server should accept it or normalize it to a supported item type during replay/compaction.
> 
> \### Additional information
> 
> This may be related to recent Codex context compaction schema mismatch reports, but the exact enum value here is different.
> 
> Related examples:
> \- https://github.com/openai/codex/issues/25191
> \- https://github.com/openai/codex/issues/24039
> \- https://github.com/openai/codex/issues/25030

## Error

```plaintext
[ItemParam] [input[733]] [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'.
```

---

<div class="post-metadata">

**Author:** ![OpenAI\_Support](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/openai_support/32/561845_2.png) [@OpenAI\_Support](https://community.openai.com/u/OpenAI_Support)\
**Post date:** [September 17, 2026, 5:57pm UTC](https://community.openai.com/t/codex-desktop-auto-compaction-sends-unsupported-context-compaction-item-type/1383066/2 "2026-09-17T17:57:44Z")

</div>

Hey, as a workaround, try starting a new thread with a brief summary of your task and progress. This may let you continue working, though it won't fix the underlying issue.

If the issue still persists, could you share your Codex Desktop version, operating system, and whether the same behavior occurs in new threads?

Avinash

---

<div class="post-metadata">

**Author:** ![avinash.api](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/avinash.api/32/741581_2.png) [@avinash.api](https://community.openai.com/u/avinash.api)\
**Post date:** [September 26, 2026, 2:54pm UTC](https://community.openai.com/t/codex-desktop-auto-compaction-sends-unsupported-context-compaction-item-type/1383066/3 "2026-09-26T14:54:06Z")

</div>


