{"record":{"id":"0b38147d8f32ebe5","repo":"Hmbown/CodeWhale","slug":"the-profile-carries-identity-only-after-cli","errorCode":null,"errorMessage":"the `{}` profile carries identity only after `{CLI_COMMAND} install-bundle`","messagePattern":"the `(.+?)` profile carries identity only after `(.+?) install-bundle`","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/tui/src/integrations/dsh/mod.rs","lineNumber":663,"sourceCode":"    let binary = report\n        .detection\n        .binary\n        .clone()\n        .ok_or_else(|| anyhow::anyhow!(\"dsh binary path is unknown\"))?;\n    let bundle_installed = record.bundle.is_some();\n    let profile = profile_override.unwrap_or(if bundle_installed {\n        bundle::BUNDLE_PROFILE\n    } else {\n        record.profile.as_str()\n    });\n    if !matches!(profile, \"web\" | \"headless\") && profile != bundle::BUNDLE_PROFILE {\n        anyhow::bail!(\n            \"DSH profile must be `web`, `headless`, or `{}` (bundle), got `{profile}`\",\n            bundle::BUNDLE_PROFILE\n        );\n    }\n    if profile == bundle::BUNDLE_PROFILE && !bundle_installed {\n        anyhow::bail!(\n            \"the `{}` profile carries identity only after `{CLI_COMMAND} install-bundle`\",\n            bundle::BUNDLE_PROFILE\n        );\n    }\n    let mut args = vec![\"--profile\".to_string(), profile.to_string()];\n    if profile != bundle::BUNDLE_PROFILE {\n        // The dedicated bundle profile carries the identity itself; the\n        // shipped profiles get it through the overlay.\n        args.push(\"--patch\".to_string());\n        args.push(report.overlay_path.display().to_string());\n    }\n    args.extend(extra_args.iter().cloned());\n    let provider_env_vars: Vec<String> =\n        record.identity.source.api_key_env.iter().cloned().collect();\n    let strip_env = launch_env_strip_list(\n        std::env::var(\"DEEPSEEK_API_KEY_SOURCE\").ok().as_deref(),\n        &provider_env_vars,\n    );","sourceCodeStart":645,"sourceCodeEnd":681,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/8880682c63083a91624de936797efa3ce9e498fd/crates/tui/src/integrations/dsh/mod.rs#L645-L681","documentation":"Error \"the `{}` profile carries identity only after `{CLI_COMMAND} install-bundle`\" thrown in Hmbown/CodeWhale.","triggerScenarios":"Thrown at crates/tui/src/integrations/dsh/mod.rs:663 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"}