{"record":{"id":"b199ab002d9715de","repo":"openai/codex","slug":"timed-out-waiting-for-exec-server-initialize-hands","errorCode":null,"errorMessage":"timed out waiting for exec-server initialize handshake after {timeout:?}","messagePattern":"timed out waiting for exec-server initialize handshake after (.+?)","errorType":"exception","errorClass":"ExecServerError","httpStatus":null,"severity":"error","filePath":"codex-rs/exec-server/src/client.rs","lineNumber":642,"sourceCode":"        self.get().await?.environment_info().await\n    }\n}\n\n#[derive(Debug, thiserror::Error)]\npub enum ExecServerError {\n    #[error(\"failed to spawn exec-server: {0}\")]\n    Spawn(#[source] std::io::Error),\n    #[error(\"timed out connecting to exec-server websocket `{url}` after {timeout:?}\")]\n    WebSocketConnectTimeout { url: String, timeout: Duration },\n    #[error(\"failed to connect to exec-server websocket `{url}`: {source}\")]\n    WebSocketConnect {\n        url: String,\n        #[source]\n        source: tokio_tungstenite::tungstenite::Error,\n    },\n    #[error(\"failed to configure exec-server websocket: {0}\")]\n    WebSocketConfiguration(String),\n    #[error(\"timed out waiting for exec-server initialize handshake after {timeout:?}\")]\n    InitializeTimedOut { timeout: Duration },\n    #[error(\"exec-server transport closed\")]\n    Closed,\n    #[error(\"{0}\")]\n    Disconnected(String),\n    #[error(\"failed to serialize or deserialize exec-server JSON: {0}\")]\n    Json(#[from] serde_json::Error),\n    #[error(\"HTTP request failed: {0}\")]\n    HttpRequest(String),\n    #[error(\"exec-server protocol error: {0}\")]\n    Protocol(String),\n    #[error(\n        \"environment `{environment_id}` is already registered with a different provisioning mode\"\n    )]\n    ProvisioningModeConflict { environment_id: String },\n    #[error(\"exec-server rejected request ({code}): {message}\")]\n    Server { code: i64, message: String },\n    #[error(\"environment registry request failed ({status}{code_suffix}): {message}\", code_suffix = .code.as_ref().map(|code| format!(\", {code}\")).unwrap_or_default())]","sourceCodeStart":624,"sourceCodeEnd":660,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/exec-server/src/client.rs#L624-L660","documentation":"Error \"timed out waiting for exec-server initialize handshake after {timeout:?}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/exec-server/src/client.rs:642 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check exec-server responsiveness and client/server version compatibility."],"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"}