Skip to content

fix(antigravity): honor GEMINI_HOME for the global plugin root - #4914

Open
superbiche wants to merge 1 commit into
rtk-ai:developfrom
superbiche:fix/antigravity-honor-gemini-home
Open

superbiche wants to merge 1 commit into
rtk-ai:developfrom
superbiche:fix/antigravity-honor-gemini-home

Conversation

@superbiche

Copy link
Copy Markdown

Summary

  • Global Antigravity installation ignores GEMINI_HOME and writes to ~/.gemini/config/plugins/rtk even for relocated profiles.
  • Resolve GEMINI_HOME (empty/unset falls back to ~/.gemini) consistently for install, uninstall and configured detection. Project installs retain their project location.
  • Tests exercise relocation, empty-variable fallback, install/uninstall, shared hook detection and local isolation.

GEMINI_HOME is the variable Antigravity's launcher honours for relocated profiles.

Test plan

  • Regression test red before fix; relocation, empty fallback, install/uninstall, shared detection and project isolation pass.
  • Root/proxy formatting, strict Clippy and the full suite with two local exclusions pass.
  • Built binary compared with installed RTK 1.1.0 for relocated installation and uninstall.

Two environment-dependent tests were skipped locally; please rely on CI.


@superbiche · user · drafted with GPT 6.1 Sol and Claude Fable 5.1, reviewed before posting; the voice and decisions are mine.

Resolve install, uninstall and configured detection from GEMINI_HOME/config/plugins/rtk when GEMINI_HOME is nonempty. Previously all global paths used ~/.gemini/config/plugins/rtk; retain that fallback for unset or empty overrides.
@rtk-wshm-sync-bot rtk-wshm-sync-bot Bot added antigravity bug Something isn't working init labels Nov 1, 2026
@rtk-wshm-sync-bot

Copy link
Copy Markdown

wshm · Automated triage by AI

📊 Automated PR Analysis

🐛 Type bug-fix
🟢 Risk low

Summary

Fixes the global Antigravity plugin install/uninstall/detection logic to honor the GEMINI_HOME environment variable instead of hardcoding ~/.gemini, so relocated Gemini profiles are respected. Adds a shared helper (global_config_dir) that falls back to ~/.gemini when GEMINI_HOME is unset or empty, and updates install, uninstall, and is_configured to use it; project-scoped installs remain unaffected.

Review Checklist

  • Tests present
  • Breaking change
  • Docs updated

Analyzed automatically by wshm · This is an automated analysis, not a human review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

antigravity bug Something isn't working init

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant