feat(explore): add github-copilot/gpt-5-mini to fallback chain (#1091)

* feat(explore): add github-copilot/gpt-5-mini to fallback chain

* test(explore): add tests for github-copilot/gpt-5-mini fallback

---------

Co-authored-by: Suyeol Jeon <devxoul@gmail.com>
This commit is contained in:
YeonGyu-Kim
2026-01-25 14:53:11 +09:00
committed by GitHub
parent 208af055ef
commit b55fd8d76f
5 changed files with 29 additions and 6 deletions
+11
View File
@@ -353,6 +353,17 @@ describe("generateModelConfig", () => {
// #then explore should use gpt-5-nano (fallback)
expect(result.agents?.explore?.model).toBe("opencode/gpt-5-nano")
})
test("explore uses gpt-5-mini when only Copilot available", () => {
// #given only Copilot is available
const config = createConfig({ hasCopilot: true })
// #when generateModelConfig is called
const result = generateModelConfig(config)
// #then explore should use gpt-5-mini (Copilot fallback)
expect(result.agents?.explore?.model).toBe("github-copilot/gpt-5-mini")
})
})
describe("Sisyphus agent special cases", () => {