BigPizzaV3/CodexPlusPlus · error

Dream Skin is not enabled

Error message

Dream Skin is not enabled

What it means

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.

Solutions

  1. Open the CodexPlusPlus settings and enable the Dream Skin toggle (codex_app_dream_skin_enabled).
  2. Also ensure the global enhancements toggle (enhancements_enabled) is on, since it gates Dream Skin.
  3. Verify the settings file actually persists these flags after saving in the UI.
  4. Gate any automation calling apply_dream_skin_live on these settings being true.
  5. If it was intentionally disabled, treat this error as an expected no-op and skip the call.

Example fix

// before: unconditional call
apply_dream_skin_live(9222, 9223).await?;
// after: check settings first
if settings.enhancements_enabled && settings.codex_app_dream_skin_enabled {
    apply_dream_skin_live(9222, 9223).await?;
}
Defensive patterns

Strategy: try-catch

Validate before calling

let settings = SettingsStore::default().load()?;
if !(settings.enhancements_enabled && settings.codex_app_dream_skin_enabled) {
    return Ok(()); // skip live apply
}

Type guard

fn dream_skin_enabled(s: &Settings) -> bool {
    s.enhancements_enabled && s.codex_app_dream_skin_enabled
}

Try / catch

match apply_dream_skin_live(port, helper).await {
    Err(e) if e.to_string() == "Dream Skin is not enabled" => log::info!("dream skin disabled, skipping"),
    other => other?,
}

Prevention

When it happens

Trigger: 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.

Common situations: 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.

Related errors


AI-assisted analysis of BigPizzaV3/CodexPlusPlus@b1ed92e5e4 (2026-09-19). Data as JSON: /api/errors/ac397c7e8f55753b. Report an issue: GitHub.

Appendix: source

Thrown at crates/codex-plus-core/src/dream_skin_runtime.rs:286

    identity.level = DreamSkinCheckLevel::Pass;
    let mut checks = vec![identity];
    checks.extend(verification.checks);
    DreamSkinRuntimeStatus {
        state,
        enabled: true,
        paused: false,
        live_applied,
        checks,
    }
}

pub async fn apply_dream_skin_live(
    debug_port: u16,
    helper_port: u16,
) -> anyhow::Result<DreamSkinRuntimeStatus> {
    let settings = SettingsStore::default().load()?;
    if !settings.enhancements_enabled || !settings.codex_app_dream_skin_enabled {
        bail!("Dream Skin is not enabled");
    }
    if settings.codex_app_dream_skin_paused {
        bail!("Dream Skin is paused");
    }
    let identity = platform_identity_check(&settings.codex_app_path);
    if identity.level == DreamSkinCheckLevel::Fail {
        bail!("{}", identity.message);
    }
    let target = primary_target(debug_port).await?;
    let websocket = target
        .web_socket_debugger_url
        .as_deref()
        .context("Codex renderer has no WebSocket URL")?;
    let probe = crate::assets::dream_skin_live_update_probe_script();
    let live_probe = crate::bridge::evaluate_script(websocket, &probe)
        .await
        .ok()
        .and_then(|response| {

View on GitHub (pinned to b1ed92e5e4)