{"record":{"id":"69dea7db804a7f60","repo":"openai/codex","slug":"prepared-escalated-command-must-not-be-empty","errorCode":null,"errorMessage":"prepared escalated command must not be empty","messagePattern":"prepared escalated command must not be empty","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/shell-escalation/src/unix/escalate_server.rs","lineNumber":334,"sourceCode":"                    \"mismatched number of fds in SuperExecMessage: {} in the message, {} from the control message\",\n                    msg.fds.len(),\n                    fds.len()\n                ));\n            }\n\n            let PreparedExec {\n                command,\n                cwd,\n                env,\n                arg0,\n            } = tokio::select! {\n                prepared = command_executor.prepare_escalated_exec(&program, &argv, &workdir, env, execution) => prepared?,\n                _ = parent_cancellation_token.cancelled() => return Ok(()),\n                _ = session_cancellation_token.cancelled() => return Ok(()),\n            };\n            let (program, args) = command\n                .split_first()\n                .ok_or_else(|| anyhow::anyhow!(\"prepared escalated command must not be empty\"))?;\n            let mut command = Command::new(program);\n            command\n                .args(args)\n                .arg0(arg0.unwrap_or_else(|| program.clone()))\n                .envs(&env)\n                .current_dir(&cwd)\n                .stdin(Stdio::null())\n                .stdout(Stdio::null())\n                .stderr(Stdio::null())\n                .kill_on_drop(true);\n            scrub_non_inheritable_env_vars(command.as_std_mut());\n            unsafe {\n                command.pre_exec(move || {\n                    for (dst_fd, src_fd) in msg.fds.iter().zip(&fds) {\n                        libc::dup2(src_fd.as_raw_fd(), *dst_fd);\n                    }\n                    Ok(())\n                });","sourceCodeStart":316,"sourceCodeEnd":352,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/shell-escalation/src/unix/escalate_server.rs#L316-L352","documentation":"Error \"prepared escalated command must not be empty\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/shell-escalation/src/unix/escalate_server.rs:334 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"}