core: prevent codesearch and websearch tools when webfetch permission is denied

This commit is contained in:
Dax Raad 2025-11-26 22:08:45 -05:00
parent c90987c4b0
commit 0bf40faf95

View file

@ -140,6 +140,8 @@ export namespace ToolRegistry {
}
if (agent.permission.webfetch === "deny") {
result["webfetch"] = false
result["codesearch"] = false
result["websearch"] = false
}
return result