on main help sign in
chore: small fix
302dbccKujtim Hoxha
internal/llm/tools/bash.go+1−1
@@ -440,10 +440,10 @@ func (b *bashTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
440 Output: stdout,
440 Output: stdout,
441 WorkingDirectory: currentWorkingDir,
441 WorkingDirectory: currentWorkingDir,
442 }
442 }
443− stdout += fmt.Sprintf("\n\n<cwd>%s</cwd>", currentWorkingDir)
444 if stdout == "" {
443 if stdout == "" {
445 return WithResponseMetadata(NewTextResponse(BashNoOutput), metadata), nil
444 return WithResponseMetadata(NewTextResponse(BashNoOutput), metadata), nil
446 }
445 }
446+ stdout += fmt.Sprintf("\n\n<cwd>%s</cwd>", currentWorkingDir)
447 return WithResponseMetadata(NewTextResponse(stdout), metadata), nil
447 return WithResponseMetadata(NewTextResponse(stdout), metadata), nil
448}
448}
449
449