mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 19:24:59 +00:00
feat: Add shell command to input history before execution
This commit is contained in:
parent
623e4bb2d9
commit
4537e1a9f5
2 changed files with 5 additions and 0 deletions
|
@ -311,6 +311,9 @@ class InputOutput:
|
|||
if not self.input_history_file:
|
||||
return
|
||||
FileHistory(self.input_history_file).append_string(inp)
|
||||
# Also add to the in-memory history if it exists
|
||||
if hasattr(self, 'session') and hasattr(self.session, 'history'):
|
||||
self.session.history.append_string(inp)
|
||||
|
||||
def get_input_history(self):
|
||||
if not self.input_history_file:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue