From 93de9f7bd9cdf52c1835ccb181d9f68ec619a11d Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Tue, 13 Jan 2026 16:20:49 +0300 Subject: Enha(tools): success msg for shell commands --- tools.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools.go b/tools.go index f36e240..fddbffe 100644 --- a/tools.go +++ b/tools.go @@ -684,6 +684,12 @@ func executeCommand(args map[string]string) []byte { return []byte(msg) } + // Check if output is empty and return success message + if len(output) == 0 { + successMsg := fmt.Sprintf("command '%s %s' executed successfully and exited with code 0", command, strings.Join(cmdArgs, " ")) + return []byte(successMsg) + } + return output } -- cgit v1.2.3