{"record":{"id":"7eecf1b85356bac1","repo":"openai/codex","slug":"timed-out-awaiting-label-after-duration-0","errorCode":null,"errorMessage":"timed out awaiting {label} after {duration:.0?}","messagePattern":"timed out awaiting (.+?) after (.+?)","errorType":"exception","errorClass":"ClientOperationError","httpStatus":null,"severity":"error","filePath":"codex-rs/rmcp-client/src/rmcp_client.rs","lineNumber":274,"sourceCode":"                if changed.is_err() {\n                    return time::timeout(remaining, operation).await.map_err(|_| ());\n                }\n                if *pause_state.borrow_and_update() {\n                    remaining = remaining.saturating_sub(active_start.elapsed());\n                    if remaining.is_zero() {\n                        return Err(());\n                    }\n                }\n            }\n        }\n    }\n}\n\n#[derive(Debug, thiserror::Error)]\npub(crate) enum ClientOperationError {\n    #[error(transparent)]\n    Service(#[from] rmcp::service::ServiceError),\n    #[error(\"timed out awaiting {label} after {duration:.0?}\")]\n    Timeout { label: String, duration: Duration },\n}\n\nfn remaining_operation_timeout(\n    label: &str,\n    timeout: Option<Duration>,\n    deadline: Option<Instant>,\n) -> std::result::Result<Option<Duration>, ClientOperationError> {\n    let Some(deadline) = deadline else {\n        return Ok(None);\n    };\n    let remaining = deadline.saturating_duration_since(Instant::now());\n    if remaining.is_zero() {\n        Err(ClientOperationError::Timeout {\n            label: label.to_string(),\n            duration: timeout.unwrap_or(remaining),\n        })\n    } else {","sourceCodeStart":256,"sourceCodeEnd":292,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/rmcp-client/src/rmcp_client.rs#L256-L292","documentation":"Error \"timed out awaiting {label} after {duration:.0?}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/rmcp-client/src/rmcp_client.rs:274 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"}