From c1a7784781b4ce01bb759e3d37f669aa8ec32308 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 27 Nov 2024 17:28:37 -0800 Subject: [PATCH] fix: update file watcher to use absolute paths for changed files --- aider/watch.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aider/watch.py b/aider/watch.py index 66126c008..477af5329 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -53,6 +53,7 @@ def load_gitignores(gitignore_paths: list[Path]) -> Optional[PathSpec]: if not gitignore_paths: return None + #ai add in .aider* to always be ignored too! patterns = [] for path in gitignore_paths: if path.exists(): @@ -139,9 +140,7 @@ class FileWatcher: if VERBOSE: dump(result) if result: - # Convert to relative paths before updating - rel_files = {str(Path(f).relative_to(self.root)) for f in changed_files} - self.coder.abs_fnames.update(rel_files) + self.coder.abs_fnames.update(changed_files) self.coder.io.interrupt_input() return except Exception as e: