Occasionally, AI Studio will generate code with a flaw, so the application won’t run. I noticed that this tends to happen when it fails to completely generate a source file. It gets marked with a grey ‘X’ yet the AI continues to try and start the app. And sometimes, it shows no failed files, yet still crashes for whatever reason. This happens, but that’s fine as I then get the option to fix the code.
I would prefer to see a “Redo” option instead, where the AI returns to the previous checkpoint and tries the last prompt again. Why? Because this fix tends to make things worse, occasionally. Because there’s some damaged source files, it just does whatever it thinks is best. Thus, my user interface with many buttons and options and a dropzone suddenly becomes a simple page without the dropzone. It tries to keep the logic that it knows it should have, but at that moment the app is damaged beyond repair. (Which is why a ‘Redo’ is better!)
This is easy to fix as I just do the redo manually. Scroll up to the previous checkpoint, restore it and repeat the prompt. This gives much better results.
So, can we have a “Redo” option?