From 06683c1e0a5604a5c338977d30f8f17d547ff38c Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Sat, 14 Feb 2026 02:46:39 +0000 Subject: [PATCH] respect GEMINI_MODEL and OPENCODE_MODEL env vars in test runner Co-authored-by: Cursor --- test/run.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/run.ts b/test/run.ts index da22f4f..45893ee 100644 --- a/test/run.ts +++ b/test/run.ts @@ -313,12 +313,12 @@ async function runTestForAgent(ctx: RunContext): Promise { // opencode: override to google/gemini-3-pro-preview to avoid flash's tight RPD quota limits if (ctx.agent === "opencode") { - env.OPENCODE_MODEL = "google/gemini-3-pro-preview"; + env.OPENCODE_MODEL ??= "google/gemini-3-pro-preview"; } // gemini: override to pro for all tests (including mini-effort) to avoid flash's tight RPD quota limits if (ctx.agent === "gemini") { - env.GEMINI_MODEL = "gemini-3-pro-preview"; + env.GEMINI_MODEL ??= "gemini-3-pro-preview"; } // build file-based env vars for MCP servers that don't inherit parent env