diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-03-17 09:23:35 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-03-17 09:23:35 +0300 |
| commit | 451e6f0381afe37c59f12703f8750407c27ba94a (patch) | |
| tree | d4a76d7011f2da98bac2ee718afa587952c8ba4f /tools/tools.go | |
| parent | 47b3d37a9714e3e68e56f009ea1faee5223edeb4 (diff) | |
| parent | 326a1a4d094c6349e0403d479384347c52964537 (diff) | |
Merge branch 'master' into feat/agent-flow
Diffstat (limited to 'tools/tools.go')
| -rw-r--r-- | tools/tools.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/tools.go b/tools/tools.go index 697683a..967e5de 100644 --- a/tools/tools.go +++ b/tools/tools.go @@ -129,10 +129,10 @@ func (t *Tools) initAgentsB() { agent.RegisterB("summarize_chat", agent.NewWebAgentB(t.webAgentClient, summarySysPrompt)) } -func InitTools(cfg *config.Config, logger *slog.Logger, store storage.FullRepo) *Tools { - _ = logger - _ = cfg - if cfg.PlaywrightEnabled { +func InitTools(initCfg *config.Config, logger *slog.Logger, store storage.FullRepo) *Tools { + logger = logger + cfg = initCfg + if initCfg.PlaywrightEnabled { if err := CheckPlaywright(); err != nil { // slow, need a faster check if playwright install if err := InstallPW(); err != nil { @@ -686,7 +686,7 @@ Use: run "command" to execute.` -c count matches Example: run "grep error" (from stdin) - run "grep -i warning log.txt"` + run "grep -i warn log.txt"` case "cd": return `cd <directory> Change working directory. |
