Skip to content

feat(adapters): index antigravity desktop sessions - #362

Merged
samzong merged 2 commits into
mainfrom
feat/desktop-session-indexing
Nov 19, 2026
Merged

samzong merged 2 commits into
mainfrom
feat/desktop-session-indexing

Conversation

@samzong

@samzong samzong commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Result

Index Antigravity desktop transcripts from ~/.gemini/antigravity/brain/ as source antigravity (AGYD).
CLI sessions keep source antigravity-cli (AGY) and their existing commands.
Desktop sessions share the transcript parser, support file events, and have no resume or start command.
Project paths come from the first local workspace URI in the read-only conversation_summaries.db.
Missing or unreadable databases leave transcripts available to global search without project paths.

A separate source prevents desktop session IDs from invoking the CLI resume command or colliding with CLI records.
Scanning both directories as antigravity-cli is shorter, but gives desktop sessions the wrong command capabilities.
The existing adapter tests move into a test module to satisfy the local file-size gate.
The publish CLI test harness uses Cargo's binary path instead of guessing the build layout; this fixes the required CI gate on Rust 1.100 without changing extension behavior.

Test evidence

Recall 0.7.0 debug build on macOS, Darwin 27.2.0 arm64. cargo-audit 0.22.2.
All CLI checks used isolated HOME directories and snapshots of real local transcripts.

  • Before: the base build rejects sync --source antigravity --project all with exit 1, unknown source: antigravity.
  • After: desktop sync exits 0 and indexes 47 sessions with 407 messages. CLI sync still indexes 122 real sessions.
  • The selected desktop session returns every user and assistant message exactly as parsed from its transcript.
  • Project filtering, message search, file events, unchanged sync, and forced sync pass through the CLI.
  • Missing databases, corrupt databases, absent roots, and identical native UUIDs in the two sources pass isolated checks.
  • The external database hash stays unchanged. Desktop resume returns an unsupported-action error.
  • make check passes: audit, formatting, workspace Clippy with bench, and workspace tests.
  • pre-ship check --json passes. Independent security probes pass for SQL and shell metacharacters, tool payload separation, and read-only database data.

Ordinary sync also refreshes a desktop project path when its workspace mapping becomes available or changes while the transcript stays unchanged. The missing-metadata recovery probe failed before the correction and passed after it.

The first CI run failed because four existing publish CLI tests could not find the binary in Rust 1.100's build layout. The harness now uses CARGO_BIN_EXE_recall-publish; its four CLI checks also pass when the test executable is copied outside the build directory. The optional redaction E2E check was not enabled.

Unverified

Live desktop writes during a scan, the TUI rendering, and semantic search quality were not exercised.
Desktop resume and usage are not implemented. No release or installation was performed.
SQLite can create a WAL shared-memory coordination file during a read-only connection.
The database file and existing WAL data remain unchanged in the tested cases.

Signed-off-by: samzong <samzong.lu@gmail.com>
Signed-off-by: samzong <samzong.lu@gmail.com>
@samzong
samzong marked this pull request as ready for review November 19, 2026 15:09
@samzong
samzong merged commit acffa61 into main Nov 19, 2026
10 checks passed
@samzong
samzong deleted the feat/desktop-session-indexing branch November 19, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant