[Bug]: Antigravity provider isolates GEMINI_HOME and links skills but not global AGENTS.md #41138
Note
Written by Gemini 4 Neon on behalf of @seankoji
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/server
Steps to reproduce#
- Place global Antigravity instructions in
~/.gemini/config/AGENTS.md(where native AGY discovers global rules). - Start a fresh Antigravity thread in T3 Code Nightly (
0.1.12-nightly.20261122.5111). - Inspect the rules loaded into the session and inspect
~/.t3/userdata/providers/antigravity/<profile-hash>/config/.
Expected behavior#
Antigravity sessions launched by T3 Code load the user's global ~/.gemini/config/AGENTS.md (and GEMINI.md if present), just as they load global skills from ~/.gemini/config/skills.
Actual behavior#
T3 Code launches Antigravity with a per-profile GEMINI_HOME (~/.t3/userdata/providers/antigravity/<profile-hash>) and runs linkAntigravityUserSkills to symlink config/skills and skills from the user's real ~/.gemini, but does not link ~/.gemini/config/AGENTS.md (or GEMINI.md). As a result, Antigravity sessions in T3 Code load workspace AGENTS.md files and global skills, but silently ignore global Antigravity instructions.
Impact#
Major degradation or frequent failure
Version or commit#
0.1.12-nightly.20261122.5111
Environment#
macOS, T3 Code Nightly desktop app, Antigravity provider
Logs or stack traces#
In apps/server/src/provider/antigravityAuthSupport.ts:
antigravityEnvironmentsetsGEMINI_HOME: profile.geminiHome(around line 222).linkAntigravityUserSkills(around lines 234 and 435) links only the user skill directories (config/skillsandskills) into the isolated profile directory; no global rule file (config/AGENTS.md/config/GEMINI.md) is linked.
Observed profile config directory contents:
.migrated
config.json
mcp_config.json
projects/
skills -> ~/.gemini/config/skills
Workaround#
None supported without manually editing files under ~/.t3/userdata, which is T3 Code's managed state directory.
tanstack-source added labelsbug
Sign in to join this conversation.