You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Automatic context compaction in Codex Desktop is extremely slow, sometimes taking around a full minute #24372
macOS 26.5 on a MacBook Pro 16-inch with Apple M5 Max and 128 GB memory.
What issue are you seeing?
Over the last two days, automatic context compaction in Codex Desktop has become extremely slow.
In the representative session I uploaded, Codex reached the automatic compaction step and paused at Context automatically compacted / Automatically compacting context. The longest observed compaction took around a full minute before the agent continued.
This is clearly abnormal compared with normal task flow. Every long-running task can now spend a significant amount of time blocked on context compaction, which makes Codex feel much slower even when the actual coding/editing work is otherwise progressing.
This report is specifically about automatic context compaction latency. The compaction eventually completes in the representative case, but the delay is long enough to disrupt the workflow.
What steps can reproduce the bug?
Open Codex Desktop on macOS.
Work in a long-running coding session until automatic context compaction is triggered.
Observe that Codex pauses at the context compaction step.
In recent sessions, this pause can last close to a full minute before the agent continues.
changed the title [-]Slow automatic context compaction in Codex Desktop[/-][+]Automatic context compaction in Codex Desktop is extremely slow, sometimes taking around a full minute[/+]on May 24, 2026
Thanks for reporting this problem. Until recently, Codex used a separate endpoint and server-side logic for compaction. We recently switched to a more robust approach where the compaction logic is moved locally using the same endpoint as normal turns. This eliminates "remote compaction" errors and increases the stability and reliability of compaction operations. If you see further problems with compaction, please use /feedback and open a new bug report.
Activity
github-actions commentedon May 24, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
[-]Slow automatic context compaction in Codex Desktop[/-][+]Automatic context compaction in Codex Desktop is extremely slow, sometimes taking around a full minute[/+]etraut-openai commentedon Jun 29, 2026
Thanks for reporting this problem. Until recently, Codex used a separate endpoint and server-side logic for compaction. We recently switched to a more robust approach where the compaction logic is moved locally using the same endpoint as normal turns. This eliminates "remote compaction" errors and increases the stability and reliability of compaction operations. If you see further problems with compaction, please use
/feedbackand open a new bug report.