Merge pull request #162 from auriti/fix/provider-aware-error-messages

fix: provider-aware error messages and skip Anthropic key approval for 3P
This commit is contained in:
Kevin Codex
2026-04-03 01:42:15 +08:00
committed by GitHub
2 changed files with 8 additions and 2 deletions

View File

@@ -99,7 +99,7 @@ export function Onboarding({
// Add API key step if needed
// On homespace, ANTHROPIC_API_KEY is preserved in process.env for child
// processes but ignored by Claude Code itself (see auth.ts).
if (!process.env.ANTHROPIC_API_KEY || isRunningOnHomespace()) {
if (!process.env.ANTHROPIC_API_KEY || isRunningOnHomespace() || !isAnthropicAuthEnabled()) {
return '';
}
const customApiKeyTruncated = normalizeApiKeyForConfig(process.env.ANTHROPIC_API_KEY);