openai/codex · error · anyhow::Error

plugin ` ` in marketplace ` ` matched multiple marketplace…

Error message

plugin `{plugin_name}` in marketplace `{marketplace_name}` matched multiple marketplace roots

What it means

Bailed by run_plugin_remove when more than one marketplace root matches the requested marketplace and plugin name. The removal target is ambiguous because duplicate marketplace definitions resolve to the same plugin name.

Solutions

  1. Remove duplicate marketplace entries from the plugins config
  2. Disambiguate the marketplace roots in plugins.toml/config
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at codex-rs/cli/src/plugin_cmd.rs:680 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/d583ee59e8f56997. Report an issue: GitHub.

Appendix: source

Thrown at codex-rs/cli/src/plugin_cmd.rs:680

        &outcome.errors,
        Some(marketplace_name),
    )?;
    let matches = outcome
        .marketplaces
        .into_iter()
        .filter(|marketplace| marketplace.name == marketplace_name)
        .filter(|marketplace| {
            marketplace
                .plugins
                .iter()
                .any(|plugin| plugin.name == plugin_name)
        })
        .collect::<Vec<_>>();

    match matches.as_slice() {
        [] => bail!("plugin `{plugin_name}` was not found in marketplace `{marketplace_name}`"),
        [marketplace] => Ok(marketplace.clone()),
        _ => bail!(
            "plugin `{plugin_name}` in marketplace `{marketplace_name}` matched multiple marketplace roots"
        ),
    }
}

pub(crate) struct ConfiguredMarketplaceSnapshotIssue {
    pub(crate) marketplace_name: String,
    pub(crate) path: PathBuf,
    pub(crate) message: String,
}

fn ensure_configured_marketplace_snapshots_loaded(
    codex_home: &std::path::Path,
    plugins_input: &PluginsConfigInput,
    load_errors: &[MarketplaceListError],
    marketplace_name: Option<&str>,
) -> Result<()> {
    let issues = configured_marketplace_snapshot_issues(

View on GitHub (pinned to 339751715c)