fix(coding-agent): allow auth oauth without apiKey in models.yml

This commit is contained in:
usr-bin-roygbiv
2026-08-18 21:09:55 +00:00
parent 8500092296
commit 2a8ad4ad9a
@@ -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"