Hmbown/CodeWhale · error
installed dsh is incompatible with this integration
Error message
installed dsh is incompatible with this integration: {reason} What it means
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.
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
Example fix
// before npm i -g @deepseek-ai/dsh@1.0.0 // incompatible with this integration // after npm i -g @deepseek-ai/dsh@latest // supported version
Defensive patterns
Strategy: validation
Validate before calling
let v = dsh_version()?;
if !SUPPORTED_DSH_VERSIONS.contains(&v.as_str()) { eprintln!("dsh {v} unsupported; reinstall @deepseek-ai/dsh"); } Type guard
fn is_compatible(state: &DshIntegrationState) -> bool {
!matches!(state, DshIntegrationState::Incompatible { .. })
} Try / catch
match run_dsh(...) {
Err(e) if e.to_string().contains("incompatible") => {
reinstall_dsh_supported_version()?;
run_dsh(...)
}
r => r,
} Prevention
- Pin the @deepseek-ai/dsh version in your environment setup
- Update Codewhale and dsh together
- Read the incompatibility reason before changing versions
When it happens
Trigger: Running run_dsh against an installed dsh whose reported version/interface is outside the range this integration supports (older or newer than expected).
Common situations: 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.
Understand the failure class
Background: UnsupportedOperationException and "is not supported" errors: when a library deliberately refuses a call — this error's family across 30 libraries.
Related errors
- This Codewhale account is configured for agent provider
- A positive pull request number is required
- account_agent_model_unconfigured
- Account settings import is not available yet; local config…
- already exists; pass --force to overwrite it
AI-assisted analysis of Hmbown/CodeWhale@73e0f67d83 (2026-09-22).
Data as JSON: /api/errors/bddc85d061887414.
Report an issue: GitHub.
Appendix: source
Thrown at crates/tui/src/integrations/cli.rs:533
);
confirm(yes, "Remove the DSH integration files?")?;
let removed = dsh::remove(&paths)?;
println!("removed {} file(s)", removed.len());
Ok(())
}
}
}
fn ensure_launchable_dsh(report: &DshStatusReport) -> Result<()> {
match &report.state {
DshIntegrationState::NotInstalled => {
anyhow::bail!(
"dsh is not on PATH; install the official DeepSeek Harness first (npm i -g @deepseek-ai/dsh)"
)
}
DshIntegrationState::Offline { reason } => anyhow::bail!("dsh is offline: {reason}"),
DshIntegrationState::Incompatible { reason, .. } => {
anyhow::bail!("installed dsh is incompatible with this integration: {reason}")
}
_ => Ok(()),
}
}
View on GitHub (pinned to 73e0f67d83)