Context compaction stalls and the session hangs after large tool outputs (codex-cli 0.74.0)

Resolved 💬 2 comments Opened Dec 21, 2025 by BleedingDev Closed Mar 29, 2026

What version of Codex is running?

codex-cli 0.74.0

What subscription do you have?

Pro

Which model were you using?

GPT-5.2-Codex on xhigh

What platform is your computer?

Darwin 25.2.0 arm64 arm

What issue are you seeing?

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.

What steps can reproduce the bug?

Uploaded thread: 019b3a9f-c468-7143-b91c-89375e60276e

  1. Start a Codex CLI session (context compaction enabled; codex-cli 0.74.0).
  2. Work in a repo with heavy build/run logs (e.g., repeated kraft build/kraft run output generating thousands of lines).
  3. Continue for many turns, asking the assistant to “Continue” or iterate without interactive prompts.
  4. 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.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