From 0baf08fda15a7d351eb1c17ba6e8f832eaf743f6 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 12 Jan 2026 06:12:19 +0000 Subject: [PATCH] fix: dedupe minimax non-interactive auth --- src/commands/onboard-non-interactive.ts | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/commands/onboard-non-interactive.ts b/src/commands/onboard-non-interactive.ts index ff6ed6a92..f15b95025 100644 --- a/src/commands/onboard-non-interactive.ts +++ b/src/commands/onboard-non-interactive.ts @@ -284,10 +284,7 @@ export async function runNonInteractiveOnboarding( mode: "api_key", }); nextConfig = applyOpenrouterConfig(nextConfig); - } else if ( - authChoice === "minimax-cloud" || - authChoice === "minimax-api" - ) { + } else if (authChoice === "minimax-cloud" || authChoice === "minimax-api") { const resolved = await resolveNonInteractiveApiKey({ provider: "minimax", cfg: baseConfig, @@ -306,23 +303,6 @@ export async function runNonInteractiveOnboarding( mode: "api_key", }); const modelId = "MiniMax-M2.1"; - const resolved = await resolveNonInteractiveApiKey({ - provider: "minimax", - cfg: baseConfig, - flagValue: opts.minimaxApiKey, - flagName: "--minimax-api-key", - envVar: "MINIMAX_API_KEY", - runtime, - }); - if (!resolved) return; - if (resolved.source !== "profile") { - await setMinimaxApiKey(resolved.key); - } - nextConfig = applyAuthProfileConfig(nextConfig, { - profileId: "minimax:default", - provider: "minimax", - mode: "api_key", - }); nextConfig = applyMinimaxApiConfig(nextConfig, modelId); } else if (authChoice === "claude-cli") { const store = ensureAuthProfileStore(undefined, {