Help - Gemini hallucinating/refusing to update my app

I have no idea what’s happening, Gemini is bugging saying random things and refusing to do what I asked for, it feels like Ai Studio is targetting this specific app I am using, since this ins’t happening in any of previous apps (or new ones).

I’ve already tried to copy app, and EVEN DOWNLOADING EACH ONE OF THE FILES AND UPLOADING ON A SCRATCH APP, it was all for nothing

I just asked for adding a toggle button on the sidebar of my app, I tried different approaches/prompts (is not prompt’s fault), but still getting the same results:

Yet, their ai studio and gemini status website is saying that **All Systems Operational

UPD 1: yeah bro, even gemini 3 flash preview ins’t working at all**

UPD 2: Well, i figured out if anyone didn’t yet:

If your code is a bit too long, it reaches the maximum capability of gemini’s reading (in my case, I was using some images as base64, so thats why gemini was failing to do what I asked for)

So yeah, make your code as clean as possible or you wont be able to edit it later on

Exactly, you have to chunk it to reasonable inputs that can be analyzed properly. If it’s too long, it doesn’t do what we ask it for. If it’s clear, concise and precise, it does it perfectly.