Cursor not editing file anymore, but creating new file

Cursor is not applying possible edits in my files and waiting for my accept / reject, instead it creates a new file with the change.

I noticed that it creates files in a folder that does not contain my project name. I add my file to the context, located at /Helper files/filename.code. Claude 3.5 seems to be reading the file just fine, as it gets the right context, but then the changes it makes are in a new file (called exactly the same as my file) which is placed in another location:

Helper files/filename.code

It seems it forgets to add the project name to the location. Oddly enough, it adds indentation that would make it fit in the original file.

Cursor version: 0.47.8
Mode: Agent
Model: Claude 3.5
Subscription: Pro, still have fast requests available, but unfortunately I’ve wasted a few now with this.

2 Likes

Adding context: it does not seem to do this consistently, now I’m changing another part (and I added a few lines as more specific context), and Cursor is now applying suggested edits directly in the file again…