mirror of
https://github.com/charmbracelet/crush.git
synced 2025-08-02 05:20:46 +03:00
chore: small fix
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user