Conversation history not loading — "trajectory not found" error (data confirmed intact on disk)

Hi team,

I’m running into an issue where one of my conversations no longer loads in the app, even though I’ve confirmed the underlying data is still present on disk. Details below.

Environment:

- OS: Windows

- Antigravity install path: AppData\Local\Programs\antigravity

- Trajectory ID: db54fc49-9e65-425a-b723-7a314b9e76..

Issue:

When I open the affected conversation or start a new message in it, I get the following error in the UI:

[unknown] trajectory not found: db54fc49-9e65-425a-b723-7a314b9e76..

The conversation no longer appears correctly in the sidebar/history.

Troubleshooting already completed:

1. Ran `git config --unset extensions.worktreeconfig` in the project directory — no change.

2. Checked main.log at %APPDATA%\Antigravity\logs — found an unrelated auto-updater error (sha512 checksum mismatch during a background update download), which I believe is a separate issue but flagging in case it’s connected.

3. Verified the trajectory folder still exists and contains data:

.gemini\antigravity\brain\db54fc49-9e65-425a-b723-7a314b9e76..

This folder contains populated .system_generated\messages and .system_generated\steps subfolders with hundreds of intact, non-empty JSON files, plus task/artifact files with recent timestamps. So the raw conversation data itself appears intact.

4. Based on this, it looks like the issue is with the sidebar index (likely state.vscdb under %APPDATA%\Antigravity\User\globalStorage\) being out of sync with the actual data in the brain folder, rather than the data being deleted.

What I’d like help with:

- Guidance on safely rebuilding or repairing the conversation index so this trajectory (and any others affected) shows up again in the sidebar

- Confirmation on whether it’s safe to reinstall Antigravity without losing the state.vscdb index, or whether that file needs to be handled separately during a reinstall

- Any official tooling or steps to resync the index against the brain folder

I’ve backed up state.vscdb before making any further changes, and I’m holding off on reinstalling until I hear back, since I understand that can sometimes wipe the very index needed for recovery.

i have this issue, i fixed this my exempting my folder from any backup syncs in the cloud. My google drive kept trying to sync my files causing it to write them constantly till my antigravity break mid convo everytime

I had the exact same issue and managed to recover all of my chat history.

In my case, the conversations weren’t actually gone. The old .pb conversation file and the matching brain folder were still in:

~/.gemini/antigravity/

It looks like Antigravity IDE hadn’t migrated them into:

~/.gemini/antigravity-ide/

What fixed it for me was:

  1. Close Antigravity IDE completely.
  2. Back up both .gemini/antigravity and .gemini/antigravity-ide.
  3. Copy the old conversation .pb file from:
    ~/.gemini/antigravity/conversations/
    to:
    ~/.gemini/antigravity-ide/conversations/
  4. Copy the matching folder from:
    ~/.gemini/antigravity/brain//
    to:
    ~/.gemini/antigravity-ide/brain/
  5. Reopen Antigravity IDE.

I didn’t rename anything or modify the files—I literally just copied them over, and my conversation immediately came back.

If you’re getting “Trajectory not found” and your old .pb file is still there, it’s definitely worth checking before assuming the conversation is lost.

I’ve made a tool to help you do it automatically.

I have had this a few times. I have found that creating a rule where all key decisions are recorded and all bugs and code changes reduces the impact when a a chat is lost l. Personally I think it is more effective because many times the agent forgets whats happened in the chat

Thank you I helped me