From fcdb2591b6bfee28e058e093793eff410ebc70ef Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 7 Jan 2025 09:46:48 -0800 Subject: [PATCH] fix: check prompt session is active before interrupting input --- aider/watch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aider/watch.py b/aider/watch.py index f1e24bcc5..9ec7bfb24 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -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: