respect GEMINI_MODEL and OPENCODE_MODEL env vars in test runner

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Colin McDonnell
2026-02-14 02:46:39 +00:00
committed by pullfrog[bot]
parent 796c56a0c2
commit 06683c1e0a
+2 -2
View File
@@ -313,12 +313,12 @@ async function runTestForAgent(ctx: RunContext): Promise<ValidationResult> {
// 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