mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
core: prevent codesearch and websearch tools when webfetch permission is denied
This commit is contained in:
parent
c90987c4b0
commit
0bf40faf95
1 changed files with 2 additions and 0 deletions
|
|
@ -140,6 +140,8 @@ export namespace ToolRegistry {
|
|||
}
|
||||
if (agent.permission.webfetch === "deny") {
|
||||
result["webfetch"] = false
|
||||
result["codesearch"] = false
|
||||
result["websearch"] = false
|
||||
}
|
||||
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue