Long-running commands (smokes, pipelines, servers) must not run inside the Codex CLI harness. Use the terminal task runner instead so work happens in a detached GUI terminal with optional .env, .venv, geometry, PID capture, and tee logging.
export PREFERRED_TERMINAL=gnome-terminal
export RIGHT_MONITOR_GEOM="160x40+3840+0" # adjust to your layout
export SPAWN_GEOMETRY="$RIGHT_MONITOR_GEOM" # default geometry