I’ve been working on a dashboard project over the last few days and more and more often, it seems that it will just overwrite the index.html file with garbage code (or code that was supposed to go elsewhere) every few changes. It’s happened about 5 times today over the course of a workday. Then it says: “I apologize for the error. It seems the file was overwritten with just the JavaScript snippet.”
Then, I tell it that it messed up and it goes and rebuilds the entire index.html file over the next few minutes.
Any suggestions on how to get this to stop happening? Is the project getting too large?
Hello @mdelfs
Apologies for the late response on this.
We are looking into this behavior where the index.html gets overwritten unexpectedly. To help us debug this effectively, could you please share the specific prompt where this occurred?
Additionally, could you confirm which specific model you were using when you encountered this issue?
No, there was never just “one prompt”…It was literally any small change I wanted to make over and over. However, in GAIS defense, I also didn’t really understand that one should make a modular project (lots of individual files) instead of one HUGE and LONG index file–GAIS didn’t suggest this or start this way, so I had to learn the hard way. Now, I tell it explicitly to build the projects in modules so it only has to write a little bit here and there and not constantly rewrite the entire main index file. I would have been on Gemini 3 pro preview if I remember. I actually went back and rebuilt this one project from scratch, telling it to modularize it and it hasn’t done any of the index overwriting since (since the index is very small now). I also use ChatGPT to build prompts for GAIS to explain in detail what I’m trying to ask it and that is a huge help.