feat: Support modifying the command filtering list of the exec tool (#410)

This commit is contained in:
lxowalle
2026-02-18 19:31:15 +08:00
committed by GitHub
parent b77a40315e
commit eda6e37332
6 changed files with 215 additions and 50 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ func createToolRegistry(workspace string, restrict bool, cfg *config.Config, msg
registry.Register(tools.NewAppendFileTool(workspace, restrict))
// Shell execution
registry.Register(tools.NewExecTool(workspace, restrict))
registry.Register(tools.NewExecToolWithConfig(workspace, restrict, cfg))
if searchTool := tools.NewWebSearchTool(tools.WebSearchToolOptions{
BraveAPIKey: cfg.Tools.Web.Brave.APIKey,