From 63ccf2abe0c472946ef4b6a02dbf9f567161f615 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sat, 21 Feb 2026 03:33:37 +0900 Subject: [PATCH] fix(category-resolver): add kimi to unstable agent detection, check category config model MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with assistance of [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) --- src/tools/delegate-task/category-resolver.ts | 3 ++- src/tools/delegate-task/tools.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tools/delegate-task/category-resolver.ts b/src/tools/delegate-task/category-resolver.ts index ba7ce7c7..a2f5bbd3 100644 --- a/src/tools/delegate-task/category-resolver.ts +++ b/src/tools/delegate-task/category-resolver.ts @@ -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, diff --git a/src/tools/delegate-task/tools.test.ts b/src/tools/delegate-task/tools.test.ts index 8ac91db6..b9b1274b 100644 --- a/src/tools/delegate-task/tools.test.ts +++ b/src/tools/delegate-task/tools.test.ts @@ -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