Skip to content

The open source coding agent.

TypeScript

fix: ignore case when checking Qwen in model ID for todos (#2122)

Vincent Bernatdda672284c69
diff --git a/packages/opencode/src/tool/registry.ts b/packages/opencode/src/tool/registry.ts
index 9e8f9638c84..c25b16ed3a4 100644
--- a/packages/opencode/src/tool/registry.ts
+++ b/packages/opencode/src/tool/registry.ts
@@ -86,7 +86,7 @@ export namespace ToolRegistry {
result["webfetch"] = false
}
- if (modelID.includes("qwen")) {
+ if (modelID.toLowerCase().includes("qwen")) {
result["todowrite"] = false
result["todoread"] = false
}