Skip to content

Commit ba64863

Browse files
Print "No files found" in sys.find so LLM can handle empty case better
1 parent b8a97bc commit ba64863

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/builtin/builtin.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@ func SysFind(ctx context.Context, env []string, input string) (string, error) {
216216
if err != nil {
217217
return "", nil
218218
}
219+
if len(result) == 0 {
220+
return "No files found", nil
221+
}
222+
219223
sort.Strings(result)
220224
return strings.Join(result, "\n"), nil
221225
}

0 commit comments

Comments
 (0)