{"record":{"id":"ba4f87ff356a7745","repo":"Hmbown/CodeWhale","slug":"overlay-could-not-be-rendered","errorCode":null,"errorMessage":"overlay could not be rendered","messagePattern":"overlay could not be rendered","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/integrations/dsh/mod.rs","lineNumber":331,"sourceCode":"    pub(crate) env_exports: Vec<(String, String)>,\n    pub(crate) shadowing_namespaces: Vec<String>,\n    pub(crate) disclosures: Vec<String>,\n}\n\npub(crate) fn plan(\n    paths: &DshPaths,\n    detection: &DshDetection,\n    identity: &CodewhaleRouteIdentity,\n    profile: &str,\n    allow_full_access: bool,\n    skin: bool,\n) -> Result<DshPlan> {\n    let mapped = map_identity(identity, allow_full_access);\n    let overlay_text = render_overlay(&mapped).ok_or_else(|| match &mapped.adapter {\n        DshAdapter::Unsupported { reason } => {\n            anyhow::anyhow!(\"current Codewhale route cannot be carried by DSH: {reason}\")\n        }\n        _ => anyhow::anyhow!(\"overlay could not be rendered\"),\n    })?;\n    let overlay_sha256 = sha256_hex(overlay_text.as_bytes());\n    let mut disclosures = mapped.disclosures.clone();\n    let shadowing = shadowing_namespaces(detection);\n    if !shadowing.is_empty() {\n        disclosures.push(format!(\n            \"$DSH_HOME/settings.yaml has [{}] sections; DSH layers those over the overlay per field, so the saved DSH selection can shadow the pinned identity until you clear it in DSH.\",\n            shadowing.join(\", \")\n        ));\n    }\n    if !detection.profiles.iter().any(|p| p == profile) {\n        disclosures.push(format!(\n            \"DSH profile `{profile}` is not initialized yet; dsh will create $DSH_HOME/profiles/{profile} on first launch (its own documented behavior).\"\n        ));\n    }\n    if skin {\n        disclosures.push(\n            \"Skin: DSH has no custom-theme API; the exported stylesheet is an unsupported overlay you must apply yourself. Nothing is injected.\"","sourceCodeStart":313,"sourceCodeEnd":349,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/8880682c63083a91624de936797efa3ce9e498fd/crates/tui/src/integrations/dsh/mod.rs#L313-L349","documentation":"Error \"overlay could not be rendered\" thrown in Hmbown/CodeWhale.","triggerScenarios":"Thrown at crates/tui/src/integrations/dsh/mod.rs:331 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8880682c63083a91624de936797efa3ce9e498fd","analyzedAt":"2026-08-16T11:31:27.956Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}