{"record":{"id":"d28e5e36072850de","repo":"BigPizzaV3/CodexPlusPlus","slug":"invalid-bundled-marketplace-path","errorCode":null,"errorMessage":"invalid bundled marketplace path","messagePattern":"invalid bundled marketplace path","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/codex-plus-core/src/computer_use_guard.rs","lineNumber":474,"sourceCode":"\n#[cfg(windows)]\npub(crate) fn ensure_openai_bundled_marketplace(home: &Path) -> anyhow::Result<Option<PathBuf>> {\n    let active = home\n        .join(\".tmp\")\n        .join(\"bundled-marketplaces\")\n        .join(BUNDLED_MARKETPLACE);\n    if is_complete_openai_bundled_marketplace(&active) {\n        return Ok(Some(active));\n    }\n    if let Some(configured) = configured_openai_bundled_marketplace(home) {\n        if is_complete_openai_bundled_marketplace(&configured) {\n            return Ok(Some(configured));\n        }\n    }\n\n    let parent = active\n        .parent()\n        .ok_or_else(|| anyhow::anyhow!(\"invalid bundled marketplace path\"))?;\n    std::fs::create_dir_all(parent)?;\n\n    let staging = parent.join(format!(\n        \"{BUNDLED_MARKETPLACE}.guard-staging-{}\",\n        std::time::SystemTime::now()\n            .duration_since(std::time::UNIX_EPOCH)\n            .unwrap_or_default()\n            .as_millis()\n    ));\n    if staging.exists() {\n        std::fs::remove_dir_all(&staging)?;\n    }\n\n    if let Some(source) = find_complete_openai_bundled_marketplace(parent, &active) {\n        copy_dir_recursive(&source, &staging)?;\n    } else if can_build_marketplace_from_cache(home) {\n        build_marketplace_from_cache(home, &staging)?;\n    } else {","sourceCodeStart":456,"sourceCodeEnd":492,"githubUrl":"https://github.com/BigPizzaV3/CodexPlusPlus/blob/fb3ebd9a82383aedd8d098aa9ae3aef9426d13a4/crates/codex-plus-core/src/computer_use_guard.rs#L456-L492","documentation":"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.","triggerScenarios":"Thrown at crates/codex-plus-core/src/computer_use_guard.rs:474 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Confirm the Codex home directory is a real absolute path","Create the .tmp/bundled-marketplaces directory if removed","Use a configured marketplace path that is complete"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fb3ebd9a82383aedd8d098aa9ae3aef9426d13a4","analyzedAt":"2026-08-17T11:35:12.031Z","contentChangedAt":"2026-08-17T11:35:12.031Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}