openai/codex · error
runner resize pipe closed
Error message
runner resize pipe closed
What it means
The resizer closure returned by make_runner_resizer tried to send a Resize FramedMessage over the std::sync::mpsc channel to the sandbox runner, but the receiving end is gone (send returned Err). The runner process has exited or dropped its IPC channel, so resize notifications can no longer be delivered.
Solutions
- The sandbox runner exited and closed the resize pipe; restart the runner and the exec session.
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at codex-rs/windows-sandbox-rs/src/unified_exec/backends/windows_common.rs:161 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/5b1d0d4c55b2c9a2.
Report an issue: GitHub.
Appendix: source
Thrown at codex-rs/windows-sandbox-rs/src/unified_exec/backends/windows_common.rs:161
}
});
}
pub(crate) fn make_runner_resizer(
outbound_tx: std::sync::mpsc::Sender<FramedMessage>,
) -> Box<dyn FnMut(TerminalSize) -> Result<()> + Send> {
Box::new(move |size: TerminalSize| {
outbound_tx
.send(FramedMessage {
version: IPC_PROTOCOL_VERSION,
message: Message::Resize {
payload: ResizePayload {
rows: size.rows,
cols: size.cols,
},
},
})
.map_err(|_| anyhow::anyhow!("runner resize pipe closed"))
})
}
fn send_runner_error(
message: &str,
stdout_tx: &broadcast::Sender<Vec<u8>>,
stderr_tx: Option<&broadcast::Sender<Vec<u8>>>,
) {
let formatted = format!("runner error: {message}\n").into_bytes();
if let Some(stderr_tx) = stderr_tx {
let _ = stderr_tx.send(formatted);
} else {
let _ = stdout_tx.send(formatted);
}
}
View on GitHub (pinned to 339751715c)