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:
- 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?
- Is there any way to recover a lost chat session to regain those “Restore” points?
- 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 !!!
1 Like
This is exactly where I am at. I am not sure I understand the point in having a version history, that displays changed code every “x interval”, the ability to select it and hit restore to that version, when it seems to just fail completely. I did a little work today, encountered a new bug (which was not present yesterday) so I try to restore to the version from last night (13 hours ago) which correctly seems to show which files had been altered. Yet, when I select that version and restore, the new bug introduced an hour ago, remains, and exists in one of the files that should have been restored from 13 hours ago. If it were a single file, that would be one thing, but to manually have to revert 15-20 files throughout the folder structure seems like a huge PITA. I have to think I am doing something wrong.
1 Like
Hello
Welcome to the forum!!
I completely understand your frustration—manually reverting that many files its very hard.
I wanted to suggest a workaround that might save you some time: Try checking the project’s Google Drive folder directly
If you open the ‘Activity’ tab there (click the ⓘ info icon), you can see a stream of exactly which files were modified recently. That allows you to target just those specific files and use ‘Manage versions’ to roll them back. It’s still a hassle, but much faster than blindly checking lot of files manually!
1 Like