BigPizzaV3/CodexPlusPlus · error
不支持的主题市场清单版本
Error message
不支持的主题市场清单版本
What it means
validate_manifest rejects any market manifest whose schema_version is not exactly 1. The client only understands manifest schema v1, so manifests produced by newer (or older) publisher tooling are refused rather than parsed incorrectly.
Solutions
- Update CodexPlusPlus to a version that supports the manifest schema_version published by the market
- Check the manifest's schema_version field and confirm which schema the publisher intends; if it is a publisher mistake, ask them to set it back to 1
- Clear the cached manifest so read_cached_manifest refetches a v1 manifest from upstream
- Point the manifest URL at the v1 endpoint/branch if the market hosts multiple schema versions
Example fix
// before (manifest.json)
{ "schemaVersion": 2, "themes": [ ... ] }
// after
{ "schemaVersion": 1, "themes": [ ... ] } Defensive patterns
Strategy: validation
Validate before calling
fn manifest_schema_ok(bytes: &[u8]) -> bool {
serde_json::from_slice::<serde_json::Value>(bytes)
.ok()
.and_then(|v| v.get("schemaVersion").and_then(|s| s.as_i64()))
== Some(1)
} Try / catch
match fetch_market_manifest(url).await {
Ok(m) => use_manifest(m),
Err(e) if e.to_string().contains("清单版本") => {
eprintln!("market uses an unsupported schema_version — upgrade the client or pin a v1 manifest URL");
}
Err(e) => return Err(e),
} Prevention
- Pin the manifest URL to a schema version your client supports
- Check the market's changelog before pointing clients at a new manifest endpoint
- Clear cached manifests after upgrading the app so schema mismatches surface early
- Include schema_version compatibility in publisher CI checks
When it happens
Trigger: fetch_market_manifest downloads a manifest JSON whose schemaVersion field is 2+ (newer market format) or 0/missing-as-default, then validate_manifest bails; read_cached_manifest hits a stale cache written by a different client version.
Common situations: The remote market upgraded its manifest format before your client was updated; a test/staging market serves a draft schema; a hand-edited manifest omitted or changed the version field; stale cache from a previous app version.
Related errors
- 不支持的主题市场安装记录版本
- unsupported Dream Skin backup schema
- 不支持此分享的数据格式。
- 新建会话失败:app-server 未返回 thread id
- 本批节点描述过长或无效
AI-assisted analysis of BigPizzaV3/CodexPlusPlus@b1ed92e5e4 (2026-09-19).
Data as JSON: /api/errors/1e09a7143e39feb4.
Report an issue: GitHub.
Appendix: source
Thrown at crates/codex-plus-core/src/dream_skin_market.rs:187
.join("dream-skin/themes")
.join(&theme.id)
.join("theme.json");
theme.installed = local_theme.is_file();
theme.installed_version = if theme.installed {
records.themes.get(&theme.id).cloned().unwrap_or_default()
} else {
String::new()
};
theme.update_available = theme.installed
&& !theme.installed_version.is_empty()
&& theme.installed_version != theme.version;
}
manifest
}
fn validate_manifest(manifest: &mut DreamSkinMarketManifest) -> anyhow::Result<()> {
if manifest.schema_version != 1 {
bail!("不支持的主题市场清单版本");
}
if manifest.themes.len() > MARKET_THEME_COUNT_LIMIT {
bail!("主题市场清单超过 {} 项限制", MARKET_THEME_COUNT_LIMIT);
}
let mut ids = HashSet::new();
for theme in &mut manifest.themes {
validate_market_theme(theme)?;
if !ids.insert(theme.id.clone()) {
bail!("主题市场清单包含重复 ID:{}", theme.id);
}
theme.preview_url = market_asset_url(DEFAULT_MARKET_RAW_BASE_URL, &theme.preview)?;
}
Ok(())
}
fn validate_market_theme(theme: &DreamSkinMarketTheme) -> anyhow::Result<()> {
if !valid_theme_id(&theme.id) {
bail!("主题市场包含无效 ID:{}", theme.id);View on GitHub (pinned to b1ed92e5e4)