{"record":{"id":"6d00588e8f889d42","repo":"Hmbown/CodeWhale","slug":"dsh-is-not-connected-nothing-to","errorCode":null,"errorMessage":"DSH is not connected; nothing to {}","messagePattern":"DSH is not connected; nothing to (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/integrations/dsh/mod.rs","lineNumber":481,"sourceCode":"    doc.current = Some(record.clone());\n    doc.save(&paths.receipt)?;\n    crate::audit::log_sensitive_event(\n        &format!(\"integration.dsh.{}\", event.as_str()),\n        serde_json::json!({\n            \"overlay_path\": paths.overlay.display().to_string(),\n            \"overlay_sha256\": plan.overlay_sha256,\n            \"identity\": identity_summary(&plan.mapped),\n            \"permission_mode\": plan.mapped.permission_mode.as_str(),\n            \"skin\": plan.skin_path.is_some(),\n        }),\n    );\n    Ok(record)\n}\n\npub(crate) fn set_disabled(paths: &DshPaths, disabled: bool) -> Result<DshConnectionRecord> {\n    let mut doc = DshReceiptDocument::load(&paths.receipt)?;\n    let Some(mut record) = doc.current.take() else {\n        anyhow::bail!(\n            \"DSH is not connected; nothing to {}\",\n            if disabled { \"disable\" } else { \"enable\" }\n        );\n    };\n    record.disabled = disabled;\n    record.updated_at = now_rfc3339();\n    let event = if disabled {\n        DshReceiptEvent::Disable\n    } else {\n        DshReceiptEvent::Enable\n    };\n    doc.push(DshReceiptEntry {\n        event: event.clone(),\n        at: record.updated_at.clone(),\n        codewhale_version: codewhale_version(),\n        dsh_version: record.dsh_version.clone(),\n        dsh_home: record.dsh_home.clone(),\n        overlay_sha256: Some(record.overlay_sha256.clone()),","sourceCodeStart":463,"sourceCodeEnd":499,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/8880682c63083a91624de936797efa3ce9e498fd/crates/tui/src/integrations/dsh/mod.rs#L463-L499","documentation":"Error \"DSH is not connected; nothing to {}\" thrown in Hmbown/CodeWhale.","triggerScenarios":"Thrown at crates/tui/src/integrations/dsh/mod.rs:481 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"}