Hmbown/CodeWhale · error

DSH is already connected; use `{CLI_COMMAND} update` to rewr

Error message

DSH is already connected; use `{CLI_COMMAND} update` to rewrite the overlay

What it means

Error "DSH is already connected; use `{CLI_COMMAND} update` to rewrite the overlay" thrown in Hmbown/CodeWhale.

Source

Thrown at crates/tui/src/integrations/cli.rs:289

                print_plan(&plan, "connect");
                if !report.detection.installed() {
                    println!(
                        "  warning: dsh is not on PATH; the plan is valid but launch will fail"
                    );
                }
            }
            Ok(())
        }
        DshIntegrationCommand::Connect {
            profile,
            allow_full_access,
            skin,
            yes,
        } => {
            let (paths, report) = status_report(config, workspace, allow_full_access)?;
            ensure_launchable_dsh(&report)?;
            if report.record.as_ref().is_some_and(|r| !r.disabled) {
                anyhow::bail!(
                    "DSH is already connected; use `{CLI_COMMAND} update` to rewrite the overlay"
                );
            }
            let identity = dsh::codewhale_route_identity(config, workspace)
                .map_err(|e| anyhow::anyhow!("cannot resolve the current Codewhale route: {e}"))?;
            let plan = dsh::plan(
                &paths,
                &report.detection,
                &identity,
                &profile,
                allow_full_access,
                skin,
            )?;
            print_plan(&plan, "connect");
            confirm(yes, "Write these Codewhale-owned files and connect DSH?")?;
            let record =
                dsh::apply_plan(&paths, &report.detection, &plan, DshReceiptEvent::Connect)?;
            println!(

View on GitHub (pinned to 8880682c63)

When it happens

Trigger: Thrown at crates/tui/src/integrations/cli.rs:289 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Hmbown/CodeWhale@8880682c63 (2026-08-16). Data as JSON: /api/errors/b37df891d171ad69. Report an issue: GitHub.