From 5b2bd900717007216b68a920c8ff74d961a25a82 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 2 Dec 2024 07:26:51 -0800 Subject: [PATCH] fix: ensure consistent handling of "ai!" comment detection --- aider/watch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aider/watch.py b/aider/watch.py index 0d1a6bab9..4a34e5cbc 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -226,6 +226,7 @@ Be sure to remove all these "ai" comments from the code! if comment: line_nums.append(i) comments.append(comment) + # Use the ai regex, but ensure it's "ai!" ... AI! if comment.strip().endswith("!"): has_bang = True if not line_nums: