From 195ae5ce4bdae12ac22c29b3c93402b1abf8c18c Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 17 Dec 2024 13:24:50 -0800 Subject: [PATCH] feat: Pass cwd as root to FileWatcher when subtree_only --- aider/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/main.py b/aider/main.py index e26ee895b..3e47fa723 100644 --- a/aider/main.py +++ b/aider/main.py @@ -870,10 +870,10 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F if args.aiderignore: ignores.append(args.aiderignore) - # if args.subtree_only, pass root=os.cwd ai! if args.watch_files: file_watcher = FileWatcher( coder, gitignores=ignores, verbose=args.verbose, analytics=analytics, + root=str(Path.cwd()) if args.subtree_only else None, ) coder.file_watcher = file_watcher