{"record":{"id":"bddc85d061887414","repo":"Hmbown/CodeWhale","slug":"installed-dsh-is-incompatible-with-this-integratio","errorCode":null,"errorMessage":"installed dsh is incompatible with this integration: {reason}","messagePattern":"installed dsh is incompatible with this integration: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/integrations/cli.rs","lineNumber":533,"sourceCode":"            );\n            confirm(yes, \"Remove the DSH integration files?\")?;\n            let removed = dsh::remove(&paths)?;\n            println!(\"removed {} file(s)\", removed.len());\n            Ok(())\n        }\n    }\n}\n\nfn ensure_launchable_dsh(report: &DshStatusReport) -> Result<()> {\n    match &report.state {\n        DshIntegrationState::NotInstalled => {\n            anyhow::bail!(\n                \"dsh is not on PATH; install the official DeepSeek Harness first (npm i -g @deepseek-ai/dsh)\"\n            )\n        }\n        DshIntegrationState::Offline { reason } => anyhow::bail!(\"dsh is offline: {reason}\"),\n        DshIntegrationState::Incompatible { reason, .. } => {\n            anyhow::bail!(\"installed dsh is incompatible with this integration: {reason}\")\n        }\n        _ => Ok(()),\n    }\n}\n","sourceCodeStart":515,"sourceCodeEnd":538,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/tui/src/integrations/cli.rs#L515-L538","documentation":"ensure_launchable_dsh rejects launching when the installed dsh CLI reports DshIntegrationState::Incompatible, meaning its version or capabilities do not match what this integration expects. The message carries the probe's incompatibility reason so the developer knows what mismatched. Codewhale refuses to proceed rather than driving an unknown dsh surface.","triggerScenarios":"Running run_dsh against an installed dsh whose reported version/interface is outside the range this integration supports (older or newer than expected).","commonSituations":"User upgraded or downgraded the global @deepseek-ai/dsh npm package to a version the integration doesn't recognize; dsh released a breaking change after this Codewhale build.","solutions":["Update dsh to the supported version: `npm i -g @deepseek-ai/dsh@latest`","Pin dsh to the version range documented for this Codewhale release","Update Codewhale itself so it supports the newer dsh","Check the reported `reason` in the error to see the specific mismatch"],"exampleFix":"// before\nnpm i -g @deepseek-ai/dsh@1.0.0   // incompatible with this integration\n// after\nnpm i -g @deepseek-ai/dsh@latest  // supported version","handlingStrategy":"validation","validationCode":"let v = dsh_version()?;\nif !SUPPORTED_DSH_VERSIONS.contains(&v.as_str()) { eprintln!(\"dsh {v} unsupported; reinstall @deepseek-ai/dsh\"); }","typeGuard":"fn is_compatible(state: &DshIntegrationState) -> bool {\n    !matches!(state, DshIntegrationState::Incompatible { .. })\n}","tryCatchPattern":"match run_dsh(...) {\n    Err(e) if e.to_string().contains(\"incompatible\") => {\n        reinstall_dsh_supported_version()?;\n        run_dsh(...)\n    }\n    r => r,\n}","preventionTips":["Pin the @deepseek-ai/dsh version in your environment setup","Update Codewhale and dsh together","Read the incompatibility reason before changing versions"],"tags":["version-mismatch","cli","compatibility"],"backgroundTag":"unsupported-operation","analyzedSha":"73e0f67d83c59909b571efdfc88c4bc28c309cb1","analyzedAt":"2026-09-22T01:30:00.501Z","contentChangedAt":"2026-09-22T01:30:00.501Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}