fix: improve AI comment detection accuracy in FileWatcher

This commit is contained in:
Paul Gauthier 2024-12-01 15:26:45 -08:00 committed by Paul Gauthier (aider)
parent ee7bb71a05
commit 97bf5e8d69
4 changed files with 47 additions and 31 deletions

View file

@ -106,8 +106,8 @@ class FileWatcher:
# Check if file contains AI markers
try:
_, _, has_match = self.get_ai_comments(str(path_abs))
return has_match
comments, _, _ = self.get_ai_comments(str(path_abs))
return bool(comments)
except Exception:
return