diff --git a/aider/watch.py b/aider/watch.py index 4c19f41fa..0a89ffd9a 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -144,7 +144,7 @@ def get_ai_comment(filepath, encoding="utf-8"): comments = [] try: with open(filepath, encoding=encoding, errors="ignore") as f: - for line in f: + for line in f:#ai if match := re.search(r"(?:#|//) *ai\b?(.*)", line, re.IGNORECASE): comment = match.group(1).strip() if comment: