From 2a8ad4ad9a85b3faa4fc4c5c8791bf7d87e4fb08 Mon Sep 17 00:00:00 2001 From: usr-bin-roygbiv Date: Tue, 18 Aug 2026 21:09:55 +0000 Subject: [PATCH] fix(coding-agent): allow auth oauth without apiKey in models.yml --- packages/coding-agent/src/config/models-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/coding-agent/src/config/models-config.ts b/packages/coding-agent/src/config/models-config.ts index d9e4fd47b..1c6e7b26d 100644 --- a/packages/coding-agent/src/config/models-config.ts +++ b/packages/coding-agent/src/config/models-config.ts @@ -66,7 +66,7 @@ export function validateProviderConfiguration( const requiresAuth = mode === "runtime-register" ? !config.apiKey && !config.oauthConfigured - : !config.apiKey && (config.auth ?? "apiKey") !== "none"; + : !config.apiKey && (config.auth ?? "apiKey") !== "none" && (config.auth ?? "apiKey") !== "oauth"; if (requiresAuth) { throw new Error( mode === "runtime-register"