AI Studio App Builder BUG: Changes Not Reflected in App Preview/Code After Confirmation

Hello Google AI Studio Team,

I have been experiencing a persistent issue with the app builder functionality for several days now. The AI consistently confirms that it has applied changes, but these changes are never reflected in the app’s preview or in the underlying code.


### :memo: Detailed Steps and Issue

  1. Requesting Changes (e.g., Deletions):

    • I instruct the AI to delete specific pages from my application, often by sending screenshots or images with clear instructions.

    • AI Confirmation: The model confirms in the chat (e.g., “The pages have been successfully removed,” or “The necessary deletions have been made”).

    • Result: The pages remain visible in the app preview and are not actually deleted from the application structure.

  2. Requesting New Pages/Features (e.g., Creations):

    • I request the AI to create new pages or implement new features in the app.

    • AI Confirmation: The model confirms creation (e.g., “The new page is now ready and added to the app”).

    • Result: The newly created pages or features do not appear in the app preview. When I re-query the AI about the status, it reconfirms that the pages are already created, but the app view remains unchanged.

The core issue is a critical discrepancy between the AI’s confirmation in the chat and the actual state of the application in the preview environment.

Thank you for looking into this.

1 Like

For now, i use prompt “Apply changes from your last message” to overcome this, but yea that need to be fixed.

2 Likes

Thank you so much for the quick reply and the helpful workaround!

That context is extremely valuable. I will definitely start using the prompt Apply changes from your last message to get my application updates reflected correctly in the meantime.

I agree this is a bug that needs an official fix, as the application view should automatically update once the AI confirms the action.

I appreciate you sharing your solution!

Hi @Yony_Roquel,

Welcome to the Google AI Forum! :confetti_ball: :confetti_ball:

Thanks for reporting this issue. I am escalating this to the concerned team.

Same bug

Description:
I am experiencing a persistent and critical bug where the AI assistant confirms it has made requested code changes, but the files in the project remain unchanged.

Steps to Reproduce:

  1. Open an application project in AI Studio’s “Build” mode.

  2. Ask the AI assistant to perform a specific code modification (e.g., “Delete the component named ‘Header’ from App.jsx” or “Change the background color of the ‘body’ to ‘blue’ in style.css”).

  3. The AI will respond in the chat, confirming the change was made (e.g., “Okay, I’ve removed the Header component,” or “Updated style.css.”).

Expected Behavior:
After the AI confirms the change, the corresponding file (App.jsx or style.css in the examples above) should be updated in the file editor, and the app preview should reflect this new change.

Actual Behavior:
The file in the editor remains completely unchanged. The app preview also shows no updates. The AI thinks it has completed the task and proceeds as if the change was successful, but no file modification actually occurred.

Impact:
This bug breaks the core “Build” workflow. It forces me to manually verify every single change the AI claims to make. My only workaround is to stop and ask the AI to “provide the full code for the file in the chat,” and then I have to manually copy and paste it, which defeats the purpose of the integrated environment. This is extremely frustrating and significantly slows down development.

1 Like

Hello Everyone,

A fix has been rolled out to improve this behavior, which should significantly reflect the changes in app Preview.
https://discuss.ai.google.dev/t/code-returned-in-chat-instead-of-modifying-files/110292/59

Could you please confirm if you are still facing this issue?