{"record":{"id":"8e0d3b0bc7c820b6","repo":"BigPizzaV3/CodexPlusPlus","slug":"bundled-marketplace-json-should-serialize","errorCode":null,"errorMessage":"bundled marketplace JSON should serialize","messagePattern":"bundled marketplace JSON should serialize","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/codex-plus-core/src/computer_use_guard.rs","lineNumber":677,"sourceCode":"                \"source\": \"local\",\n                \"path\": format!(\"./plugins/{name}\")\n            },\n            \"policy\": {\n                \"installation\": \"AVAILABLE\",\n                \"authentication\": \"ON_INSTALL\"\n            },\n            \"category\": category\n        })\n    })\n    .collect::<Vec<_>>();\n    serde_json::to_string_pretty(&serde_json::json!({\n        \"name\": BUNDLED_MARKETPLACE,\n        \"interface\": {\n            \"displayName\": \"OpenAI Bundled\"\n        },\n        \"plugins\": plugins\n    }))\n    .expect(\"bundled marketplace JSON should serialize\")\n}\n\n#[cfg(windows)]\nfn replace_active_marketplace(active: &Path, staging: &Path) -> anyhow::Result<()> {\n    if active.exists() {\n        let backup = active.with_file_name(format!(\n            \"{BUNDLED_MARKETPLACE}.bak-guard-{}\",\n            std::time::SystemTime::now()\n                .duration_since(std::time::UNIX_EPOCH)\n                .unwrap_or_default()\n                .as_millis()\n        ));\n        std::fs::rename(active, backup)?;\n    }\n    std::fs::rename(staging, active)?;\n    Ok(())\n}\n","sourceCodeStart":659,"sourceCodeEnd":695,"githubUrl":"https://github.com/BigPizzaV3/CodexPlusPlus/blob/fb3ebd9a82383aedd8d098aa9ae3aef9426d13a4/crates/codex-plus-core/src/computer_use_guard.rs#L659-L695","documentation":"Expect/invariant assertion when generating the bundled marketplace JSON: serde_json failed to serialize a struct the code just built from known-good literals, which should be impossible. Firing indicates corrupted constant data or resource exhaustion while building the 'OpenAI Bundled' manifest.","triggerScenarios":"Thrown at crates/codex-plus-core/src/computer_use_guard.rs:677 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Restart the operation; this is an invariant violation, not user-fixable","Report a bug with the plugin list being serialized if it reproduces","Check available memory if failures are intermittent"],"exampleFix":null,"handlingStrategy":"try-catch","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-14T00:17:10.932Z"}