openai/codex · error · anyhow::Error

failed to load configured marketplace snapshot(s)

Error message

failed to load configured marketplace snapshot(s):
{issue_lines}

What it means

configured_marketplace_snapshot_issues: one or more configured marketplace snapshots failed to load; each issue line names the marketplace, its path, and the load error. This is an aggregate guard over all broken snapshot files.

Solutions

  1. Fix each listed marketplace file per its issue message
  2. Remove stale marketplace entries from the plugins config
  3. Re-fetch/update the marketplace snapshot
Defensive patterns

Strategy: validation

When it happens

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

Appendix: source

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

        marketplace_name,
    );
    if issues.is_empty() {
        return Ok(());
    }

    let issue_lines = issues
        .iter()
        .map(|issue| {
            format!(
                "- `{}` at {}: {}",
                issue.marketplace_name,
                issue.path.display(),
                issue.message
            )
        })
        .collect::<Vec<_>>()
        .join("\n");
    bail!("failed to load configured marketplace snapshot(s):\n{issue_lines}");
}

pub(crate) fn configured_marketplace_snapshot_issues(
    codex_home: &std::path::Path,
    plugins_input: &PluginsConfigInput,
    load_errors: &[MarketplaceListError],
    marketplace_name: Option<&str>,
) -> Vec<ConfiguredMarketplaceSnapshotIssue> {
    let Some(user_config) = plugins_input.config_layer_stack.effective_user_config() else {
        return Vec::new();
    };
    let Some(configured_marketplaces) = user_config
        .get("marketplaces")
        .and_then(toml::Value::as_table)
    else {
        return Vec::new();
    };
    let allowed_marketplace_names =

View on GitHub (pinned to 339751715c)