Gemini Keeps Sending Empty Code XML Files

Is anyone else having trouble with Gemini repeatedly sending empty files, claiming an incorrect format or XML error?

Asking it to resend, fix, or re-analyze the file doesn’t work. It usually takes several prompts to get the correct file, but most of the time this also fails, and I have to move on to another task.

The best strategy I’ve found is to ask Gemini to create a plan to edit the file and then tell it to proceed with that plan.

If you have found a better workaround, please share it.

the same for me, it says it makes changes but doesn’t change anything in the code, it sends back unedited code every time