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
Context compaction stalls and the session hangs after large tool outputs (codex-cli 0.74.0) #8402
In a long-running Codex CLI session with context compaction enabled, the assistant became unresponsive after large tool outputs and repeated “Continue” prompts. There were no new tool calls or assistant messages for about 1.5 hours. No explicit error was shown; the session appeared to be stuck during or after context compaction.
Start a Codex CLI session (context compaction enabled; codex-cli 0.74.0).
Work in a repo with heavy build/run logs (e.g., repeated kraft build/kraft run output generating thousands of lines).
Continue for many turns, asking the assistant to “Continue” or iterate without interactive prompts.
After enough large outputs/context growth, observe the assistant stop responding (no tool calls, no messages) for a long period (~1.5 hours).
Session/thread id: 019b3a9f-c468-7143-b91c-89375e60276e
What is the expected behavior?
Context compaction should complete quickly (or show progress) and the assistant should continue responding. A hang or silent stall should not occur.
Additional information
Large command outputs (build/run logs) preceded the hang.
No error message surfaced; the assistant simply stopped producing output.
Activity
github-actions commentedon Dec 21, 2025
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
etraut-openai commentedon Mar 29, 2026
This bug report hasn't received any upvotes or additional posts in three months. Closing.