Open jamesjrg opened 5 days ago
when chat with ai ,if answer create file,the default path is '/' which is not write able on macos,so file unable create.default path should project active directory
I believe what happened here is that the path which AI generated is not absolute, that's a prompting bug. Could you share your pwd with me, should be easy to replicate.
It is reproducable in an empty directory as well, e.g. create a folder and prompt "Create a cheesemonger class", and the same thing will happen. Perhaps the names of all new files and folders that start with a "/" should automatically have a "." prepended.
E.g. if LLM says "/cheesemonger.py", it could be auto-translated to "./cheesemonger.py"
Before submitting your bug report
Environment
Description
Reproduction
No response
Log output
No response