Codex Desktop 26.519.41501: remote compaction fails with context_length_exceeded across multiple threads
What version of the Codex App are you using (From “About Codex” dialog)?
Observed from Codex Desktop logs: 26.519.41501.
What subscription do you have?
Not included in this public report.
Which model were you using?
gpt-5.5 with high/extra-high reasoning in the Codex Desktop app.
What platform is your computer?
Microsoft Windows 11, version 10.0.26200, x64.
What issue are you seeing?
Multiple Codex Desktop threads started failing automatic context compaction with the same remote compact error:
Error running remote compact task: { "error": { "message": "Your input exceeds the context window of this model. Please adjust your input and try again.", "type": "invalid_request_error", "param": "input", "code": "context_length_exceeded" } }
This appears to be generated by Codex's automatic remote compaction path rather than by a new oversized user prompt. It affects multiple existing threads, including long-running project threads that previously compacted successfully.
Local log evidence, with private paths and conversation content omitted:
codex_core::compact_remote
responses/compact
context_length_exceeded
model=gpt-5.5
model_context_window_tokens=Some(258400)
all_history_items_model_visible_bytes roughly 3.06 MB to 9.22 MB on affected threads
last_api_response_total_tokens observed as high as 2305504 in one affected thread
features list shows request compression enabled locally:
enable_request_compression stable true
remote_compaction_v2 under development false
There were also concurrent signs of feature/UI mismatch in the same Codex Desktop session: the UI exposed the thread goal/target control, but calls such as thread/goal/get and thread/goal/set failed with:
goals feature is disabled
That may be unrelated, but it appeared around the same time as the compaction failures and may indicate a feature flag or desktop/app-server state mismatch.
What steps can reproduce the bug?
- Use Codex Desktop
26.519.41501on Windows withgpt-5.5. - Resume or continue several existing long-running Codex Desktop threads.
- Let automatic context compaction trigger.
- Observe that remote compaction fails with
context_length_exceeded. - Repeat in another long-running thread; the same failure appears again.
In this environment, the failures were observed across multiple threads around 2026-05-23, not just a single session.
What is the expected behavior?
Automatic remote compaction should not construct a /responses/compact request that exceeds the target model's context window.
If the thread is too large to compact in one request, Codex should chunk, trim, recursively summarize, or offer a recovery/handoff workflow instead of leaving the thread unable to continue.
What is the actual behavior?
The app attempts remote compaction, but the compaction task itself exceeds the model context window and fails with context_length_exceeded. Long-running threads become difficult or impossible to continue normally.
Additional information
CLI version observed locally:
codex-cli 0.133.0-alpha.1
Related reports that appear similar:
- #24089
- #24014
- #24078
- #24002
- #23589
This report is specifically from Codex Desktop on Windows with app log release 26.519.41501, and the notable symptom is that several existing threads failed remote compaction in the same time period.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