[BUG] Chat history lost after Antigravity update - ChatSessionStore index reset to empty

I found the solution for everyone!! :blush:

Problem: So the problem was, every time we reopen the Antigravity, the past history is gone. Even the new chats are gone. No history saving at all, as it looks like.

Solution: It’s related to the workspace configuration file/path, so the solution is simple. Follow these steps,

1. Open the Google Antigravity editor (Login if you aren’t already).
2. Click on the “Open Agent Manager”. Then you will see “+ Open Workspace” button below workspace.json under Workspaces on the left panel.
3. Click “+ Open Workspace” and click “Open New Workspace” row on the appeared menu.

4. You will be asked to select the project folder, so go ahead.
5. Then on the left panel named Workspaces, you will see the whole Past History in a few seconds loading 1 by 1 (Make sure internet is fine).

6. Now you must click the Close button of the main editor (Not Agent Manager). Then you will be asked to save the configuration to a location on your device, so do it (I saved mine to Documents). Make sure the Agent Manager windows is still open.
7. Now there are 3 dots at the end of the project name under the Workspaces side panel. Click 3 dots and click Focus Editor. Boom you will see the Past History.

8. Congratulations… Now you can see the Past History loaded on the editor.

The idea of the problem I realized.

The problem might be that the editor can’t get the configuration file location or the file is somehow missing, renamed, or the editor is expecting something else, etc,. So creating a new workspace configuration and saving it to a location made it work. But this is temporary.

Since I exposed a solution, people who are smarter will be able to find a permonant solution by somehow,

  1. Saving the workspace file to the exact location editor expects it to be with the correct name.
  2. Any other way.

Have a nice day guys!! :blush:

thank you, it helps! but how to restore conversation date? it’s seems random & confusing with many chats

My past conversations are back. Thx a lot ! I would have thought that saving a conversation history would be a fairly simple feature to implement. The fact that it apparently isn’t leaves me a bit puzzled. It doesn’t really reassure me about the future.

thank you so much man, i tried so may things and THIS WORKS

Since Google hasn’t addressed this yet, I’ve created a simple fix and a GitHub page for it. To use it, just close Antigravity, run the file, and restart. It will restore your conversation history safely. The project is safe and open-source, so you can see exactly how it works under the hood. If it helps you out, please leave a star! Cheers

you’re a life saver dude! All these other solutions did absolutely nothing, but this deserves all the kudos <3

Glad to hear that man! I think with the new update they fixed it

Thanks! I’m on WSL2, although it does not correctly link new conversations to the history (if I create a new one, I have to rerun the scripts for the app to pick em up), but once they are picked up I can go back to them whenever I want, it’s a life saver! The only solution that actually works

Works for me !!! thanks Dude

I think this is one of the most critical issues, but does G have no intention of fixing it?:thinking:

IT PISSES ME OFF THAT THE SOLUTION DOES NOT WORK FOR ME, I LEFT ANTIGRAVITY WORKING WHILE WORKED ON SOMETHING ELSE THEN BOOM A BLACK OUT, IT TOOK 2 MINUTES THEEN CAME BACK, ONCE I OPENED ANTIGRAVITY I FREAKING LOST EVERYTHING I DID THE LAST 2 DAYS, WHAT I ESPECIALLY HATE IS THE FACT THAT I DON’T KNOW WHO TO BLAME, GOOGLE FOR THEIR PRODUCT OR THE ELECTRIC COMPANY FOR THAT BRIEF BLACK OUT, I COULDVE SLEPT IT OUT IF IT DIDN’T COMEBACK IMMEDIATELY, IT’S LIKE THEY SWITCHED IT OFF TO MESS WITH ME.

NOW MY WORK IS LITERALLY BROKEN BECAUSE i CAN’T UNDO NOR CONTINUE THE CONVERSATION BECAUSE IT’S GONE, I HAVE TO MANUALLY CHANGE EVERYTHING AND EVEN MAKE UP ANOTHER PROMPT JUST TO REPLICATE IT.

I just found a workaround.  This is Prompt based

# Antigravity History Recovery: Prompt-Based Troubleshooting Guide




