Skip to content

Commit

Permalink
fix: check prompt session is active before interrupting input
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-gauthier committed Jan 7, 2025
1 parent b67a16e commit fcdb259
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aider/watch.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def watch_files():
continue
changed_files = {str(Path(change[1])) for change in changes}
self.changed_files.update(changed_files)
self.io.interrupt_input()
if self.io.prompt_session and self.io.prompt_session.app:
self.io.interrupt_input()
return
except Exception as e:
if self.verbose:
Expand Down

0 comments on commit fcdb259

Please sign in to comment.