fix(category-resolver): add kimi to unstable agent detection, check category config model

🤖 Generated with assistance of [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
This commit is contained in:
YeonGyu-Kim
2026-02-21 03:33:37 +09:00
parent 9f09f77588
commit 63ccf2abe0
2 changed files with 4 additions and 3 deletions

View File

@@ -170,7 +170,8 @@ Available categories: ${categoryNames.join(", ")}`,
}
const unstableModel = actualModel?.toLowerCase()
const isUnstableAgent = resolved.config.is_unstable_agent === true || (unstableModel ? unstableModel.includes("gemini") || unstableModel.includes("minimax") : false)
const categoryConfigModel = resolved.config.model?.toLowerCase()
const isUnstableAgent = resolved.config.is_unstable_agent === true || [unstableModel, categoryConfigModel].some(m => m ? m.includes("gemini") || m.includes("minimax") || m.includes("kimi") : false)
return {
agentToUse: SISYPHUS_JUNIOR_AGENT,

View File

@@ -2046,8 +2046,8 @@ describe("sisyphus-task", () => {
expect(result).toContain("Artistry result here")
}, { timeout: 20000 })
test("writing category (gemini-flash) with run_in_background=false should force background but wait for result", async () => {
// given - writing uses gemini-3-flash
test("writing category (kimi) with run_in_background=false should force background but wait for result", async () => {
// given - writing uses kimi-for-coding/k2p5
const { createDelegateTask } = require("./tools")
let launchCalled = false