openai/codex · error · anyhow::Error
plugin id `{}` belongs to marketplace `{}`, but --marketplac
Error message
plugin id `{}` belongs to marketplace `{}`, but --marketplace specified `{}` What it means
Error "plugin id `{}` belongs to marketplace `{}`, but --marketplace specified `{}`" thrown in openai/codex.
Source
Thrown at codex-rs/cli/src/plugin_cmd.rs:630
fn from_plugin_id(plugin_id: PluginId) -> Self {
let plugin_key = plugin_id.as_key();
Self {
plugin_name: plugin_id.plugin_name,
marketplace_name: plugin_id.marketplace_name,
plugin_key,
}
}
}
fn parse_plugin_selection(
plugin: String,
marketplace_name: Option<String>,
) -> Result<PluginSelection> {
match (PluginId::parse(&plugin), marketplace_name) {
(Ok(plugin_id), None) => Ok(PluginSelection::from_plugin_id(plugin_id)),
(Ok(plugin_id), Some(marketplace_name)) => {
if plugin_id.marketplace_name != marketplace_name {
bail!(
"plugin id `{}` belongs to marketplace `{}`, but --marketplace specified `{}`",
plugin,
plugin_id.marketplace_name,
marketplace_name
);
}
Ok(PluginSelection::from_plugin_id(plugin_id))
}
(Err(_), Some(marketplace_name)) => Ok(PluginSelection::from_plugin_id(PluginId::new(
plugin,
marketplace_name,
)?)),
(Err(_), None) => {
bail!("plugin requires --marketplace unless passed as <plugin>@<marketplace>")
}
}
}
View on GitHub (pinned to 339751715c)
When it happens
Trigger: Thrown at codex-rs/cli/src/plugin_cmd.rs:630 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/76268bf287748870.
Report an issue: GitHub.