diff options
| author | Aiden Cline <[email protected]> | 2026-01-19 01:06:26 -0600 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2026-01-19 01:06:26 -0600 |
| commit | 3515b4ff7d21da9f5783df1705ad8fd382a5b7e0 (patch) | |
| tree | 7980af18b4079d4d09e739dab2faf1d4d45f8c83 | |
| parent | 4a7809f600f30a08d4ac3afd3ec4fc39f41983f7 (diff) | |
| download | opencode-3515b4ff7d21da9f5783df1705ad8fd382a5b7e0.tar.gz opencode-3515b4ff7d21da9f5783df1705ad8fd382a5b7e0.zip | |
omit todo tools for openai models
| -rw-r--r-- | packages/opencode/src/tool/registry.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/opencode/src/tool/registry.ts b/packages/opencode/src/tool/registry.ts index faa5f72bc..dad9914a2 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) => { |
