fix: change /edit to /add command for file changes

This commit is contained in:
Paul Gauthier 2024-10-25 12:48:53 -07:00 committed by Paul Gauthier (aider)
parent 8e873e7450
commit 5a0d66141f

View file

@ -379,6 +379,7 @@ class InputOutput:
# Start the watcher thread
watcher = threading.Thread(target=watch_files, daemon=True)
watcher.start()
dump(watcher)
try:
rel_fnames = list(rel_fnames)
@ -441,7 +442,7 @@ class InputOutput:
if self.changed_files:
changed = self.changed_files
self.changed_files = None
return f"/edit {changed}" # Return an edit command for the changed file
return f"/add {changed}" # Return an edit command for the changed file
return ""
except UnicodeEncodeError as err:
self.tool_error(str(err))