{"record":{"id":"b37df891d171ad69","repo":"Hmbown/CodeWhale","slug":"dsh-is-already-connected-use-cli-command-updat","errorCode":null,"errorMessage":"DSH is already connected; use `{CLI_COMMAND} update` to rewrite the overlay","messagePattern":"DSH is already connected; use `(.+?) update` to rewrite the overlay","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/integrations/cli.rs","lineNumber":289,"sourceCode":"                print_plan(&plan, \"connect\");\n                if !report.detection.installed() {\n                    println!(\n                        \"  warning: dsh is not on PATH; the plan is valid but launch will fail\"\n                    );\n                }\n            }\n            Ok(())\n        }\n        DshIntegrationCommand::Connect {\n            profile,\n            allow_full_access,\n            skin,\n            yes,\n        } => {\n            let (paths, report) = status_report(config, workspace, allow_full_access)?;\n            ensure_launchable_dsh(&report)?;\n            if report.record.as_ref().is_some_and(|r| !r.disabled) {\n                anyhow::bail!(\n                    \"DSH is already connected; use `{CLI_COMMAND} update` to rewrite the overlay\"\n                );\n            }\n            let identity = dsh::codewhale_route_identity(config, workspace)\n                .map_err(|e| anyhow::anyhow!(\"cannot resolve the current Codewhale route: {e}\"))?;\n            let plan = dsh::plan(\n                &paths,\n                &report.detection,\n                &identity,\n                &profile,\n                allow_full_access,\n                skin,\n            )?;\n            print_plan(&plan, \"connect\");\n            confirm(yes, \"Write these Codewhale-owned files and connect DSH?\")?;\n            let record =\n                dsh::apply_plan(&paths, &report.detection, &plan, DshReceiptEvent::Connect)?;\n            println!(","sourceCodeStart":271,"sourceCodeEnd":307,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/8880682c63083a91624de936797efa3ce9e498fd/crates/tui/src/integrations/cli.rs#L271-L307","documentation":"Error \"DSH is already connected; use `{CLI_COMMAND} update` to rewrite the overlay\" thrown in Hmbown/CodeWhale.","triggerScenarios":"Thrown at crates/tui/src/integrations/cli.rs:289 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"}