Skip to content

Commit 8459e9f

Browse files
authored
Merge pull request #531 from dgageot/fix-530
Remove redundant Output: prefix
2 parents ba7fb5b + f2c5482 commit 8459e9f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

examples/gopher.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,5 @@ agents:
7373
ref: docker:ast-grep
7474
config:
7575
path: .
76+
commands:
77+
fix-lint: "fix the lint issues"

pkg/tools/builtin/shell.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,14 @@ func (h *shellHandler) RunShell(ctx context.Context, toolCall tools.ToolCall) (*
103103
}, nil
104104
}
105105

106+
if output == "" {
107+
return &tools.ToolCallResult{
108+
Output: "<no output>",
109+
}, nil
110+
}
111+
106112
return &tools.ToolCallResult{
107-
Output: fmt.Sprintf("Output: %s", output),
113+
Output: output,
108114
}, nil
109115
}
110116

0 commit comments

Comments
 (0)