{"record":{"id":"625da88fda59c368","repo":"openai/codex","slug":"brokenpipe","errorCode":"BrokenPipe","errorMessage":"exec-server transport closed","messagePattern":"exec-server transport closed","errorType":"exception","errorClass":"io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/exec-server/src/remote_file_system.rs","lineNumber":428,"sourceCode":"fn remote_sandbox_context(\n    sandbox: Option<&FileSystemSandboxContext>,\n) -> Option<FileSystemSandboxContext> {\n    sandbox\n        .cloned()\n        .map(FileSystemSandboxContext::drop_cwd_if_unused)\n}\n\nfn map_remote_error(error: ExecServerError) -> io::Error {\n    match error {\n        ExecServerError::Server { code, message } if code == NOT_FOUND_ERROR_CODE => {\n            io::Error::new(io::ErrorKind::NotFound, message)\n        }\n        ExecServerError::Server { code, message } if code == INVALID_REQUEST_ERROR_CODE => {\n            io::Error::new(io::ErrorKind::InvalidInput, message)\n        }\n        ExecServerError::Server { message, .. } => io::Error::other(message),\n        ExecServerError::Closed | ExecServerError::Disconnected(_) => {\n            io::Error::new(io::ErrorKind::BrokenPipe, \"exec-server transport closed\")\n        }\n        _ => io::Error::other(error.to_string()),\n    }\n}\n\n#[cfg(all(test, any(unix, windows)))]\n#[path = \"remote_file_system_path_uri_tests.rs\"]\nmod path_uri_tests;\n\n#[cfg(test)]\nmod tests {\n    use codex_protocol::models::PermissionProfile;\n    use codex_protocol::permissions::FileSystemAccessMode;\n    use codex_protocol::permissions::FileSystemPath;\n    use codex_protocol::permissions::FileSystemSandboxEntry;\n    use codex_protocol::permissions::FileSystemSandboxPolicy;\n    use codex_protocol::permissions::FileSystemSpecialPath;\n    use codex_protocol::permissions::NetworkSandboxPolicy;","sourceCodeStart":410,"sourceCodeEnd":446,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/exec-server/src/remote_file_system.rs#L410-L446","documentation":"Error \"exec-server transport closed\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/exec-server/src/remote_file_system.rs:428 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"}