summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-03-14 14:10:59 +0300
committerGrail Finder <wohilas@gmail.com>2026-03-14 14:10:59 +0300
commitfdcaa6c5e2a192ce10e47a49dec7854b9e46ba75 (patch)
tree9c59e45ae970c0745c6fcb800a16016f879643a6
parent77c365959d61142a96f26d820a9ad2665101c34f (diff)
Enha: return help message on unexpected command
-rw-r--r--tools.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools.go b/tools.go
index 494dc24..1a2f095 100644
--- a/tools.go
+++ b/tools.go
@@ -522,9 +522,8 @@ func runCmd(args map[string]string) []byte {
// browser <action> [args...] - Playwright browser automation
return runBrowserCommand(rest, args)
default:
- // Everything else: shell with pipe/chaining support
- result := tools.ExecChain(commandStr)
- return []byte(result)
+ // Unknown subcommand - return help to remind user of available commands
+ return []byte(getHelp(nil))
}
}