codex - 💡(How to fix) Fix Codex Desktop: automatic context compaction cannot be cancelled and can stall long-running tasks

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Environment

  • Product: Codex Desktop App
  • OS: Windows
  • App version: 26.519.5221.0
  • Date observed: 2026-05-25
  • Model: gpt-5.5

Issue

During a long-running analysis session, Codex automatically started compacting the conversation context. The UI remained at 正在自动压缩上下文 ("Automatically compacting context") for more than 1 minute 54 seconds.

There is no visible way to cancel the operation. Sending a message asking Codex to stop compacting does not interrupt it.

Impact

This makes long-running analytical and coding tasks unreliable. Automatic compaction can lose important reasoning context and, when it stalls, prevents continuing the task in the active conversation.

Expected behavior

  • Provide an option to disable automatic compaction or make it manual.
  • Provide a Cancel button for an in-progress compaction.
  • Show meaningful progress or recovery when compaction stalls.
  • Preserve task-critical state across compactions.

A screenshot is available showing the UI stuck at 正在自动压缩上下文 after 1m 54s.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

  • Provide an option to disable automatic compaction or make it manual.
  • Provide a Cancel button for an in-progress compaction.
  • Show meaningful progress or recovery when compaction stalls.
  • Preserve task-critical state across compactions.

A screenshot is available showing the UI stuck at 正在自动压缩上下文 after 1m 54s.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING