Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Antigravity Conversation Fix-v1.06

Your Antigravity conversation history disappeared? Conversations showing in the wrong order? Titles replaced with placeholder text? Workspace assignments lost? This tool fixes all of that.

⚡ Quick Start (Windows)

  1. Close Antigravity completely (File → Exit or kill from Task Manager)
  2. Download Antigravity_Conversation_Fix.exe from the Releases page
  3. Double-click the run.bat file. and click on run.
  4. The tool scans your conversations, rebuilds the index, and shows you the results
  5. When prompted for workspace assignment, choose an option:
    • Press Enter or 1 — auto-assigns workspaces from your brain files (recommended)
    • Press 2 — auto-assigns first, then lets you manually assign any remaining conversations
  6. Restart your PC, then open Antigravity — your conversations are back, sorted by date

No Python or developer tools required. Just download, run, done.

What It Fixes

Problem Fixed?
Conversations missing from sidebar
Conversations in wrong order ✅ Sorted newest first
Placeholder titles instead of real names ✅ Restores from brain artifacts
Titles lost after previous fix attempts ✅ Preserves existing titles
Workspace assignments stripped on rebuild ✅ Preserves workspace metadata (v1.01+)
Lost workspace assignments (v1.0 damage) ✅ Auto-recovers from brain artifacts (v1.03+)
Missing timestamps causing wrong sort ✅ Injects timestamps from file dates (v1.03+)
Remote workspaces (WSL/SSH/Docker) not recognized ✅ Full vscode-remote:// support (v1.04+)
"Antigravity IDE" renamed folder not detected ✅ Auto-detects both old and new paths (v1.05+)

How It Works

Antigravity stores conversation data in two places:

  • Conversation files (*.pb) — stored in your user profile
  • Sidebar index — a SQLite database in your app data folder
OS Conversations Database
Windows %USERPROFILE%\.gemini\antigravity\conversations\ %APPDATA%\Antigravity IDE\...\state.vscdb
macOS ~/.gemini/antigravity/conversations/ ~/Library/Application Support/Antigravity IDE/.../state.vscdb
Linux ~/.gemini/antigravity/conversations/ ~/.config/Antigravity IDE/.../state.vscdb

Note: The tool automatically detects both the old folder name (Antigravity / antigravity) and the new name (Antigravity IDE). No manual path changes needed.

When the index gets corrupted, conversations still exist on disk but don't show up in the sidebar. This tool scans your conversation files, sorts them by date, pulls titles from brain artifacts, and writes a clean index back to the database.

Title resolution priority:

  1. Titles already in the database (canonical Antigravity titles — preserved across re-runs)
  2. Brain artifact .md headings (for conversations not yet indexed)
  3. Fallback: Conversation (date) short-id

Output Legend

Marker Meaning
[+] Title extracted from brain artifact
[~] Title preserved from existing database
[?] Fallback title (no source available)
[WS] Workspace metadata preserved or recovered

Changelog

v1.06

  • New: Antigravity IDE process detection — updated process detection on Windows to check for both antigravity.exe and Antigravity IDE.exe, ensuring users are properly warned to close the IDE before starting the fix.
  • New: Full .db file support — added support for SQLite .db conversation files used by the latest version of Antigravity IDE, preventing "No conversations found on disk" errors.
  • Fix: Added fallback support for the py launcher in run.bat for Windows environments that do not have python mapped globally, and resolved console encoding bugs.

v1.05

  • New: Antigravity IDE path support — automatically detects both the old (Antigravity) and new (Antigravity IDE) folder names across Windows, macOS, and Linux. No manual configuration needed — the tool finds whichever version you have installed.
  • New: Smarter workspace matching — uses Antigravity's own workspaceStorage data to accurately match conversations to workspaces, instead of relying solely on path-depth heuristics. Falls back to the old method if no workspace storage data is found.
  • Fix: Title resolution now correctly preserves canonical Antigravity titles from the database, only using brain artifact headings for conversations that have no existing title.

v1.04

  • New: Remote workspace support — now correctly handles vscode-remote:// URIs for WSL, SSH, and Docker workspaces. Remote paths are detected during auto-assignment and accepted during manual assignment without local filesystem validation.

