Explorar el Código

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

Dax Raad hace 3 meses
padre
commit
0bf40faf95
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      packages/opencode/src/tool/registry.ts

+ 2 - 0
packages/opencode/src/tool/registry.ts

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