diff --git a/aider/commands.py b/aider/commands.py index 7f500ce08..af74e281c 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -876,7 +876,7 @@ class Commands: def cmd_run(self, args, add_on_nonzero_exit=False): "Run a shell command and optionally add the output to the chat (alias: !)" exit_status, combined_output = run_cmd( - args, verbose=self.verbose, error_print=self.io.tool_error + args, verbose=self.verbose, error_print=self.io.tool_error, cwd=self.coder.root ) if combined_output is None: