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);
} else if (authChoice === "minimax") {
nextConfig = applyMinimaxConfig(nextConfig);
} else if (authChoice === "oauth" || authChoice === "antigravity") {
} else if (
authChoice === "oauth" ||
authChoice === "openai-codex" ||
authChoice === "antigravity"
) {
runtime.error(
`${authChoice === "oauth" ? "OAuth" : "Antigravity"} requires interactive mode.`,
`${
authChoice === "oauth" || authChoice === "openai-codex"
? "OAuth"
: "Antigravity"
} requires interactive mode.`,
);
runtime.exit(1);
return;

View File

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