Enha: return help message on unexpected command

This commit is contained in:
Grail Finder
2026-03-14 14:10:59 +03:00
parent 77c365959d
commit fdcaa6c5e2

View File

@@ -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))
}
}