{"record":{"id":"ac397c7e8f55753b","repo":"BigPizzaV3/CodexPlusPlus","slug":"dream-skin-is-not-enabled","errorCode":null,"errorMessage":"Dream Skin is not enabled","messagePattern":"Dream Skin is not enabled","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/codex-plus-core/src/dream_skin_runtime.rs","lineNumber":286,"sourceCode":"    identity.level = DreamSkinCheckLevel::Pass;\n    let mut checks = vec![identity];\n    checks.extend(verification.checks);\n    DreamSkinRuntimeStatus {\n        state,\n        enabled: true,\n        paused: false,\n        live_applied,\n        checks,\n    }\n}\n\npub async fn apply_dream_skin_live(\n    debug_port: u16,\n    helper_port: u16,\n) -> anyhow::Result<DreamSkinRuntimeStatus> {\n    let settings = SettingsStore::default().load()?;\n    if !settings.enhancements_enabled || !settings.codex_app_dream_skin_enabled {\n        bail!(\"Dream Skin is not enabled\");\n    }\n    if settings.codex_app_dream_skin_paused {\n        bail!(\"Dream Skin is paused\");\n    }\n    let identity = platform_identity_check(&settings.codex_app_path);\n    if identity.level == DreamSkinCheckLevel::Fail {\n        bail!(\"{}\", identity.message);\n    }\n    let target = primary_target(debug_port).await?;\n    let websocket = target\n        .web_socket_debugger_url\n        .as_deref()\n        .context(\"Codex renderer has no WebSocket URL\")?;\n    let probe = crate::assets::dream_skin_live_update_probe_script();\n    let live_probe = crate::bridge::evaluate_script(websocket, &probe)\n        .await\n        .ok()\n        .and_then(|response| {","sourceCodeStart":268,"sourceCodeEnd":304,"githubUrl":"https://github.com/BigPizzaV3/CodexPlusPlus/blob/b1ed92e5e4a2d74095d4b8db5af43cef7acba9c6/crates/codex-plus-core/src/dream_skin_runtime.rs#L268-L304","documentation":"apply_dream_skin_live is the live-apply entry point for the Dream Skin renderer. Before doing anything it loads settings and requires that global enhancements are enabled AND codex_app_dream_skin_enabled is true; otherwise it bails with \"Dream Skin is not enabled\". The library throws this so callers never mutate a running Codex app whose Dream Skin feature is turned off.","triggerScenarios":"Calling apply_dream_skin_live(debug_port, helper_port) when settings.enhancements_enabled is false or settings.codex_app_dream_skin_enabled is false in the SettingsStore config.","commonSituations":"Fresh installation where Dream Skin was never turned on; user disabled Dream Skin (or all enhancements) in the manager UI but an automation/script still calls live apply; settings file reset or missing those flags.","solutions":["Open the CodexPlusPlus settings and enable the Dream Skin toggle (codex_app_dream_skin_enabled).","Also ensure the global enhancements toggle (enhancements_enabled) is on, since it gates Dream Skin.","Verify the settings file actually persists these flags after saving in the UI.","Gate any automation calling apply_dream_skin_live on these settings being true.","If it was intentionally disabled, treat this error as an expected no-op and skip the call."],"exampleFix":"// before: unconditional call\napply_dream_skin_live(9222, 9223).await?;\n// after: check settings first\nif settings.enhancements_enabled && settings.codex_app_dream_skin_enabled {\n    apply_dream_skin_live(9222, 9223).await?;\n}","handlingStrategy":"try-catch","validationCode":"let settings = SettingsStore::default().load()?;\nif !(settings.enhancements_enabled && settings.codex_app_dream_skin_enabled) {\n    return Ok(()); // skip live apply\n}","typeGuard":"fn dream_skin_enabled(s: &Settings) -> bool {\n    s.enhancements_enabled && s.codex_app_dream_skin_enabled\n}","tryCatchPattern":"match apply_dream_skin_live(port, helper).await {\n    Err(e) if e.to_string() == \"Dream Skin is not enabled\" => log::info!(\"dream skin disabled, skipping\"),\n    other => other?,\n}","preventionTips":["Gate all Dream Skin automation on both enhancement flags being true.","Expose feature state in your scheduler so disabled features are skipped.","After toggling settings in the UI, confirm they persist before running automations."],"tags":["dream-skin","feature-flag","settings"],"backgroundTag":"feature-not-enabled","analyzedSha":"b1ed92e5e4a2d74095d4b8db5af43cef7acba9c6","analyzedAt":"2026-09-19T23:35:21.129Z","contentChangedAt":"2026-09-19T23:35:21.129Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}