BigPizzaV3/CodexPlusPlus · error
manifest 版本号无效
Error message
manifest 版本号无效
What it means
Thrown by validate_manifest when either manifest.version or manifest.min_client_version is not a valid semantic version string (checked via valid_semver). The offending inputs are the two semver fields in manifest.json; because later code compares min_client_version against the running client, both must parse cleanly before comparison.
Source
Thrown at crates/codex-plus-core/src/dream_skin_package.rs:918
"theme.css" => CSS_LIMIT,
"LICENSE.txt" => LICENSE_LIMIT,
"manifest.sig" => SIGNATURE_LIMIT,
_ => IMAGE_LIMIT,
}
}
fn validate_manifest(manifest: &DreamSkinPackageManifest, platform: &str) -> anyhow::Result<()> {
if manifest.package_version != 1 || manifest.skin_api_version != 1 {
bail!("不支持的 Dream Skin 主题协议版本");
}
if manifest.theme_id.chars().count() < 3
|| manifest.theme_id.chars().count() > 64
|| !valid_theme_id(&manifest.theme_id)
{
bail!("manifest.themeId 无效");
}
if !valid_semver(&manifest.version) || !valid_semver(&manifest.min_client_version) {
bail!("manifest 版本号无效");
}
if compare_semver(&manifest.min_client_version, "1.5.12").is_gt() {
bail!(
"主题包需要更新版本的 Dream Skin 协议:{}",
manifest.min_client_version
);
}
if manifest.platforms.is_empty()
|| manifest.platforms.len() > 2
|| has_duplicates(&manifest.platforms)
|| manifest
.platforms
.iter()
.any(|item| !matches!(item.as_str(), "macos" | "windows"))
{
bail!("manifest.platforms 无效");
}
if !manifest.platforms.iter().any(|item| item == platform) {View on GitHub (pinned to f2074595a2)
Solutions
- 把两个字段改为 X.Y.Z 形式(如 1.0.0)
- 去掉 v 前缀、build 后缀等非 semver 内容
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/codex-plus-core/src/dream_skin_package.rs:918 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BigPizzaV3/CodexPlusPlus@f2074595a2 (2026-08-23).
Data as JSON: /api/errors/8ea010041bd7d86a.
Report an issue: GitHub.