From 59ce26f28aa4226ee712f4e3ff7f78f1a6b8693f Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 27 Nov 2024 16:31:19 -0800 Subject: [PATCH] feat: update coder tracked files when AI comments detected --- aider/watch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aider/watch.py b/aider/watch.py index e65d98239..c07e6d1bb 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -139,7 +139,8 @@ class FileWatcher: if VERBOSE: dump(result) if result: - # ai directly update coder.abs_fnames! + # Update coder's tracked files and interrupt input + self.coder.abs_fnames.update(changed_files) self.coder.io.interrupt_input() return except Exception as e: