{"record":{"id":"94514126a8267531","repo":"BigPizzaV3/CodexPlusPlus","slug":"build-id-should-serialize","errorCode":null,"errorMessage":"build id should serialize","messagePattern":"build id should serialize","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/codex-plus-core/src/assets.rs","lineNumber":416,"sourceCode":"    let dream_skin_art = dream_skin_art_data_uri(settings);\n    let dream_skin_art_signature = dream_skin_art_content_signature(settings);\n    let dream_skin_theme = &settings.codex_app_dream_skin_theme_config;\n    let dream_skin_target_runtime = dream_skin_target_runtime_script(settings, false);\n    let plugin_marketplaces = local_plugin_marketplaces();\n    let paste_fix = paste_fix_enabled_config(settings);\n    let force_chinese_locale = force_chinese_locale_config(settings);\n    let fast_startup = fast_startup_config(settings);\n    let hide_official_usage_alert = hide_official_usage_alert_config(settings);\n    let stepwise_runtime = if settings.codex_app_stepwise_enabled {\n        stepwise_script()\n    } else {\n        \"\"\n    };\n    format!(\n        \"window.__CODEX_SESSION_DELETE_HELPER__ = {};\\nwindow.__CODEX_PLUS_VERSION__ = {};\\nwindow.__CODEX_PLUS_BUILD__ = {};\\nwindow.__CODEX_PLUS_IMAGE_OVERLAY__ = {};\\nwindow.__CODEX_PLUS_PLUGIN_MARKETPLACES__ = {};\\nwindow.__CODEX_PLUS_EXTERNAL_DREAM_SKIN_RUNTIME__ = true;\\nwindow.__CODEX_PLUS_DREAM_SKIN_PLATFORM__ = {};\\nwindow.__CODEX_PLUS_DREAM_SKIN_REVISION__ = {};\\nwindow.__CODEX_PLUS_DREAM_SKIN_ART__ = {};\\nwindow.__CODEX_PLUS_DREAM_SKIN_ART_SIGNATURE__ = {};\\nwindow.__CODEX_PLUS_DREAM_SKIN_THEME__ = {};\\nwindow.__CODEX_PLUS_PASTE_FIX__ = {};\\nwindow.__CODEX_PLUS_FORCE_CHINESE_LOCALE__ = {};\\nwindow.__CODEX_PLUS_FAST_STARTUP__ = {};\\nwindow.__CODEX_PLUS_HIDE_OFFICIAL_USAGE_ALERT__ = {};\\n{}\\n{}\\n{}\",\n        serde_json::to_string(&helper_url).expect(\"helper URL should serialize\"),\n        serde_json::to_string(crate::version::VERSION).expect(\"version should serialize\"),\n        serde_json::to_string(DIAGNOSTIC_BUILD_ID).expect(\"build id should serialize\"),\n        serde_json::to_string(&image_overlay).expect(\"image overlay config should serialize\"),\n        serde_json::to_string(&plugin_marketplaces).expect(\"plugin marketplaces should serialize\"),\n        serde_json::to_string(dream_skin_platform()).expect(\"dream skin platform should serialize\"),\n        serde_json::to_string(DREAM_SKIN_RENDERER_REVISION)\n            .expect(\"dream skin renderer revision should serialize\"),\n        serde_json::to_string(&dream_skin_art).expect(\"dream skin art should serialize\"),\n        serde_json::to_string(&dream_skin_art_signature)\n            .expect(\"dream skin art signature should serialize\"),\n        serde_json::to_string(dream_skin_theme).expect(\"dream skin theme should serialize\"),\n        serde_json::to_string(&paste_fix).expect(\"paste fix config should serialize\"),\n        serde_json::to_string(&force_chinese_locale)\n            .expect(\"force Chinese locale config should serialize\"),\n        serde_json::to_string(&fast_startup).expect(\"fast startup config should serialize\"),\n        serde_json::to_string(&hide_official_usage_alert)\n            .expect(\"usage alert config should serialize\"),\n        renderer_script(),\n        stepwise_runtime,\n        dream_skin_target_runtime,","sourceCodeStart":398,"sourceCodeEnd":434,"githubUrl":"https://github.com/BigPizzaV3/CodexPlusPlus/blob/f2074595a281bc057525c748175c8eb9805b0673/crates/codex-plus-core/src/assets.rs#L398-L434","documentation":"injection_script_with_settings serializes the build id into window.__CODEX_PLUS_BUILD__ via serde_json; failure triggers this expect-style error. Serializing a static string cannot fail, so the error marks an internal invariant violation rather than any runtime condition.","triggerScenarios":"Thrown at crates/codex-plus-core/src/assets.rs:416 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the build id remains a plain string constant","Check recent refactors of the injection script builder","Report as a bug; expected infallible"],"exampleFix":null,"handlingStrategy":"fallback","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-14T05:17:10.506Z"}