{"record":{"id":"669ae20805c63d55","repo":"Hmbown/CodeWhale","slug":"current-codewhale-route-cannot-be-carried-by","errorCode":null,"errorMessage":"current Codewhale route {}/{} cannot be carried by DSH: {reason}","messagePattern":"current Codewhale route (.+?)/(.+?) cannot be carried by DSH: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/integrations/dsh/mod.rs","lineNumber":369,"sourceCode":"    pub(crate) profile: String,\n    pub(crate) launch_command: String,\n    pub(crate) env_exports: Vec<(String, String)>,\n    pub(crate) shadowing_namespaces: Vec<String>,\n    pub(crate) disclosures: Vec<String>,\n}\n\npub(crate) fn plan(\n    paths: &DshPaths,\n    detection: &DshDetection,\n    identity: &CodewhaleRouteIdentity,\n    profile: &str,\n    allow_full_access: bool,\n    skin: bool,\n    ocean: bool,\n) -> Result<DshPlan> {\n    let mapped = map_identity(identity, allow_full_access);\n    let overlay_text = render_overlay(&mapped).ok_or_else(|| match &mapped.adapter {\n        DshAdapter::Unsupported { reason } => anyhow::anyhow!(\n            \"current Codewhale route {}/{} cannot be carried by DSH: {reason}\",\n            identity.provider_id,\n            identity.model\n        ),\n        _ => anyhow::anyhow!(\"overlay could not be rendered\"),\n    })?;\n    let overlay_sha256 = sha256_hex(overlay_text.as_bytes());\n    let mut disclosures = mapped.disclosures.clone();\n    let shadowing = shadowing_namespaces(detection);\n    if !shadowing.is_empty() {\n        disclosures.push(format!(\n            \"$DSH_HOME/settings.yaml has [{}] sections; DSH layers those over the overlay per field, so the saved DSH selection can shadow the pinned identity until you clear it in DSH.\",\n            shadowing.join(\", \")\n        ));\n    }\n    if !detection.profiles.iter().any(|p| p == profile) {\n        disclosures.push(format!(\n            \"DSH profile `{profile}` is not initialized yet; dsh will create $DSH_HOME/profiles/{profile} on first launch (its own documented behavior).\"","sourceCodeStart":351,"sourceCodeEnd":387,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/tui/src/integrations/dsh/mod.rs#L351-L387","documentation":"`plan` maps the current Codewhale route (provider + model) onto a DSH adapter and renders an overlay config. When the mapped adapter is `DshAdapter::Unsupported { reason }` and `render_overlay` consequently returns None, it throws this error naming the provider/model and the reason DSH cannot carry that route.","triggerScenarios":"Calling `plan` (with identity, allow_full_access, skin, ocean) where `map_identity` yields an unsupported adapter for the active route — e.g. a provider/model combination DSH's overlay format does not support — and overlay rendering fails because of it.","commonSituations":"User switched to a provider or model DSH doesn't support (custom/OSS providers, new model not yet in DSH's adapter table); route config pointing at an endpoint whose parameters can't be expressed in the overlay; `allow_full_access` mapping changes that degrade into Unsupported.","solutions":["Switch the active route to a DSH-supported provider/model, then re-run the DSH plan/connect.","Read the `reason` in the message — it states the specific unsupported capability to change.","Update the route in codewhale config (`config/route`) to a supported model before retrying.","If the model should be supported, update DSH adapter mapping/table for it, or skip DSH integration for this route."],"exampleFix":"// before: route uses an unsupported provider/model\n{ \"provider\": \"my-oss-gateway\", \"model\": \"custom-model\" }\n// after: use a route DSH can carry\n{ \"provider\": \"anthropic\", \"model\": \"claude-sonnet-4\" }","handlingStrategy":"validation","validationCode":"let mapped = map_identity(&identity, allow_full_access);\nif matches!(mapped.adapter, DshAdapter::Unsupported { .. }) {\n    eprintln!(\"route {}/{} is not supported by DSH; switch routes first\", identity.provider_id, identity.model);\n    return Ok(());\n}","typeGuard":"if let DshAdapter::Unsupported { reason } = &mapped.adapter {\n    eprintln!(\"unsupported: {reason}\");\n    return Ok(());\n}","tryCatchPattern":null,"preventionTips":["Keep the active route on a provider/model known to be DSH-supported","Check the adapter mapping table when adding new models","Gate DSH plan/launch behind a route-support check"],"tags":["dsh","unsupported-route","overlay"],"backgroundTag":"unsupported-operation","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"}