BigPizzaV3/CodexPlusPlus · error

bundled marketplace JSON should serialize

Error message

bundled marketplace JSON should serialize

What it means

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.

Source

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

                "source": "local",
                "path": format!("./plugins/{name}")
            },
            "policy": {
                "installation": "AVAILABLE",
                "authentication": "ON_INSTALL"
            },
            "category": category
        })
    })
    .collect::<Vec<_>>();
    serde_json::to_string_pretty(&serde_json::json!({
        "name": BUNDLED_MARKETPLACE,
        "interface": {
            "displayName": "OpenAI Bundled"
        },
        "plugins": plugins
    }))
    .expect("bundled marketplace JSON should serialize")
}

#[cfg(windows)]
fn replace_active_marketplace(active: &Path, staging: &Path) -> anyhow::Result<()> {
    if active.exists() {
        let backup = active.with_file_name(format!(
            "{BUNDLED_MARKETPLACE}.bak-guard-{}",
            std::time::SystemTime::now()
                .duration_since(std::time::UNIX_EPOCH)
                .unwrap_or_default()
                .as_millis()
        ));
        std::fs::rename(active, backup)?;
    }
    std::fs::rename(staging, active)?;
    Ok(())
}

View on GitHub (pinned to fb3ebd9a82)

Solutions

  1. Restart the operation; this is an invariant violation, not user-fixable
  2. Report a bug with the plugin list being serialized if it reproduces
  3. Check available memory if failures are intermittent
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at crates/codex-plus-core/src/computer_use_guard.rs:677 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/8e0d3b0bc7c820b6. Report an issue: GitHub.