From 0be5d39453a2b54da779c508b4ca0021ad650de1 Mon Sep 17 00:00:00 2001 From: Yutaka Matsubara Date: Mon, 10 Mar 2025 21:55:00 +0900 Subject: [PATCH] refactor: add ignore_permission_denied option to watch function --- aider/watch.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aider/watch.py b/aider/watch.py index 989aa8bf6..5dd770976 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -140,7 +140,10 @@ class FileWatcher: roots_to_watch = self.get_roots_to_watch() for changes in watch( - *roots_to_watch, watch_filter=self.filter_func, stop_event=self.stop_event + *roots_to_watch, + watch_filter=self.filter_func, + stop_event=self.stop_event, + ignore_permission_denied=True, ): if self.handle_changes(changes): return