Skip to content

feat(antigravity): add support for Antigravity IDE storage on Windows#612

Open
Battiatus wants to merge 1 commit into
getagentseal:mainfrom
Battiatus:feat/antigravity-ide-timestamps
Open

feat(antigravity): add support for Antigravity IDE storage on Windows#612
Battiatus wants to merge 1 commit into
getagentseal:mainfrom
Battiatus:feat/antigravity-ide-timestamps

Conversation

@Battiatus

@Battiatus Battiatus commented Jul 3, 2026

Copy link
Copy Markdown

Summary

  • Adds support for detecting Antigravity IDE usage on Windows from VSCode-style storage
  • Extends provider to scan %APPDATA%\Antigravity IDE\User\globalStorage\state.vscdb
  • Improves path classification to distinguish IDE vs CLI sessions
  • Handles missing per-call timestamps by using file mtime as fallback source

Resolves: CodeBurn reporting zero usage when Antigravity IDE is actively used

Issue id: #411 (comment)

Changes

  • antigravity.ts: Add APPDATA IDE storage root; refine antigravityAppDataDirFromSourcePath() to classify IDE dirs; add stampFallbackTimestamp() helper for missing timestamps across all emission paths; bump CACHE_VERSION to 4
  • session-cache.ts: Update parser fingerprint to worktree-project-grouping-v5
  • main.ts: Clarify CLI install message that IDE sessions are auto-detected
  • docs: Clarify that state.vscdb stores trajectory metadata only
  • tests: Add helper withTempAntigravityHome(); add coverage for IDE path detection and timestamp fallback

Test Plan

  • All 27 antigravity provider tests pass
  • TypeScript compilation clean (tsc)
  • Manual: Run `npx tsx src/cli.ts` today with Antigravity IDE usage and verify sessions are detected without --provider flag
  • Manual: Run `npx tsx src/cli.ts` a second time and verify cache hit (no reparse)

CodeBurn previously only detected Antigravity CLI usage (.pb files under
.gemini/antigravity/). Antigravity IDE on Windows stores session state in
VSCode-style storage at %APPDATA%\Antigravity IDE\User\globalStorage\state.vscdb,
which was not detected.

Add support for reading Antigravity IDE sessions from the VSCode-style storage:
- Extend CONVERSATION_ROOTS to include APPDATA Antigravity IDE path
- Refine path classification to properly identify IDE vs CLI sessions
- Handle missing per-call timestamps by stamping file mtime as fallback
- Bump CACHE_VERSION to 4 for cache invalidation

Fixes: CodeBurn reports zero usage when Antigravity IDE is actively used.
@Battiatus Battiatus marked this pull request as draft July 3, 2026 13:45
@Battiatus Battiatus marked this pull request as ready for review July 3, 2026 13:47
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