chore: small fix

This commit is contained in:
Kujtim Hoxha
2025-07-29 09:21:09 +02:00
parent 90961a6a03
commit 302dbccade

View File

@@ -440,10 +440,10 @@ func (b *bashTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
Output: stdout,
WorkingDirectory: currentWorkingDir,
}
stdout += fmt.Sprintf("\n\n<cwd>%s</cwd>", currentWorkingDir)
if stdout == "" {
return WithResponseMetadata(NewTextResponse(BashNoOutput), metadata), nil
}
stdout += fmt.Sprintf("\n\n<cwd>%s</cwd>", currentWorkingDir)
return WithResponseMetadata(NewTextResponse(stdout), metadata), nil
}