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

pull/4811/head
Dax Raad 2025-11-26 22:08:45 -05:00
parent c90987c4b0
commit 0bf40faf95
1 changed files with 2 additions and 0 deletions

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