openai/codex · error · anyhow::Error
failed to send elicitation response: {e:?}
Error message
failed to send elicitation response: {e:?} What it means
Error "failed to send elicitation response: {e:?}" thrown in openai/codex.
Source
Thrown at codex-rs/codex-mcp/src/elicitation.rs:150
self.full_access_form_input_enabled
.store(true, Ordering::Release);
}
pub(crate) async fn resolve(
&self,
server_name: String,
id: RequestId,
response: ElicitationResponse,
) -> Result<()> {
let responder = self
.requests
.lock()
.map_err(|_| anyhow!("elicitation request router unavailable"))?
.remove(&(server_name, id))
.ok_or_else(|| anyhow!("elicitation request not found"))?;
responder
.send(response)
.map_err(|e| anyhow!("failed to send elicitation response: {e:?}"))
}
}
#[derive(Clone)]
pub(crate) struct ElicitationAuthority {
pub(crate) approval_policy: AskForApproval,
pub(crate) permission_profile: PermissionProfile,
reviewer: Option<ElicitationReviewerHandle>,
lifecycle: Option<ElicitationLifecycle>,
}
#[derive(Clone)]
pub(crate) struct ElicitationRequestManager {
router: ElicitationRequestRouter,
pub(crate) authority: Arc<StdMutex<ElicitationAuthority>>,
}
impl ElicitationRequestManager {View on GitHub (pinned to 339751715c)
Solutions
- Retry sending the elicitation response and verify the MCP server connection is still alive.
When it happens
Trigger: Thrown at codex-rs/codex-mcp/src/elicitation.rs:150 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of openai/codex@339751715c (2026-08-25).
Data as JSON: /api/errors/0b88b655a251c021.
Report an issue: GitHub.