Changes in XML files are not applied

We use UML diagrams to document the code. These are stored in XML files in repo. Cursor sees them and can read, but when we apply changes to the code and ask it to document those changes in XML - it generates correct code, but does not apply it to the files.
We use notepads to explain XML structure, all works, but changes are marked as cancelled in composer. A bug?

Hey, are you using the Composer for this?
The chat can generate changes, but not apply them on its own!

Yes, we use Composer.

Have you got a screenshot of when this happens?

Usually, once the composer has finished responding and the code has applied to your files, you should have an accept or reject button just above where you would type in your prompt, which should confirm that the AI is making changes to your files.

Sorry to be late: it just shows on the top left corner of the input window “changes are cancelled” for the .xml file.

If you cancel it, and reattempt the apply, does that work then?

The composer does not show an option “Apply” in the code window, only “copy”, which does not make sense as the window contains only a changed portion of the code, so one need to know exactly where to paste it in the file.

Ah, so the apply button is missing!

We should have some improvements to this in our next update, so I’d suggest holding out for that, and letting us know if you still have issues with that version.

Not really. The generated code does not have the rest of XML, so I am not sure this will help. I have found this in Composer history:


I can try to reproduce it, if you need live response…

The issue is still there. Agent mode, gpt-4o cannot change XML file. Interesting, it detects it by itself, tries, but still cannot do that. Please confirm/fix.