Skip to content

fix(sources): point the antigravity runtime root at ~/.gemini/antigravity - #3479

Merged
Sinity merged 1 commit into
masterfrom
fix/sources/antigravity-runtime-root
Jul 31, 2026
Merged

Sinity merged 1 commit into
masterfrom
fix/sources/antigravity-runtime-root

Conversation

@Sinity

@Sinity Sinity commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Summary

44 real Antigravity conversations have never been acquired. The discovery logic to acquire them landed in #3441 and could never fire, because Source.runtime_root points at a directory that does not contain the data.

Problem

The archive holds 116 antigravity-session rows, all of them *.md.metadata.json sidecars materialising as one-message sessions. Meanwhile ~/.gemini/antigravity/conversations/ holds 44 .pb files — the actual conversations — totalling 345 MB, none of it acquired. The origin is inverted: metadata archived, conversations dropped.

PR #3441 fixed the discovery path to ground on conversations/*.pb (sources/source_parsing.py:73). That fix is correct and has never executed, because:

Source.runtime_root = "~/.antigravity"      ← 4 KB, one `extensions` dir, 0 .pb files
actual data          ~/.gemini/antigravity  ← 345 MB, conversations/ with 44 .pb

Every acquired sidecar row's source_path already points under ~/.gemini/antigravity/brain/…, so the correct root was observable in the archive's own data the whole time.

Solution

Corrects runtime_root, with the evidence recorded inline at the declaration.

Also updates tests/unit/core/test_sources.py, which asserted the literal "~/.antigravity". That test pinned the bug rather than a contract — the enclosing test is test_runtime_root_present_for_local_session_sources, whose intent is that local session sources have a root, not that antigravity's is any particular string.

Verification

provider_to_source(ANTIGRAVITY).runtime_root  → ~/.gemini/antigravity
  exists: True
  conversations/: True, 44 .pb files

devtools test tests/unit/core/test_sources.py → 28 passed. devtools verify --quick → exit 0.

Note

This unblocks acquisition but does not perform it — the 44 conversations remain unacquired until an import runs against the corrected root. A rebuild does not recover them; they were never in source.db.

Ref polylogue-eo81.

…vity

Problem: 44 real Antigravity conversations (345 MB of conversations/*.pb) have
never been acquired, while the archive holds 116 antigravity-session rows that
are all *.md.metadata.json sidecars materialising as one-message sessions --
the origin is inverted.

PR #3441 fixed the discovery logic to ground on conversations/*.pb, but it
could never fire: Source.runtime_root declared ~/.antigravity, which exists
but contains only an 'extensions' directory (4 KB, zero .pb files). The real
data lives under ~/.gemini/antigravity, which is where every acquired sidecar
row's source_path already points.

What changed: runtime_root corrected, with the evidence recorded inline. The
test expectation that pinned the wrong literal is updated -- it asserted the
bug rather than a contract.

Verification: provider_to_source(ANTIGRAVITY).runtime_root now resolves to a
directory containing conversations/ with 44 .pb files; tests/unit/core/
test_sources.py 28 passed; devtools verify --quick exit 0.

Ref polylogue-eo81.

Co-Authored-By: Claude Opus 5 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Sinity, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 54 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 651477e8-431d-4c54-9d5c-8a987737e248

📥 Commits

Reviewing files that changed from the base of the PR and between fb971d4 and a92fea2.

📒 Files selected for processing (2)
  • polylogue/core/sources.py
  • tests/unit/core/test_sources.py

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Sinity
Sinity merged commit 90101ba into master Jul 31, 2026
3 checks passed
@Sinity
Sinity deleted the fix/sources/antigravity-runtime-root branch July 31, 2026 16:56
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