{"record":{"id":"0b88b655a251c021","repo":"openai/codex","slug":"failed-to-send-elicitation-response-e","errorCode":null,"errorMessage":"failed to send elicitation response: {e:?}","messagePattern":"failed to send elicitation response: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/codex-mcp/src/elicitation.rs","lineNumber":150,"sourceCode":"        self.full_access_form_input_enabled\n            .store(true, Ordering::Release);\n    }\n\n    pub(crate) async fn resolve(\n        &self,\n        server_name: String,\n        id: RequestId,\n        response: ElicitationResponse,\n    ) -> Result<()> {\n        let responder = self\n            .requests\n            .lock()\n            .map_err(|_| anyhow!(\"elicitation request router unavailable\"))?\n            .remove(&(server_name, id))\n            .ok_or_else(|| anyhow!(\"elicitation request not found\"))?;\n        responder\n            .send(response)\n            .map_err(|e| anyhow!(\"failed to send elicitation response: {e:?}\"))\n    }\n}\n\n#[derive(Clone)]\npub(crate) struct ElicitationAuthority {\n    pub(crate) approval_policy: AskForApproval,\n    pub(crate) permission_profile: PermissionProfile,\n    reviewer: Option<ElicitationReviewerHandle>,\n    lifecycle: Option<ElicitationLifecycle>,\n}\n\n#[derive(Clone)]\npub(crate) struct ElicitationRequestManager {\n    router: ElicitationRequestRouter,\n    pub(crate) authority: Arc<StdMutex<ElicitationAuthority>>,\n}\n\nimpl ElicitationRequestManager {","sourceCodeStart":132,"sourceCodeEnd":168,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/codex-mcp/src/elicitation.rs#L132-L168","documentation":"Error \"failed to send elicitation response: {e:?}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/codex-mcp/src/elicitation.rs:150 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry sending the elicitation response and verify the MCP server connection is still alive."],"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"}