Lost ability to "Restore" previous code versions after page refresh due to chat history loss

Hello,

I am using the iterative chat feature in AI Studio where the model suggests code changes. A crucial feature is the ability to click the “Restore” button next to any of the model’s previous messages in the chat. This button reverts the code in the editor to the exact state it was in at that specific point in the conversation, allowing for easy branching and exploration of different solutions.

However, I have encountered a major issue: if I refresh the page, the entire chat history is cleared. This means I permanently lose access to all those “Restore” points. The cloud save only preserves the very last state of the code editor, but not the interactive history of the conversation that allows me to travel back to previous states.

This is problematic because during a long development session, I might have explored dozens of paths. A page refresh (either accidental or due to a browser issue) effectively destroys my entire workflow history and forces me to start the conversation from scratch if I want to try a different approach.

My questions are:

  1. Is this chat-based version history persisted anywhere? For example, is it tied to the browser’s session storage and therefore inherently lost on refresh?
  2. Is there any way to recover a lost chat session to regain those “Restore” points?
  3. If this is the current intended behavior, are there any plans to implement a persistent chat history or a more traditional version control system that automatically snapshots these states?

This functionality is incredibly powerful, and losing it on a refresh feels like a critical limitation. Thank you for any insight you can provide.

1 Like

@Dis-cord ,

welcome to the community,

Thanks for bringing this to us, as of now you can only save the latest copy like you mentioned,

For code changes with versioning you cloud use “build” feature in ai studio this will enable you to revert back to old changes.

Ironcily, I have a big (HUGE) bug with this exact situation.

I did used the “build” feature to build this app, and today i did some changes. small ones.
At some point it created some huge bug which crushed the entire app so I tried to restore to an old version - BUT THE SAME BUG IS STILL HAPPENING, which is insane!
I keep trying to restore to olded checkpoints, and each time it keeps refusing to upload the app.
An app which worked perfectly fine!

Hello guys I managed to get a working version from google drive . Apparently Google AI studio creates a drive folder on your account and you can go to the files there on right click see there versions and i downloaded it and replace the on on drive , and it worked !!!