fix: allow openai-codex in onboarding types

This commit is contained in:
Peter Steinberger
2026-01-05 07:33:33 +01:00
parent 30038f7d37
commit 79561d07a0
2 changed files with 11 additions and 2 deletions

View File

@@ -99,9 +99,17 @@ export async function runNonInteractiveOnboarding(
await setAnthropicApiKey(key); await setAnthropicApiKey(key);
} else if (authChoice === "minimax") { } else if (authChoice === "minimax") {
nextConfig = applyMinimaxConfig(nextConfig); nextConfig = applyMinimaxConfig(nextConfig);
} else if (authChoice === "oauth" || authChoice === "antigravity") { } else if (
authChoice === "oauth" ||
authChoice === "openai-codex" ||
authChoice === "antigravity"
) {
runtime.error( runtime.error(
`${authChoice === "oauth" ? "OAuth" : "Antigravity"} requires interactive mode.`, `${
authChoice === "oauth" || authChoice === "openai-codex"
? "OAuth"
: "Antigravity"
} requires interactive mode.`,
); );
runtime.exit(1); runtime.exit(1);
return; return;

View File

@@ -1,6 +1,7 @@
export type OnboardMode = "local" | "remote"; export type OnboardMode = "local" | "remote";
export type AuthChoice = export type AuthChoice =
| "oauth" | "oauth"
| "openai-codex"
| "antigravity" | "antigravity"
| "apiKey" | "apiKey"
| "minimax" | "minimax"