openai/codex · error · PluginStoreError

{context}: {source}

Error message

{context}: {source}

What it means

Error "{context}: {source}" thrown in openai/codex.

Source

Thrown at codex-rs/core-plugins/src/store.rs:406

    fn remove_remote_plugin_install_metadata(
        &self,
        plugin_id: &PluginId,
    ) -> Result<(), PluginStoreError> {
        let path = self.remote_plugin_install_metadata_path(plugin_id);
        match fs::remove_file(path.as_path()) {
            Ok(()) => Ok(()),
            Err(err) if err.kind() == io::ErrorKind::NotFound => Ok(()),
            Err(err) => Err(PluginStoreError::io(
                "failed to remove remote plugin install metadata",
                err,
            )),
        }
    }
}

#[derive(Debug, thiserror::Error)]
pub enum PluginStoreError {
    #[error("{context}: {source}")]
    Io {
        context: &'static str,
        #[source]
        source: io::Error,
    },

    #[error("{0}")]
    Invalid(String),
}

impl PluginStoreError {
    fn io(context: &'static str, source: io::Error) -> Self {
        Self::Io { context, source }
    }

    pub(crate) fn sub_error_type(&self) -> Option<String> {
        match self {
            Self::Io { context, .. } => Some(error_context_sub_error_type(context)),

View on GitHub (pinned to 339751715c)

Solutions

  1. Address the underlying plugin store error in the reported context.

When it happens

Trigger: Thrown at codex-rs/core-plugins/src/store.rs:406 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/944a43696796a0e5. Report an issue: GitHub.