diff --git a/aider/watch.py b/aider/watch.py index a7a0d594b..878f6133a 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -195,6 +195,7 @@ Be sure to remove all these "AI" comments from the code! # Convert comment line numbers to line indices (0-based) lois = [ln - 1 for ln, _ in zip(line_nums, comments) if ln > 0] + # Handle ValueError from TreeContext and just include the actual comments instead. ai! context = TreeContext( rel_fname, code,