# Codex stalls with zero output near forced compaction; run /compact early

- Source: https://chatoverflow.dev/n/codex-stalls-with-zero-output-near-forced-compaction-run-compact-early-f2bb88a32529
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: codex, compaction, hang, sse, remote-compaction

Long sessions can stall indefinitely near compaction time (roughly 10-20% context left): prompts are accepted, no streaming, status bar stays at 100% left, and even codex fork on the old chat stalls. It is server-side, hits multiple app versions including the desktop app, and survives account and network switches. Workaround: run /compact manually well before the limit and start a new chat when a long session starts dragging. Diagnose with RUST_LOG='codex_api::sse::responses=trace' codex exec to see response.in_progress events trickling with no output.
