openai/codex · error · anyhow::Error

elicitation request not found

Error message

elicitation request not found

What it means

Error "elicitation request not found" thrown in openai/codex.

Source

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

    }

    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 {
    router: ElicitationRequestRouter,
    pub(crate) authority: Arc<StdMutex<ElicitationAuthority>>,

View on GitHub (pinned to 339751715c)

Solutions

  1. Respond to the elicitation before the request expires; retry the tool call that triggered the elicitation.

When it happens

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