chore: small fix

Kujtim Hoxha created

Change summary

internal/llm/tools/bash.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

internal/llm/tools/bash.go 🔗

@@ -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
 }