This guide is designed for Antigravity users on `google.dev` who can see their conversation files (`.pb` files) on disk but find their sidebar history empty or missing. This usually happens when the **Workspace ID** changes (due to drive letter casing, path aliases, or opening subfolders).




Follow these **four prompts** in order to have Antigravity automatically diagnose and restore your missing history.




---




### **Prompt 1: The Discovery Phase**




_Copy and paste this as your first message to Antigravity:_




"I am missing some of my old conversation history in the sidebar, but I believe the files are still on my disk. Please identify my `conversations/` folder, count all `.pb` files, and list the IDs of the 5 most recently modified ones so I can verify they are still there."




---




### **Prompt 2: Workspace Mapping Diagnosis**




_Once the files are confirmed, use this prompt to find why they are 'missing':_




"Antigravity indexes history based on Workspace Path Hashes. Please scan my `AppData\Roaming\Antigravity\User\workspaceStorage` folder and list all unique folder paths found in `workspace.json` files. Identify if my current project is mapped to multiple Workspace IDs (e.g., due to 'C:/' vs 'c:/' drive letter casing)."




---




### **Prompt 3: The 'Hijack' Injection**




_To begin the restoration, manual action is required first. Create several "New Chat" slots in your sidebar, then use this prompt:_




"I have just created [X] new, empty chat slots in my sidebar to serve as restoration targets. Please identify these new slots (created in the last few minutes) and copy the content of my most recent 'missing' history files into them (from newest to oldest). Be sure to also migrate the corresponding data in the `brain/` folder for each ID."




---




### **Prompt 4: Final UI Refresh**




_After the injection, if titles are still showing as 'New Chat', use this final prompt:_




"The history files have been injected into my new slots, but some sidebar titles haven't updated yet. Provide the exact command to 'Reload Window' and confirm if any additional steps are needed to force the editor to re-read the titles from the `.pb` files."




---




### **Why this works**




1.  **Antigravity Context**: The AI agent has full access to your local filesystem and can "see" the raw history files that the UI is ignoring.

2.  **Bypassing Database Locks**: By injecting data into **active** slots instead of trying to edit the locked SQLite database (`state.vscdb`), we avoid permission errors and safely "re-parent" your old work to the current workspace.

3.  **Metadata Integrity**: By copying both the `.pb` (messages) and the `brain/` folder (AI context/KIs), your past work remains fully searchable and "aware" of the previous conversation's state.




---




[!TIP]

Always ensure you open the **Root Folder** of your project (not a subfolder) to maintain consistent Workspace IDs in the future.

What I DID was, I made an extension to automatically back up the conversation. I used antigravity to make it, took me a few minutes, and now I work worry free. It notifies me when a conversation disappears and yes it does disappear often, the ID changes way too much, that’s why the extension was quite helpful because it saves everything, because if it changes I still have a copy of the unchanged one, I can just reupload it to the file directory. I could have made it smarter by adding more features to maybe find what changed and merged them or replace the backup but im too lazy to do so.
as you can observe below, LIVE storage means what agy uses while backup is backup, somehow LIVE keeps losing data but the back up is present, its either older conversations are being auto deleted or as you’ve said, the id changes. it’s strange

that it changes tho, i mean, why?

@makyrugant care to share the extension?

sadly,

I stopped using it because conversations still disappear, antigravity keeps renaming the chat so even if you do have a copy,

you still will never actually find it.

the extension is useless

This is clearly NOT A BUG. Google trains their AIs with us and then vanishes the information on our end because, as everyone knows, data is never CLEARED; it is well saved on Google’s servers. Very SMART GOOGLE, VERY SMART. And if anyone here thinks it’s a bug, this “bug” is very smart because it selects very well what to “clear”.

I’m still dealing with the same ridiculous problem. It’s appalling that Google hasn’t lifted a finger to fix this! They’re perfectly capable of happily taking money from our credit cards, yet they’re doing absolutely nothing to fix this ridiculous glitch they created.

This is the truth about this “bug.” Well done, GOOGLE, WELL DONE :face_with_symbols_on_mouth:

I feel you. An ongoing simple stpd issue google can’t fix.

Every time this happens to me I go to this forum to complain about it and every time I do, a MODERATOR KEEPS DELETING MY COMMENTS