renable todo tool

This commit is contained in:
Dax Raad
2025-08-07 21:47:24 -04:00
parent 3e74107e36
commit 8750744068
2 changed files with 2 additions and 32 deletions

View File

@@ -66,9 +66,10 @@ export namespace ToolRegistry {
return result
}
export async function enabled(_providerID: string, modelID: string): Promise<Record<string, boolean>> {
export async function enabled(_providerID: string, _modelID: string): Promise<Record<string, boolean>> {
const cfg = await Config.get()
const result: Record<string, boolean> = {}
result["patch"] = false
if (cfg.permission?.edit === "deny") {
result["edit"] = false
@@ -79,25 +80,6 @@ export namespace ToolRegistry {
result["bash"] = false
}
if (modelID.toLowerCase().includes("claude")) {
result["patch"] = false
return result
}
if (
modelID.toLowerCase().includes("qwen") ||
modelID.includes("gpt-") ||
modelID.includes("o1") ||
modelID.includes("o3") ||
modelID.includes("codex")
) {
result["patch"] = false
result["todowrite"] = false
result["todoread"] = false
return result
}
return result
}