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
Background processes started with nohup are killed at turn end in codex-cli 0.97.0–0.98.0; setsid survives #10860
What terminal emulator and version are you using (if applicable)?
WSL
What issue are you seeing?
In codex-cli versions 0.97.0 and 0.98.0, background processes started using "nohup ... &" do not survive the end of a command turn.
These processes are terminated before completion, even though:
nohup is used
stdout and stderr are redirected
no interactive TTY is required
The same command started with "setsid ... &" runs to completion reliably.
This behavior indicates that Codex CLI performs aggressive cleanup of processes spawned from the exec/PTY context at turn end. Since nohup does not create a new session, the process remains attached and is killed.
The nohup utility should allow background processes to continue running after the Codex CLI command turn ends, consistent with standard Unix behavior. If Codex CLI does not support this, the limitation should be explicitly documented and an officially supported mechanism for running detached background jobs should be provided.
Activity
zdorovie-java-developer commentedon Feb 6, 2026
This also affects live monitoring loops (tail/watch) being moved to background terminal
richardrl commentedon Feb 24, 2026
this makes agentic hands-free coding very difficult!