review cleanup

pull/9127/head
Aiden Cline 2026-01-18 00:24:11 -06:00
parent 06d69ab609
commit ac3d0cb5a3
2 changed files with 3 additions and 2 deletions

View File

@ -39,7 +39,7 @@ import { TodoWriteTool } from "@/tool/todo"
import type { GrepTool } from "@/tool/grep"
import type { ListTool } from "@/tool/ls"
import type { EditTool } from "@/tool/edit"
import type { ApplyPatchTool } from "@/tool/apply_patch.ts"
import type { ApplyPatchTool } from "@/tool/apply_patch"
import type { WebFetchTool } from "@/tool/webfetch"
import type { TaskTool } from "@/tool/task"
import type { QuestionTool } from "@/tool/question"

View File

@ -138,7 +138,8 @@ export namespace ToolRegistry {
}
// use apply tool in same format as codex
const usePatch = model.modelID.includes("gpt-5") && !model.modelID.includes("oss")
const usePatch =
model.modelID.includes("gpt-") && !model.modelID.includes("oss") && !model.modelID.includes("gpt-4")
if (t.id === "apply_patch") return usePatch
if (t.id === "edit" || t.id === "write") return !usePatch