From 29d85bb63de56831eb8e84e08967af848a14b661 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Thu, 19 Feb 2026 14:38:09 +0900 Subject: [PATCH] refactor(explore): add minimax-m2.5-free as #2 fallback after grok-code-fast-1 --- src/shared/model-requirements.test.ts | 15 +++++++++------ src/shared/model-requirements.ts | 1 + 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/shared/model-requirements.test.ts b/src/shared/model-requirements.test.ts index 8fe096332..55b94825a 100644 --- a/src/shared/model-requirements.test.ts +++ b/src/shared/model-requirements.test.ts @@ -64,23 +64,26 @@ describe("AGENT_MODEL_REQUIREMENTS", () => { const explore = AGENT_MODEL_REQUIREMENTS["explore"] // when - accessing explore requirement - // then - fallbackChain exists with grok-code-fast-1 as first entry, claude-haiku-4-5 as second + // then - fallbackChain exists with grok-code-fast-1 as first entry, minimax-m2.5-free as second expect(explore).toBeDefined() expect(explore.fallbackChain).toBeArray() - expect(explore.fallbackChain).toHaveLength(3) + expect(explore.fallbackChain).toHaveLength(4) const primary = explore.fallbackChain[0] expect(primary.providers).toContain("github-copilot") expect(primary.model).toBe("grok-code-fast-1") const secondary = explore.fallbackChain[1] - expect(secondary.providers).toContain("anthropic") expect(secondary.providers).toContain("opencode") - expect(secondary.model).toBe("claude-haiku-4-5") + expect(secondary.model).toBe("minimax-m2.5-free") const tertiary = explore.fallbackChain[2] - expect(tertiary.providers).toContain("opencode") - expect(tertiary.model).toBe("gpt-5-nano") + expect(tertiary.providers).toContain("anthropic") + expect(tertiary.model).toBe("claude-haiku-4-5") + + const quaternary = explore.fallbackChain[3] + expect(quaternary.providers).toContain("opencode") + expect(quaternary.model).toBe("gpt-5-nano") }) test("multimodal-looker has valid fallbackChain with gemini-3-flash as primary", () => { diff --git a/src/shared/model-requirements.ts b/src/shared/model-requirements.ts index be68a0c9d..7b141ad5b 100644 --- a/src/shared/model-requirements.ts +++ b/src/shared/model-requirements.ts @@ -46,6 +46,7 @@ export const AGENT_MODEL_REQUIREMENTS: Record = { explore: { fallbackChain: [ { providers: ["github-copilot"], model: "grok-code-fast-1" }, + { providers: ["opencode"], model: "minimax-m2.5-free" }, { providers: ["anthropic", "opencode"], model: "claude-haiku-4-5" }, { providers: ["opencode"], model: "gpt-5-nano" }, ],