diff --git a/src/commands/configure.ts b/src/commands/configure.ts index 95905171b..233442497 100644 --- a/src/commands/configure.ts +++ b/src/commands/configure.ts @@ -299,8 +299,9 @@ async function promptAuthConfig( spin.stop("OAuth complete"); if (oauthCreds) { await writeOAuthCredentials("anthropic", oauthCreds); + const profileId = `anthropic:${oauthCreds.email ?? "default"}`; next = applyAuthProfileConfig(next, { - profileId: "anthropic:default", + profileId, provider: "anthropic", mode: "oauth", }); diff --git a/src/wizard/onboarding.ts b/src/wizard/onboarding.ts index 6b8842a8a..9aebc8085 100644 --- a/src/wizard/onboarding.ts +++ b/src/wizard/onboarding.ts @@ -295,8 +295,9 @@ export async function runOnboardingWizard( spin.stop("OAuth complete"); if (oauthCreds) { await writeOAuthCredentials("anthropic", oauthCreds); + const profileId = `anthropic:${oauthCreds.email ?? "default"}`; nextConfig = applyAuthProfileConfig(nextConfig, { - profileId: "anthropic:default", + profileId, provider: "anthropic", mode: "oauth", });