openai/codex · error · anyhow::Error

elicitation request router unavailable

Error message

elicitation request router unavailable

What it means

Error "elicitation request router unavailable" thrown in openai/codex.

Source

Thrown at codex-rs/codex-mcp/src/elicitation.rs:145

    pub(crate) fn full_access_form_input_enabled(&self) -> bool {
        self.full_access_form_input_enabled.load(Ordering::Acquire)
    }

    pub(crate) fn enable_full_access_form_input(&self) {
        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 {

View on GitHub (pinned to 339751715c)

Solutions

  1. Retry the operation; if the router stays unavailable, restart the session so the elicitation router is re-registered.

When it happens

Trigger: Thrown at codex-rs/codex-mcp/src/elicitation.rs:145 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/cbee8ad243355c84. Report an issue: GitHub.