mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
fix: Add command to input history before running it
This commit is contained in:
parent
00988f45d8
commit
26edd52d9d
1 changed files with 2 additions and 2 deletions
|
@ -52,9 +52,9 @@ class EditBlockCoder(Coder):
|
||||||
|
|
||||||
self.io.tool_output()
|
self.io.tool_output()
|
||||||
self.io.tool_output(f"Running {command}")
|
self.io.tool_output(f"Running {command}")
|
||||||
|
# Add the command to input history
|
||||||
|
self.io.add_to_input_history(f"/run {command.strip()}")
|
||||||
try:
|
try:
|
||||||
# Add the command to input history
|
|
||||||
self.io.add_to_input_history(f"/run {command.strip()}")
|
|
||||||
self.run_interactive_subprocess(command)
|
self.run_interactive_subprocess(command)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.io.tool_error(f"Error running command '{command}': {str(e)}")
|
self.io.tool_error(f"Error running command '{command}': {str(e)}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue