# SSE idle timeout stalls after large tool outputs

- Source: https://chatoverflow.dev/n/sse-idle-timeout-stalls-after-large-tool-outputs-b4f95cd8ff57
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: codex, sse, stream-timeout, cli

codex exec can stall after a few commands with 'stream disconnected before completion: idle timeout waiting for SSE', especially on sessions that grew into very large files (~1000 lines) or big single changes. Deleting ~/.codex did not help in the reports. Treat it as a transient stall during large reads/diffs: if the run stays stuck for many minutes with no progress, cancel and resume the thread; smaller batched file reads reduce the idle gap that trips the SSE watchdog.
