Restore button disappeared in AI Prototyper after using /clear — how to bring it back?

Hi everyone,

I’m using Firebase Studio AI Prototyper and usually I see a Restore button after making changes. Today, I cleared my chat using /clear because there were too many messages.

Now, after making new changes, I don’t see the Restore button anymore, so I can’t go back to the previous state.

  • Is this expected behavior after using /clear?

  • Is there a way to restore previous changes or enable the Restore button again?

  • Any suggestions for keeping a “restore history” in AI Prototyper for future changes?

Thanks in advance for your help!

the following screenshots are from my other projects that has the restore button. they show the current files and even the time.


Hello. I having the same problem here. Did you found the answer and the fix for this problem?

Hi, Same issue from today.

I did notice that when in code mode the rollback is not there. Going back to prototype mode I then see it again.

1 Like

the problem appear at prototype, the restore button disapeared. Not only at editor code mode

Problem solved. Unfortunately, I couldn’t find the root cause of the problem that caused the ‘restore’ button in Prototype to become enabled again. Analyzing the changes made by the AI ​​assistant itself, I found modifications to the definitions in the next.conf files and commit commands. Before these changes, the button appeared normally. In my case, although it meant dozens of modifications and improvements, simply clicking the second-to-last button still active in Prototype restored all functionality. I recommend paying close attention to each modification so as not to miss the moment when the restore button and its respective commits become disabled.

[SOLUTION] “Restore” Button Disappearing? The Cause Might Be a Hidden Build Error.

Hello, community!

I wanted to share my experience solving a frustrating issue in Firebase Studio: the “Restore changes” button was disappearing, which prevented us from reverting files to the last committed state.

After a lot of debugging with AI assistance, we discovered that the missing button wasn’t the actual bug, but a symptom of an unstable build environment in Firebase Studio. The system was detecting a subtle compilation or configuration error it couldn’t display clearly, and as a side effect, it would break the editor’s UI.

In our specific case, the problem was caused by incorrect syntax in our Genkit API route definitions located in src/app/api/.

The General Solution (How to Diagnose):

If you’re facing this problem, the cause is likely in a configuration file or a file with a 'use server' directive that has a subtle error. Follow these steps:

  1. Ignore the Button, Focus on the Build: Your top priority is to be able to run the command npm run build or next build locally in your terminal without any errors. Any failure in this process is the likely cause of the instability in Firebase Studio.

  2. Check Critical Configuration Files: Carefully inspect the following files, comparing them against a known-good version or the standard templates for Next.js and the libraries you’re using:

    • package.json: Ensure all dependencies (especially @types/...) are present.

    • next.config.ts: A syntax error here is a common cause of build failures.

    • tsconfig.json: Make sure the include directive is correct (e.g., "**/*.ts", "**/*.tsx"), allowing TypeScript to analyze all relevant project files, not just those inside /src.

  3. Inspect Server Actions and API Routes: Check all files containing the 'use server' directive or defining API routes. In our case, the issue was an incorrect call to Genkit’s appRoute function. The syntax had changed between versions, and we were using one that was incompatible.

Example of Our Error (Genkit):

  • Incorrect (and caused the problem): export const POST = appRoute(myAIFlow);

  • Correct (for our version): export const POST = appRoute({ flow: myAIFlow });

A small mistake like this was enough to destabilize the entire editor environment.

I hope this line of reasoning helps others diagnose and solve this frustrating problem. The key is to focus on getting a clean build and validating all project configurations.