mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
fix: convert absolute paths to relative paths in file watcher
This commit is contained in:
parent
333e4aa362
commit
c3a9c05455
1 changed files with 3 additions and 2 deletions
|
@ -139,8 +139,9 @@ class FileWatcher:
|
|||
if VERBOSE:
|
||||
dump(result)
|
||||
if result:
|
||||
# ai: they need to be rel_fnames!
|
||||
self.coder.abs_fnames.update(changed_files)
|
||||
# Convert to relative paths before updating
|
||||
rel_files = {str(Path(f).relative_to(self.root)) for f in changed_files}
|
||||
self.coder.abs_fnames.update(rel_files)
|
||||
self.coder.io.interrupt_input()
|
||||
return
|
||||
except Exception as e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue