From 591d294052508d05310c054edb17dcd3cf607c71 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 25 Apr 2025 07:58:51 -0700 Subject: [PATCH] feat: Print changed file path and check before reading content --- aider/watch.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aider/watch.py b/aider/watch.py index 8fc521c6d..8f84f6006 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -96,20 +96,20 @@ class FileWatcher: rel_path = path_abs.relative_to(self.root) if self.verbose: - dump(rel_path) + print("Changed", rel_path) if self.gitignore_spec and self.gitignore_spec.match_file( rel_path.as_posix() + ("/" if path_abs.is_dir() else "") ): return False - if self.verbose: - dump("ok", rel_path) - # Check file size before reading content if path_abs.is_file() and path_abs.stat().st_size > 1 * 1024 * 1024: # 1MB limit return False + if self.verbose: + print("Checking", rel_path) + # Check if file contains AI markers try: comments, _, _ = self.get_ai_comments(str(path_abs))