{"record":{"id":"458f1eeae9b8613e","repo":"BigPizzaV3/CodexPlusPlus","slug":"error-458f1e","errorCode":null,"errorMessage":"主题市场清单超过 {} 项限制","messagePattern":"主题市场清单超过 (.+?) 项限制","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/codex-plus-core/src/dream_skin_market.rs","lineNumber":190,"sourceCode":"        theme.installed = local_theme.is_file();\n        theme.installed_version = if theme.installed {\n            records.themes.get(&theme.id).cloned().unwrap_or_default()\n        } else {\n            String::new()\n        };\n        theme.update_available = theme.installed\n            && !theme.installed_version.is_empty()\n            && theme.installed_version != theme.version;\n    }\n    manifest\n}\n\nfn validate_manifest(manifest: &mut DreamSkinMarketManifest) -> anyhow::Result<()> {\n    if manifest.schema_version != 1 {\n        bail!(\"不支持的主题市场清单版本\");\n    }\n    if manifest.themes.len() > MARKET_THEME_COUNT_LIMIT {\n        bail!(\"主题市场清单超过 {} 项限制\", MARKET_THEME_COUNT_LIMIT);\n    }\n    let mut ids = HashSet::new();\n    for theme in &mut manifest.themes {\n        validate_market_theme(theme)?;\n        if !ids.insert(theme.id.clone()) {\n            bail!(\"主题市场清单包含重复 ID：{}\", theme.id);\n        }\n        theme.preview_url = market_asset_url(DEFAULT_MARKET_RAW_BASE_URL, &theme.preview)?;\n    }\n    Ok(())\n}\n\nfn validate_market_theme(theme: &DreamSkinMarketTheme) -> anyhow::Result<()> {\n    if !valid_theme_id(&theme.id) {\n        bail!(\"主题市场包含无效 ID：{}\", theme.id);\n    }\n    for (label, value, limit) in [\n        (\"名称\", theme.name.as_str(), 100usize),","sourceCodeStart":172,"sourceCodeEnd":208,"githubUrl":"https://github.com/BigPizzaV3/CodexPlusPlus/blob/f2074595a281bc057525c748175c8eb9805b0673/crates/codex-plus-core/src/dream_skin_market.rs#L172-L208","documentation":"Validation guard in validate_manifest: the market manifest lists more themes than MARKET_THEME_COUNT_LIMIT allows. This caps manifest size to bound memory and UI cost; an oversized manifest is treated as untrusted or corrupt.","triggerScenarios":"Thrown at crates/codex-plus-core/src/dream_skin_market.rs:190 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a trimmed manifest within the theme count limit","Check whether the market server is serving an unexpectedly large or wrong manifest"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f2074595a281bc057525c748175c8eb9805b0673","analyzedAt":"2026-08-23T12:52:24.489Z","contentChangedAt":"2026-08-23T12:52:24.489Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}