Compacting is getting stuck
Open 💬 7 comments Opened Mar 11, 2026 by nstas
💡 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)?
Version 26.305.950 (863)
What subscription do you have?
Pro
What platform is your computer?
Darwin 22.5.0 arm64 arm
What issue are you seeing?
"Automatically compacting context" taking 20+ minutes and happen to often.
What steps can reproduce the bug?
Start working, initiate planning, after ONE task done, compacting is being initiated automatically.
What is the expected behavior?
_No response_
Additional information
_No response_
7 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Following up to say that lowering to high fixed it.
me too!!
I face it very often. It is annoying. I have to open codex cli and let it compact the thread, then I need to restart codex app, because otherwise it does not see the updated thread, and then finally I can continue in in the codex app. 🥲
I also notice, that compacting in codex app takes MUCH longer than in codx cli. I use gpt-5.4 xhigh.
Context compaction works in the Codex CLI for me, but always have the problem with the Codex GUI on Windows.
Adding a concrete desktop-app example here because this looks like the same failure mode, but with stronger thread-level evidence.
Environment:
019cb41c-0825-7f03-82ca-470891d7a6e8What happened:
Concrete timings from local rollout/log inspection on 2026-03-12:
So the broader stretch was about 3h 45m 41s with 149 actual compactions total.
If counting both
compacted+context_compactedlog records, that is 298 compact-related entries.Other evidence from the same thread:
Failed to apply patches ... [Immer] minified error nr: 18task_complete -> task_startedcycles before the next real user messageThis did not feel like a single slow task. It felt like the app got trapped in repeated compaction and reread behavior on a very large thread.
Still happens - Windows here