Skip to content

feat(antigravity): track the desktop app's conversations alongside the CLI - #2

Open
pablovns wants to merge 1 commit into
pepperonas:mainfrom
pablovns:feat/antigravity-app-conversations
Open

pablovns wants to merge 1 commit into
pepperonas:mainfrom
pablovns:feat/antigravity-app-conversations

Conversation

@pablovns

Copy link
Copy Markdown

The Antigravity desktop app writes the same conversation format as the CLI, but under ~/.gemini/antigravity/ instead of ~/.gemini/antigravity-cli/. Only the CLI directory was read, so app sessions never showed up in the dashboard.

Changes

  • lib/config.js: new ANTIGRAVITY_CONVERSATIONS_DIRS listing both dirs (antigravity-cli + antigravity); still a single dir when ANTIGRAVITY_DIR is set explicitly.
  • lib/antigravity-parser.js: findAntigravityConversationFiles accepts one dir or a list; parseAllAntigravity loads each dir's own conversation_summaries.db so project names stay correct per source.
  • lib/watcher.js: watches every existing Antigravity conversations dir and resolves the summaries db from the file path.
  • test/antigravity-parser.test.js: new test with two dirs, one conversation each, asserting both are found and attributed to their own project.

No new dependencies, no schema change, no UI change — both sources stay under the existing antigravity provider, since they share the same account, quota and price table.

Verification

  • npx vitest run test/antigravity-parser.test.js — 5 passed
  • Full suite: 830 passed (the pre-existing test/badges.test.js reproducibility case fails locally because the checkout is dirty; unrelated)
  • npm run lint — 0 errors
  • Manually verified against a real install: app conversations are parsed and appear in today's activity

…e CLI

The Antigravity desktop app keeps the same conversation format as the CLI
but under `~/.gemini/antigravity/` instead of `~/.gemini/antigravity-cli/`.
Only the CLI directory was read, so app sessions were missing from the
dashboard.

- config: `ANTIGRAVITY_CONVERSATIONS_DIRS` lists both dirs (still a single
  dir when `ANTIGRAVITY_DIR` is set explicitly)
- parser: scan all dirs and load each one's `conversation_summaries.db`, so
  project names stay correct per source
- watcher: watch both dirs and resolve the summaries db from the file path
- test: two dirs, two conversations, each with its own summaries db
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