{"record":{"id":"be2f871b212dae74","repo":"Hmbown/CodeWhale","slug":"has-no-supported-external-credential-owner","errorCode":null,"errorMessage":"{} has no supported external credential owner","messagePattern":"(.+?) has no supported external credential owner","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/config.rs","lineNumber":11297,"sourceCode":"/// succeeds. This function never inspects the external path.\npub(crate) fn persist_external_credential_consent_for_at(\n    config_path: Option<&Path>,\n    live_config: &mut Config,\n    provider: ApiProvider,\n    consent_provider: codewhale_config::ProviderKind,\n    source: codewhale_config::ExternalCredentialSource,\n    path: &Path,\n) -> Result<PathBuf> {\n    let expected = match provider {\n        ApiProvider::OpenaiCodex => (\n            codewhale_config::ProviderKind::OpenaiCodex,\n            codewhale_config::ExternalCredentialSource::CodexCli,\n        ),\n        ApiProvider::Xai => (\n            codewhale_config::ProviderKind::Xai,\n            codewhale_config::ExternalCredentialSource::GrokCli,\n        ),\n        _ => anyhow::bail!(\n            \"{} has no supported external credential owner\",\n            provider.as_str()\n        ),\n    };\n    anyhow::ensure!(\n        (consent_provider, source) == expected,\n        \"external credential owner does not match provider {}\",\n        provider.as_str()\n    );\n    let path = codewhale_config::resolve_external_credential_path(path)?;\n    let path_value = path.to_str().context(\n        \"external credential path cannot be persisted losslessly because it is not valid UTF-8\",\n    )?;\n    let config_path = match config_path {\n        Some(path) => path.to_path_buf(),\n        None => credential_config_path()\n            .context(\"Failed to resolve config path for external credential consent.\")?,\n    };","sourceCodeStart":11279,"sourceCodeEnd":11315,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/8880682c63083a91624de936797efa3ce9e498fd/crates/tui/src/config.rs#L11279-L11315","documentation":"Error \"{} has no supported external credential owner\" thrown in Hmbown/CodeWhale.","triggerScenarios":"Thrown at crates/tui/src/config.rs:11297 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"}