fix: check prompt session is active before interrupting input

This commit is contained in:
Paul Gauthier (aider) 2025-01-07 09:46:48 -08:00
parent b67a16e9af
commit fcdb2591b6

View file

@ -122,7 +122,8 @@ class FileWatcher:
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: