{"record":{"id":"d6e225c6909375e0","repo":"Hmbown/CodeWhale","slug":"dsh-is-not-on-path-install-the-official-deepseek","errorCode":null,"errorMessage":"dsh is not on PATH; install the official DeepSeek Harness first (npm i -g @deepseek-ai/dsh)","messagePattern":"dsh is not on PATH; install the official DeepSeek Harness first \\(npm i -g @deepseek-ai/dsh\\)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/integrations/cli.rs","lineNumber":527,"sourceCode":"                    println!(\"  {}\", path.display());\n                }\n            }\n            println!(\n                \"  (receipt history is kept at {}; $DSH_HOME is never touched)\",\n                paths.receipt.display()\n            );\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":509,"sourceCodeEnd":538,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/tui/src/integrations/cli.rs#L509-L538","documentation":"Thrown by `ensure_launchable_dsh` when the DSH status report's state is `NotInstalled`, meaning the `dsh` binary could not be found on PATH. The Codewhale DSH integration depends on the official DeepSeek Harness CLI being installed first, so it fails loudly with install instructions.","triggerScenarios":"Running any `dsh` subcommand that requires launching dsh (connect, install-bundle, etc.) when `report.state == NotInstalled` — dsh is absent from PATH.","commonSituations":"Fresh machine or container without the npm global package; dsh installed under a user/node-version not on the current PATH; nvm/fnm switching changed the global bin directory; typo'd PATH in CI.","solutions":["Install the official harness: `npm i -g @deepseek-ai/dsh`","Fix PATH so the npm global bin directory is included (e.g. after switching node versions)","Verify with `which dsh` / `dsh --version` before re-running the Codewhale command"],"exampleFix":"// before\n$ codewhale dsh connect\nerror: dsh is not on PATH...\n// after\n$ npm i -g @deepseek-ai/dsh\n$ codewhale dsh connect","handlingStrategy":"fallback","validationCode":"// shell preflight\ncommand -v dsh >/dev/null 2>&1 || { echo \"dsh missing; run npm i -g @deepseek-ai/dsh\"; exit 1; }","typeGuard":null,"tryCatchPattern":"match result {\n    Err(e) if e.to_string().contains(\"dsh is not on PATH\") => /* install dsh or fix PATH, then retry */,\n    other => return other,\n}","preventionTips":["Install the official package before using the dsh integration: npm i -g @deepseek-ai/dsh","Ensure the npm global bin directory is on PATH (especially under nvm/fnm in CI)","Verify with `command -v dsh` in provisioning scripts"],"tags":["cli","dependency","path","install"],"backgroundTag":"missing-dependency","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"}