chore: do not respond with error
commitca09597f2af00c967f1b544fc197691af5a387bf
authorKujtim Hoxha <kujtimii.h@gmail.com>
dateSun 26 Oct 2025, 21:39 (1 year ago)
parentf1b0dbb
internal/agent/tools/ls.go+1−1
@@ -99,7 +99,7 @@ func NewLsTool(permissions permission.Service, workingDir string, lsConfig confi
9999
100100 output, metadata, err := ListDirectoryTree(searchPath, params, lsConfig)
101101 if err != nil {
102− return fantasy.ToolResponse{}, err
102+ return fantasy.NewTextErrorResponse(err.Error()), err
103103 }
104104
105105 return fantasy.WithResponseMetadata(