From c2cc486c7d64e2b40c0ba408f776d9c2e834a3d7 Mon Sep 17 00:00:00 2001 From: Aiden Cline Date: Sat, 17 Jan 2026 23:46:23 -0600 Subject: [PATCH] exclude write tool too --- packages/opencode/src/tool/registry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/tool/registry.ts b/packages/opencode/src/tool/registry.ts index ad86828bac..cb81d8cd0b 100644 --- a/packages/opencode/src/tool/registry.ts +++ b/packages/opencode/src/tool/registry.ts @@ -141,7 +141,7 @@ export namespace ToolRegistry { const usePatch = model.modelID.includes("gpt") && !model.modelID.includes("oss") // && model.modelID !== "gpt-5" << TODO: gpt-5 needs special instructions if (t.id === "apply_patch") return usePatch - if (t.id === "edit") return !usePatch + if (t.id === "edit" || t.id === "write") return !usePatch return true })