openai/codex · error
mismatched number of fds in SuperExecMessage: {} in the mess
Error message
mismatched number of fds in SuperExecMessage: {} in the message, {} from the control message What it means
Error "mismatched number of fds in SuperExecMessage: {} in the message, {} from the control message" thrown in openai/codex.
Source
Thrown at codex-rs/shell-escalation/src/unix/escalate_server.rs:315
action: EscalateAction::Run,
})
.await?;
}
EscalationDecision::Escalate(execution) => {
socket
.send(EscalateResponse {
action: EscalateAction::Escalate,
})
.await?;
let (msg, fds) = tokio::select! {
message = socket.receive_with_fds::<SuperExecMessage>() => {
message.context("failed to receive SuperExecMessage")?
}
_ = parent_cancellation_token.cancelled() => return Ok(()),
_ = session_cancellation_token.cancelled() => return Ok(()),
};
if fds.len() != msg.fds.len() {
return Err(anyhow::anyhow!(
"mismatched number of fds in SuperExecMessage: {} in the message, {} from the control message",
msg.fds.len(),
fds.len()
));
}
let PreparedExec {
command,
cwd,
env,
arg0,
} = tokio::select! {
prepared = command_executor.prepare_escalated_exec(&program, &argv, &workdir, env, execution) => prepared?,
_ = parent_cancellation_token.cancelled() => return Ok(()),
_ = session_cancellation_token.cancelled() => return Ok(()),
};
let (program, args) = command
.split_first()View on GitHub (pinned to 339751715c)
When it happens
Trigger: Thrown at codex-rs/shell-escalation/src/unix/escalate_server.rs:315 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of openai/codex@339751715c (2026-08-25).
Data as JSON: /api/errors/20f3c3ac881ef74e.
Report an issue: GitHub.