exclude write tool too

pull/9127/head
Aiden Cline 2026-01-17 23:46:23 -06:00
parent 8a6b8e5339
commit c2cc486c7d
1 changed files with 1 additions and 1 deletions

View File

@ -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
})