Changes are applied to only one file

Related: Multiple attempts are needed to find all the files

I tell Cursor “Here’s a list of files: (list obtained in a previous question, see related link above), please apply these changes to all the files: (list of changes)”.

The result is that Cursor applies the changes perfectly but only to one file, even though it says “I have applied the changes to all the files”. If I insist (“You have applied the changes to only one file, apply the changes to all the files”) then I get “Sorry for the oversight, I’ll apply the changes to all the files now” but nothing changes.

EDIT: Not sure if it’s relevant but I’m using Cursor in Windows and the codebase is in a WSL instance.

Hi @konamiman

Is this happening when you use the chat or composer?

In composer. In the chat it’s even worse, it doesn’t modify any file at all (although it keeps saying that it’s doing it).

What version of Cursor do you have installed?

0.40.0

Please download the new version from the website cursor.com.

Thanks, upgraded but that didn’t help. This time it said “Would you like me to proceed with making these changes to all the files, or do you need any clarification or modifications to this approach?”, I answered “Make the changes in all the files without asking me for confirmation on each file” and it looked like it was working hard… but again, only one file was changed.

I included the following instruction under Settings → Rules for AI and it seemed to fix it:

If you’re proposing code changes, try to keep the changeset concise and in the “diff” format, one per file. Follow other instructions given in this prompt with regard to the format to use when suggesting code changes. Those instructions take priority.