mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
refactor: Improve handling of command output in chat confirmation
This commit is contained in:
parent
1c37924472
commit
474b657221
1 changed files with 5 additions and 2 deletions
|
@ -1898,5 +1898,8 @@ class Coder:
|
|||
self.io.tool_error(error_message)
|
||||
accumulated_output += f"{error_message}\n"
|
||||
|
||||
if accumulated_output and self.io.confirm_ask("Add command output to the chat?"):
|
||||
return accumulated_output.strip()
|
||||
accumulated_output = accumulated_output.strip()
|
||||
if accumulated_output and not self.io.confirm_ask("Add command output to the chat?"):
|
||||
accumulated_output = ""
|
||||
|
||||
return accumulated_output
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue