{"record":{"id":"5b1d0d4c55b2c9a2","repo":"openai/codex","slug":"runner-resize-pipe-closed","errorCode":null,"errorMessage":"runner resize pipe closed","messagePattern":"runner resize pipe closed","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/windows-sandbox-rs/src/unified_exec/backends/windows_common.rs","lineNumber":161,"sourceCode":"        }\n    });\n}\n\npub(crate) fn make_runner_resizer(\n    outbound_tx: std::sync::mpsc::Sender<FramedMessage>,\n) -> Box<dyn FnMut(TerminalSize) -> Result<()> + Send> {\n    Box::new(move |size: TerminalSize| {\n        outbound_tx\n            .send(FramedMessage {\n                version: IPC_PROTOCOL_VERSION,\n                message: Message::Resize {\n                    payload: ResizePayload {\n                        rows: size.rows,\n                        cols: size.cols,\n                    },\n                },\n            })\n            .map_err(|_| anyhow::anyhow!(\"runner resize pipe closed\"))\n    })\n}\n\nfn send_runner_error(\n    message: &str,\n    stdout_tx: &broadcast::Sender<Vec<u8>>,\n    stderr_tx: Option<&broadcast::Sender<Vec<u8>>>,\n) {\n    let formatted = format!(\"runner error: {message}\\n\").into_bytes();\n    if let Some(stderr_tx) = stderr_tx {\n        let _ = stderr_tx.send(formatted);\n    } else {\n        let _ = stdout_tx.send(formatted);\n    }\n}\n","sourceCodeStart":143,"sourceCodeEnd":177,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/windows-sandbox-rs/src/unified_exec/backends/windows_common.rs#L143-L177","documentation":"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.","triggerScenarios":"Thrown at codex-rs/windows-sandbox-rs/src/unified_exec/backends/windows_common.rs:161 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The sandbox runner exited and closed the resize pipe; restart the runner and the exec session."],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}