v1.03

  • New: Workspace auto-recovery — scans your brain artifact .md files for project paths and automatically re-assigns lost workspace mappings. If you ran v1.0 and lost your workspace assignments, this version can recover most of them automatically.
  • New: Workspace assignment menu — choose between auto-assigning only (Option 1) or auto-assigning plus manual interactive prompts for any remaining unmapped conversations (Option 2). Supports batch assignment (all) for quick setup.
  • New: Timestamp injection — injects proper timestamps (created/updated) into conversations that are missing them, ensuring Antigravity sorts everything correctly by date.
  • Fix: Workspace URIs now properly URL-encode spaces and special characters (e.g. My ProjectMy%20Project).
  • Fix: Cross-platform process detection — Linux/macOS now properly checks if Antigravity is running.

v1.02

  • New: Cross-platform support — the Python script now works on macOS and Linux in addition to Windows. The .exe remains Windows-only.

v1.01

  • Fix: Workspace assignments are now preserved when rebuilding the index. Previously, running the tool would strip conversations from their assigned workspace.
  • Note: If you ran v1.0 and lost workspace assignments, those must be manually re-assigned inside Antigravity. v1.01 prevents this from happening on future runs.

v1.0

  • Initial release — restores missing conversations, sorts by date, fixes titles.

Advanced: Run from Source (Mac / Linux / Windows)

If you prefer running the Python script directly, or if you are on Mac or Linux (which cannot run .exe files):

python rebuild_conversations.py

Requires Python 3.7+ with no external packages. The script automatically detects your operating system and finds the correct folders (both old and new naming conventions).

WSL Users

If your conversations are stored inside WSL but Antigravity runs on Windows, copy your files to the Windows profile first:

  1. Copy \\wsl.localhost\<distro>\home\<user>\.gemini\antigravity\conversations\*.pb%USERPROFILE%\.gemini\antigravity\conversations\
  2. Copy \\wsl.localhost\<distro>\home\<user>\.gemini\antigravity\brain\%USERPROFILE%\.gemini\antigravity\brain\
  3. Run the fix tool as normal on Windows

The vscode-remote:// workspace detection will still work correctly for your WSL workspaces.

Safety

  • Automatic backup — your current index is saved to trajectorySummaries_backup.txt before any changes
  • Non-destructive — conversation files (*.pb) are never modified, only the sidebar index is rebuilt
  • Metadata-preserving — workspace assignments, timestamps, and other internal state are retained (v1.01+)
  • Idempotent — safe to run multiple times

⚠️ Antivirus false positive: The .exe may be flagged only by 2 out of 72 engines on VirusTotal — both low-tier (SecureAge, Bkav). This is a known PyInstaller false positive: the bundler extracts Python to a temp folder at runtime, which triggers generic heuristic rules. All major engines (Windows Defender, Kaspersky, ESET, Bitdefender, Norton, etc.) pass it as clean. The source code is fully open — review it yourself if in doubt, or simply use the .py version.

FAQ

Q: Do I really need to restart my PC? A: A full restart is the safest way to ensure Antigravity picks up the changes. In most cases, simply closing and reopening Antigravity works too.

Q: Why do some titles show as "Conversation (Mar 10) abc12345"? A: Those conversations don't have brain artifacts, and their original titles weren't in the database. Future re-runs will preserve any titles the app generates going forward.

Q: Can I run this while Antigravity is open? A: The tool will detect if Antigravity is running and warn you. It's recommended to close it first so the app doesn't overwrite your fix when it exits.

Q: I ran v1.0 and my workspace chats were removed. Can I get them back? A: Yes! v1.03+ can auto-recover most workspace assignments by scanning your brain artifact files. When prompted, press Enter or 1 for auto-assignment. If some conversations can't be auto-detected, choose option 2 to manually assign them.

Q: I use WSL / SSH / Docker remote workspaces. Will this work? A: Yes! v1.04+ fully supports vscode-remote:// URIs. The tool auto-detects remote workspace paths from your brain artifacts and accepts them during manual assignment.

Q: I updated Antigravity and the folder changed from "Antigravity" to "Antigravity IDE". Will the tool still work? A: Yes! v1.05+ automatically detects both folder names and uses whichever one exists on your system.

License

MIT — free to use, share, and modify.


⭐ If this fixed your conversations, please star the repo so others can find it!

About

Fixes missing and unordered conversation history in Google Antigravity

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages