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
Interrupting Codex CLI does not terminate spawned child processes (runaway background jobs) #7985
When interrupting an active Codex CLI session (e.g. via Esc), the Codex interaction stops but spawned commands may continue running in the background.
This can lead to uncontrolled runaway processes (e.g. crawlers repeatedly spawning Chrome instances), even though the user explicitly intended to stop execution.
Example:
Codex was running a uv-based crawler that launched Chrome for scraping.
I exited the session using Esc, but the crawler continued running in the background, repeatedly opening Chrome windows and consuming resources, with no visibility or easy way to stop it.
Seconding this, hitting escape simply shifts the focus back to whatever other window was last touched. The only workaround I've found is interrupting the run, but then you're left trying to figure out what's been changed.
With the "feat: close unified_exec at end of turn (#8052)" commit in 0.74.0-alpha.1, this issue was addressed but it also affects situations when Codex ends the turn instead of the user. There are situations where I would like a command to continue to run when Codex ends the turn (rather than the user), which was possible prior to this commit. Is this something that will not be supported moving forward?
Activity
0377892 commentedon Dec 16, 2025
Seconding this, hitting escape simply shifts the focus back to whatever other window was last touched. The only workaround I've found is interrupting the run, but then you're left trying to figure out what's been changed.
sudarshan227 commentedon Dec 22, 2025
With the "feat: close unified_exec at end of turn (#8052)" commit in 0.74.0-alpha.1, this issue was addressed but it also affects situations when Codex ends the turn instead of the user. There are situations where I would like a command to continue to run when Codex ends the turn (rather than the user), which was possible prior to this commit. Is this something that will not be supported moving forward?