From 3b5629a7ab3341019ea7b9cc6a3e264f580f5f2d Mon Sep 17 00:00:00 2001 From: Aiden Cline Date: Mon, 19 Jan 2026 01:06:26 -0600 Subject: [PATCH] omit todo tools for openai models --- packages/opencode/src/tool/registry.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/opencode/src/tool/registry.ts b/packages/opencode/src/tool/registry.ts index faa5f72bcc..dad9914a28 100644 --- a/packages/opencode/src/tool/registry.ts +++ b/packages/opencode/src/tool/registry.ts @@ -143,6 +143,11 @@ export namespace ToolRegistry { if (t.id === "apply_patch") return usePatch if (t.id === "edit" || t.id === "write") return !usePatch + // omit todo tools for openai models + if (t.id === "todoread" || t.id === "todowrite") { + if (model.modelID.includes("gpt-")) return false + } + return true }) .map(async (t) => {