{"record":{"id":"ada68af6665872d0","repo":"BigPizzaV3/CodexPlusPlus","slug":"dream-skin-art-signature-should-serialize","errorCode":null,"errorMessage":"dream skin art signature should serialize","messagePattern":"dream skin art signature should serialize","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/codex-plus-core/src/assets.rs","lineNumber":424,"sourceCode":"    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,\n    )\n}\n\npub fn dream_skin_live_update_probe_script() -> String {\n    format!(\n        \"(() => {{ const state = window.__CODEX_DREAM_SKIN_STATE__ || window.__CODEX_GLASS_VISION_SKIN_STATE__; if (window.__CODEX_PLUS_DREAM_SKIN_RUNTIME_REVISION__ !== {} || !state) return null; state.ensure?.(); return JSON.stringify({{ artSignature: String(window.__CODEX_PLUS_DREAM_SKIN_ART_SIGNATURE__ || ''), payloadSignature: String(window.__CODEX_PLUS_DREAM_SKIN_PAYLOAD_SIGNATURE__ || '') }}); }})()\",\n        serde_json::to_string(DREAM_SKIN_RENDERER_REVISION)\n            .expect(\"dream skin renderer revision should serialize\")","sourceCodeStart":406,"sourceCodeEnd":442,"githubUrl":"https://github.com/BigPizzaV3/CodexPlusPlus/blob/f2074595a281bc057525c748175c8eb9805b0673/crates/codex-plus-core/src/assets.rs#L406-L442","documentation":"injection_script_with_settings serializes the dream skin art content signature into window.__CODEX_PLUS_DREAM_SKIN_ART_SIGNATURE__; this expect-style error fires if serde_json fails. The signature is a plain string hash, so the error signals an internal invariant violation rather than a runtime condition.","triggerScenarios":"Thrown at crates/codex-plus-core/src/assets.rs:424 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the signature computation still yields a String","Review refactors of dream_skin_art_content_signature","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"}