{"record":{"id":"a43031f2b6ee732d","repo":"openai/codex","slug":"failed-to-lock-mcp-oauth-store-aggregate-store-l","errorCode":null,"errorMessage":"failed to lock MCP OAuth {store} aggregate-store lock {}","messagePattern":"failed to lock MCP OAuth (.+?) aggregate-store lock (.+?)","errorType":"exception","errorClass":"OAuthStoreLockFailure","httpStatus":null,"severity":"error","filePath":"codex-rs/rmcp-client/src/oauth/store_lock.rs","lineNumber":197,"sourceCode":"        source: io::Error,\n    },\n    #[error(\"failed to open MCP OAuth {store} aggregate-store lock {}\", path.display())]\n    Open {\n        store: OAuthStore,\n        path: PathBuf,\n        #[source]\n        source: io::Error,\n    },\n    #[error(\n        \"timed out after {acquire_timeout:?} waiting for MCP OAuth {store} aggregate-store lock {}\",\n        path.display()\n    )]\n    Timeout {\n        store: OAuthStore,\n        path: PathBuf,\n        acquire_timeout: Duration,\n    },\n    #[error(\"failed to lock MCP OAuth {store} aggregate-store lock {}\", path.display())]\n    Lock {\n        store: OAuthStore,\n        path: PathBuf,\n        #[source]\n        source: io::Error,\n    },\n}\n\nfn oauth_store_lock_path(codex_home: &Path, store: OAuthStore) -> PathBuf {\n    codex_home.join(OAUTH_LOCK_DIR).join(store.lock_filename())\n}\n\n#[cfg(test)]\n#[path = \"tests/store_lock_tests.rs\"]\nmod tests;\n","sourceCodeStart":179,"sourceCodeEnd":213,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/rmcp-client/src/oauth/store_lock.rs#L179-L213","documentation":"Error \"failed to lock MCP OAuth {store} aggregate-store lock {}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/rmcp-client/src/oauth/store_lock.rs:197 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"}