{"record":{"id":"9f8f061090c55dab","repo":"Hmbown/CodeWhale","slug":"dsh-overlay-is-stale-reason-run-cli-command","errorCode":null,"errorMessage":"DSH overlay is stale ({reason}); run `{CLI_COMMAND} update` before launching","messagePattern":"DSH overlay is stale \\((.+?)\\); run `(.+?) update` before launching","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/integrations/dsh/mod.rs","lineNumber":689,"sourceCode":"pub(crate) fn launch_spec(\n    report: &DshStatusReport,\n    profile_override: Option<&str>,\n    extra_args: &[String],\n    workspace: &Path,\n) -> Result<LaunchSpec> {\n    let record = report.record.as_ref().ok_or_else(|| {\n        anyhow::anyhow!(\"DSH is not connected; run `{CLI_COMMAND} connect` first\")\n    })?;\n    if !report.state.launchable() {\n        match &report.state {\n            DshIntegrationState::Connected { .. } | DshIntegrationState::StaleVersion { .. } => {}\n            DshIntegrationState::Disabled { .. } => {\n                anyhow::bail!(\n                    \"DSH integration is disabled; run `{CLI_COMMAND} enable` to launch again\"\n                )\n            }\n            DshIntegrationState::StaleConfig { reason, .. } => {\n                anyhow::bail!(\n                    \"DSH overlay is stale ({reason}); run `{CLI_COMMAND} update` before launching\"\n                )\n            }\n            DshIntegrationState::Incompatible { reason, .. } => {\n                anyhow::bail!(\"installed dsh is incompatible: {reason}\")\n            }\n            DshIntegrationState::Offline { reason } => anyhow::bail!(\"dsh is offline: {reason}\"),\n            DshIntegrationState::NotInstalled => anyhow::bail!(\"dsh is not installed\"),\n            DshIntegrationState::Detected { .. } => {\n                anyhow::bail!(\"DSH is detected but not connected; run `{CLI_COMMAND} connect`\")\n            }\n        }\n    }\n    let binary = report\n        .detection\n        .binary\n        .clone()\n        .ok_or_else(|| anyhow::anyhow!(\"dsh binary path is unknown\"))?;","sourceCodeStart":671,"sourceCodeEnd":707,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/0c42157ee52f9d55af2b506d71b46249910f77d3/crates/tui/src/integrations/dsh/mod.rs#L671-L707","documentation":"launch_spec detected StaleConfig: the locally written DSH overlay no longer matches what the receipt recorded ({reason} names the drift, e.g. a version bump or half-written client config). Launching with a stale overlay would run against unreviewed config, so update is required first.","triggerScenarios":"Thrown at crates/tui/src/integrations/dsh/mod.rs:689 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run the update subcommand to rewrite the overlay to the current version","Retry the launch"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0c42157ee52f9d55af2b506d71b46249910f77d3","analyzedAt":"2026-08-20T21:50:45.477Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}