BigPizzaV3/CodexPlusPlus · error

invalid bundled marketplace path

Error message

invalid bundled marketplace path

What it means

Path guard in ensure_openai_bundled_marketplace (Windows): the computed bundled-marketplace directory under <home>/.tmp/bundled-marketplaces/<id> has no valid parent (or is otherwise invalid), so the staging directory cannot be created. Generic sentinel fired before any filesystem mutation.

Solutions

  1. Confirm the Codex home directory is a real absolute path
  2. Create the .tmp/bundled-marketplaces directory if removed
  3. Use a configured marketplace path that is complete
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at crates/codex-plus-core/src/computer_use_guard.rs:474 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of BigPizzaV3/CodexPlusPlus@fb3ebd9a82 (2026-08-17). Data as JSON: /api/errors/d28e5e36072850de. Report an issue: GitHub.

Appendix: source

Thrown at crates/codex-plus-core/src/computer_use_guard.rs:474

#[cfg(windows)]
pub(crate) fn ensure_openai_bundled_marketplace(home: &Path) -> anyhow::Result<Option<PathBuf>> {
    let active = home
        .join(".tmp")
        .join("bundled-marketplaces")
        .join(BUNDLED_MARKETPLACE);
    if is_complete_openai_bundled_marketplace(&active) {
        return Ok(Some(active));
    }
    if let Some(configured) = configured_openai_bundled_marketplace(home) {
        if is_complete_openai_bundled_marketplace(&configured) {
            return Ok(Some(configured));
        }
    }

    let parent = active
        .parent()
        .ok_or_else(|| anyhow::anyhow!("invalid bundled marketplace path"))?;
    std::fs::create_dir_all(parent)?;

    let staging = parent.join(format!(
        "{BUNDLED_MARKETPLACE}.guard-staging-{}",
        std::time::SystemTime::now()
            .duration_since(std::time::UNIX_EPOCH)
            .unwrap_or_default()
            .as_millis()
    ));
    if staging.exists() {
        std::fs::remove_dir_all(&staging)?;
    }

    if let Some(source) = find_complete_openai_bundled_marketplace(parent, &active) {
        copy_dir_recursive(&source, &staging)?;
    } else if can_build_marketplace_from_cache(home) {
        build_marketplace_from_cache(home, &staging)?;
    } else {

View on GitHub (pinned to fb3ebd9a82)