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
Linux sandbox: killing a command's process group leaves the sandboxed process running (orphaned under init) #61647
CLIIssues related to the Codex CLIapp-serverIssues involving app server protocol or interfacesbugSomething isn't workingsandboxIssues related to permissions or sandboxing
codex sandbox -- sleep 400 &
ps -eo pid,ppid,pgid,sid,comm | grep -E 'codex|bwrap|sleep'# codex (pgid A) -> bwrap (pgid A) -> codex-linux-sandbox (new session, pgid B) -> sleep (pgid B)kill -TERM -A # what Codex does to stop a command / background terminal# bwrap and the outer codex are gone; codex-linux-sandbox (now ppid 1) and sleep keep running.
Same with SIGKILL. In app-server this happens on turn interrupt + thread/backgroundTerminals/terminate, and when the app-server exits: the user's command keeps running after Codex reports it stopped.
Expected: stopping a command stops the whole sandboxed process tree — for example by also killing the inner session or PID namespace, or by making --die-with-parent effective for the --as-pid-1 child.
CLIIssues related to the Codex CLIapp-serverIssues involving app server protocol or interfacesbugSomething isn't workingsandboxIssues related to permissions or sandboxing
Activity
github-actions commentedon Nov 15, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action