{"record":{"id":"3dcba4c3aa30af59","repo":"openai/codex","slug":"timed-out-pairing-code-mode-host-bulk-websocket","errorCode":null,"errorMessage":"timed out pairing code-mode host bulk websocket","messagePattern":"timed out pairing code-mode host bulk websocket","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/code-mode-host/src/lib.rs","lineNumber":135,"sourceCode":"\nasync fn run_connection(\n    mut reader: ConnectionReader,\n    mut writer: ConnectionWriter,\n    limits: Arc<HostLimits>,\n    bulk_connections: Option<BulkConnectionRegistry>,\n) -> Result<()> {\n    let negotiated = negotiate(&mut reader, &mut writer, bulk_connections.as_ref()).await?;\n    let bulk_connection = match negotiated {\n        NegotiatedConnection::Rejected => return Ok(()),\n        NegotiatedConnection::Single => None,\n        NegotiatedConnection::Dual(mut registration) => {\n            match tokio::time::timeout(BULK_PAIRING_TIMEOUT, registration.receive()).await {\n                Ok(Ok(connection)) => Some(connection),\n                Ok(Err(_)) => {\n                    anyhow::bail!(\"code-mode host bulk websocket pairing was abandoned\");\n                }\n                Err(_) => {\n                    anyhow::bail!(\"timed out pairing code-mode host bulk websocket\");\n                }\n            }\n        }\n    };\n    let (mut bulk_reader, bulk_writer) = match bulk_connection {\n        Some(connection) => (Some(connection.reader), Some(connection.writer)),\n        None => (None, None),\n    };\n    let (outgoing_tx, outgoing_rx) = mpsc::channel::<EncodedFrame>(OUTGOING_CHANNEL_CAPACITY);\n    let (bulk_tx, bulk_rx) = if bulk_writer.is_some() {\n        let (sender, receiver) = mpsc::channel::<EncodedFrame>(MAX_PENDING_DELEGATE_CALLS);\n        (Some(sender), Some(receiver))\n    } else {\n        (None, None)\n    };\n    let peer = match bulk_tx {\n        Some(sender) => Arc::new(HostPeer::new(outgoing_tx).with_bulk_sender(sender)),\n        None => Arc::new(HostPeer::new(outgoing_tx)),","sourceCodeStart":117,"sourceCodeEnd":153,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/code-mode-host/src/lib.rs#L117-L153","documentation":"Error \"timed out pairing code-mode host bulk websocket\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/code-mode-host/src/lib.rs:135 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"}