{"record":{"id":"20f3c3ac881ef74e","repo":"openai/codex","slug":"mismatched-number-of-fds-in-superexecmessage-i","errorCode":null,"errorMessage":"mismatched number of fds in SuperExecMessage: {} in the message, {} from the control message","messagePattern":"mismatched number of fds in SuperExecMessage: (.+?) in the message, (.+?) from the control message","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/shell-escalation/src/unix/escalate_server.rs","lineNumber":315,"sourceCode":"                    action: EscalateAction::Run,\n                })\n                .await?;\n        }\n        EscalationDecision::Escalate(execution) => {\n            socket\n                .send(EscalateResponse {\n                    action: EscalateAction::Escalate,\n                })\n                .await?;\n            let (msg, fds) = tokio::select! {\n                message = socket.receive_with_fds::<SuperExecMessage>() => {\n                    message.context(\"failed to receive SuperExecMessage\")?\n                }\n                _ = parent_cancellation_token.cancelled() => return Ok(()),\n                _ = session_cancellation_token.cancelled() => return Ok(()),\n            };\n            if fds.len() != msg.fds.len() {\n                return Err(anyhow::anyhow!(\n                    \"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()","sourceCodeStart":297,"sourceCodeEnd":333,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/shell-escalation/src/unix/escalate_server.rs#L297-L333","documentation":"Error \"mismatched number of fds in SuperExecMessage: {} in the message, {} from the control message\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/shell-escalation/src/unix/escalate_server.rs:315 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"}