Give us a "Redo"! "Fix it" tends to break things

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?

2 Likes

Hi @Katje ,

Thank you for your feedback. We appreciate you taking the time to share your thoughts with us, and we’ll be filing a feature request.

2 Likes

Excellent idea, fully support it. :light_bulb:

1 Like

Related to this is the error: Uncaught SyntaxError: The requested module ‘@/App’ does not provide an export named ‘App’

This is one of the errors that occur when the AI is actually damaging the code. Most likely it generated incomplete code or failed to write all the data to the file. The App.tsx file is quite vulnerable for this and when it happens, part of the controls in my app might fail to work or be misaligned with the wrong methods. This isn’t always detected in time and then it takes some time to tell the AI to restore things again. And with every request to AI Studio, there’s a chance that the AI decides to do more than I asked for. I’ve had situations where the AI would totally rearrange a dialog screen or some of the data it needs. In other words, the AI tends to do more than the prompt asks for.