{"record":{"id":"276653f10718513b","repo":"openai/codex","slug":"missing-program-for-pipe-spawn","errorCode":null,"errorMessage":"missing program for pipe spawn","messagePattern":"missing program for pipe spawn","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/utils/pty/src/pipe.rs","lineNumber":143,"sourceCode":"#[derive(Clone, Copy)]\nenum PipeStdinMode {\n    Piped,\n    Null,\n}\n\n/// On Windows, process-tree containment is best-effort because Tokio returns\n/// only after the root process starts, so job assignment cannot be atomic.\nasync fn spawn_process_with_stdin_mode(\n    program: &str,\n    args: &[String],\n    cwd: &Path,\n    env: &HashMap<String, String>,\n    arg0: &Option<String>,\n    stdin_mode: PipeStdinMode,\n    inherited_fds: &[i32],\n) -> Result<SpawnedProcess> {\n    if program.is_empty() {\n        anyhow::bail!(\"missing program for pipe spawn\");\n    }\n\n    #[cfg(not(unix))]\n    let _ = inherited_fds;\n\n    let mut command = Command::new(program);\n    #[cfg(unix)]\n    if let Some(arg0) = arg0 {\n        command.arg0(arg0);\n    }\n    #[cfg(target_os = \"linux\")]\n    let parent_pid = unsafe { libc::getpid() };\n    #[cfg(unix)]\n    let inherited_fds = inherited_fds.to_vec();\n    #[cfg(unix)]\n    unsafe {\n        command.pre_exec(move || {\n            crate::process_group::detach_from_tty()?;","sourceCodeStart":125,"sourceCodeEnd":161,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/utils/pty/src/pipe.rs#L125-L161","documentation":"Error \"missing program for pipe spawn\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/utils/pty/src/pipe.rs:143 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}