From 5cc44c872e829a6dd2725a42f47d2fb370bb9cbd Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Tue, 12 Aug 2025 14:54:25 -0400 Subject: [PATCH] disable todo tools for qwen models to improve compatibility --- packages/opencode/src/tool/registry.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/opencode/src/tool/registry.ts b/packages/opencode/src/tool/registry.ts index e7938057..9e8f9638 100644 --- a/packages/opencode/src/tool/registry.ts +++ b/packages/opencode/src/tool/registry.ts @@ -68,7 +68,7 @@ export namespace ToolRegistry { export async function enabled( _providerID: string, - _modelID: string, + modelID: string, agent: Agent.Info, ): Promise> { const result: Record = {} @@ -86,6 +86,11 @@ export namespace ToolRegistry { result["webfetch"] = false } + if (modelID.includes("qwen")) { + result["todowrite"] = false + result["todoread"] = false + } + return result }