@@ -440,10 +440,10 @@ func (b *bashTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
440440 Output: stdout,
441441 WorkingDirectory: currentWorkingDir,
442442 }
443− stdout += fmt.Sprintf("\n\n<cwd>%s</cwd>", currentWorkingDir)
444443 if stdout == "" {
445444 return WithResponseMetadata(NewTextResponse(BashNoOutput), metadata), nil
446445 }
446+ stdout += fmt.Sprintf("\n\n<cwd>%s</cwd>", currentWorkingDir)
447447 return WithResponseMetadata(NewTextResponse(stdout), metadata), nil
448448}
449449