summaryrefslogtreecommitdiff
path: root/tools/tools.go
diff options
context:
space:
mode:
Diffstat (limited to 'tools/tools.go')
-rw-r--r--tools/tools.go10
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.