existing folder contents overridden when /add dirname/
in aider --yes
#599
Labels
question
Further information is requested
/add dirname/
in aider --yes
#599
Issue
I had just had chat_gpt refactor my aider-made code, and make tests for it, and wanted to go back and start running those tests via the aider /run loop. I had previously made new files, made a tests folder, and in vs code dragged them into that folder. Then in the terminal I went back to aider and switched from the single-file to multi-file context, including the subfolder of tests I tried to add. Since I was in --yes mode, it appears to have assumed it needed to create a new blank tests folder. I don't know why it did that or why it crashed, but now my tests folder is empty and I don't have those test files in vs code anymore.
I acknowledge that I Should Have committed my own new files first so I wasn't asking aider to operate on uncommitted changes... and I can just copy/paste the files from chatgpt again.. so it's no big loss, just maybe this is an avoidable bug.
Version and model info
Aider v0.32.0
Models: gpt-4-1106-preview with udiff edit format, weak model gpt-3.5-turbo
Git repo: .git with 2 files
Repo-map: using 1024 tokens
VSCode terminal detected, pretty output has been disabled.
Use /help to see in-chat commands, run with --help to see cmd line args
The text was updated successfully, but these errors were encountered: