{"record":{"id":"b9e1dd768365a9cc","repo":"openai/codex","slug":"runner-error","errorCode":null,"errorMessage":"runner error: {}","messagePattern":"runner error: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/windows-sandbox-rs/src/elevated_impl.rs","lineNumber":253,"sourceCode":"                let msg = match read_frame(&mut pipe_read) {\n                    Ok(Some(msg)) => msg,\n                    Ok(None) => break Err(anyhow::anyhow!(\"runner pipe closed before exit\")),\n                    Err(err) => break Err(err),\n                };\n                match msg.message {\n                    Message::SpawnReady { .. } => {}\n                    Message::Output { payload } => match decode_bytes(&payload.data_b64) {\n                        Ok(bytes) => match payload.stream {\n                            OutputStream::Stdout => stdout.extend_from_slice(&bytes),\n                            OutputStream::Stderr => stderr.extend_from_slice(&bytes),\n                        },\n                        Err(err) => {\n                            break Err(err);\n                        }\n                    },\n                    Message::Exit { payload } => break Ok((payload.exit_code, payload.timed_out)),\n                    Message::Error { payload } => {\n                        break Err(anyhow::anyhow!(\"runner error: {}\", payload.message));\n                    }\n                    other => {\n                        break Err(anyhow::anyhow!(\n                            \"unexpected runner message during capture: {other:?}\"\n                        ));\n                    }\n                }\n            };\n            if let Some((cancel_handle, done)) = cancel_writer {\n                done.store(true, Ordering::SeqCst);\n                cancel_handle.thread().unpark();\n                let _ = cancel_handle.join();\n            }\n            drop(pipe_write);\n            let (exit_code, timed_out) = result?;\n\n            if exit_code == 0 {\n                log_success(&command, logs_base_dir);","sourceCodeStart":235,"sourceCodeEnd":271,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/windows-sandbox-rs/src/elevated_impl.rs#L235-L271","documentation":"The runner sent an explicit error message frame over the pipe; this is a pass-through wrapper that surfaces the runner-side error text (formatted into the {} placeholder) from inside the elevated sandbox process to the caller.","triggerScenarios":"Thrown at codex-rs/windows-sandbox-rs/src/elevated_impl.rs:253 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the embedded runner error text to identify the underlying failure","Fix the root cause reported by the runner (spawn failure, ACL error, timeout, etc.)","If the runner error is transient (e.g., pipe contention), retry the sandboxed run"],"exampleFix":null,"handlingStrategy":"try-catch","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"}