From 79561d07a08ee7d40e945f0447d6f8d173cdf59c Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 5 Jan 2026 07:33:33 +0100 Subject: [PATCH] fix: allow openai-codex in onboarding types --- src/commands/onboard-non-interactive.ts | 12 ++++++++++-- src/commands/onboard-types.ts | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/commands/onboard-non-interactive.ts b/src/commands/onboard-non-interactive.ts index e4474a0ec..ce8c0148c 100644 --- a/src/commands/onboard-non-interactive.ts +++ b/src/commands/onboard-non-interactive.ts @@ -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; diff --git a/src/commands/onboard-types.ts b/src/commands/onboard-types.ts index d61468066..42a5734df 100644 --- a/src/commands/onboard-types.ts +++ b/src/commands/onboard-types.ts @@ -1,6 +1,7 @@ export type OnboardMode = "local" | "remote"; export type AuthChoice = | "oauth" + | "openai-codex" | "antigravity" | "apiKey" | "minimax"