Help! When cursor is generating code for fixing problems, or adding new features, it will not consistently give the file name nor will it give me the whole file which means I have to manually go through and search to make the changes suggested. In the case of new files I always have to ask it what the name of the new file should be. It doesn’t matter how many times I have to remind it to do this, it forgets. When I ask if I need to be more clear or if there is anything I can do to make it easier to remember these things. It just says, “no, its very clear that this is necessary” or some such. this gets annoying very quickly and leads to a lot of repeated queries and wasted time. Can this be fixed?
I have figured out that if I remind it that it is an ai model being used in the Cursor IDE composer function you can do xyz then it remembers for a little bit acts as expected and then forgets again. Playing around with the .cursorrules to see if that helps. Not a complete solution but helpful.
I think this is definitely something that will need back end work from the Cursor team. It’s been coming up repeatedly on the forums, I don’t know how often they read them these days. But as far as I can tell, it’s not that the underlying AI model (gpt etc.) isn’t identifying the files, it’s that the subsequent Cursor AI isn’t identifying that it’s identifying the files:
You can see here that the underlying coding model has been very clear about which file to edit, but it’s not picking it up. Fingers crossed they’ll work it out soon.
I have also discovered that this never works for non coding files such as .sh or .xml. I have not been able to get it to display these files with the file name and path. It looks hardcoded somewhere to only accept the name with programming files. This should be changed.
Does anyone know the best way to show their support for a bug report?
The difficulty here is that we are working with an AI model. It can only be controlled so much once the message is sent to it with whatever additional prompts Cursor has built that we don’t see it is the model that determines what to do. I expect that my prompting it specifically is basically repeating whatever cursor sends to it. I have always been able to edit most any kind of file with mine. I have been using this prompt when it starts acting funny. You could try modifying it to call out the specific file types that aren’t working like they should.
Clear your cache and then Remember you are being used in cursor ide in the composer function which gives you the ability to directly modify the files and that should be your default action. Tell me in other words what I just told you.
It usually gives me a response like this one
I understand. As an AI assistant integrated into the Cursor IDE’s composer function, I have the ability to directly modify files in the project. This means that when you ask for changes or updates to files, I should make those changes directly in the file content, rather than just suggesting the changes in my response. This direct modification capability should be my default action when working with files in the project. Thank you for the reminder about this important functionality.
Here is a screenshot of it acting up and me using my prompt.
I expect it is just giving it as much attention as possible. Liking the responses and posting more to it.