Antigravity fails to initialize on Windows when ~/.gemini skills folders don't exist (dangling skills junctions)
What happened
can't make antigravity integration work, even though it works standalone
I added the Antigravity provider and chose Google authentication. T3 Code shows Antigravity as authenticated, but then says it could not initialize, and the model list stays empty. The standalone agy CLI (1.4.10) works and is signed in to the same Google account, which has a Google AI Pro plan.
Diagnosis
On Windows, linkAntigravityUserSkills (apps/server/src/provider/antigravityAuthSupport.ts) always creates two junctions in the T3-owned Antigravity profile:
<profile>\config\skills→~\.gemini\config\skills<profile>\antigravity-cli\skills→~\.gemini\antigravity-cli\skills
It never checks that the targets exist. If the user has never created global Antigravity skills, both targets are missing, so the junctions dangle.
On session/new, the Antigravity harness tries to create <profile>\config\skills as a workspace folder. It finds the dangling reparse point, mkdir fails with ERROR_ALREADY_EXISTS, and the ACP server returns JSON-RPC -32603 Internal error. The real cause is in error.data.details, which T3 does not surface. The stderr handler also drops it, because it only looks for auth URLs.
Effects:
AntigravityDriver.refreshModelsfails with "Could not refresh Antigravity models. The previous model list is unchanged."AntigravityAuth.runSignInfails after OAuth succeeds, because sign-in also opens a session.
Authentication itself is fine. Driving the bundled agy_acp_server.exe by hand with the same profile and environment, authenticate returns the g1-pro-tier tier, and only session/new fails.
The standalone agy is unaffected because it uses ~\.gemini directly, with no junctions.
main has the same code as v0.1.5, so it is not fixed upstream yet. Possible fixes: create the target directories before linking, or skip the link when the target is missing. Separately, it would help to show error.data.details from ACP errors to the user.
Steps to reproduce
- On Windows, make sure
~\.gemini\config\skillsand~\.gemini\antigravity-cli\skillsdo not exist. This is the default when the user has no global skills. - In the T3 Code desktop app, add the Antigravity provider and sign in with a Google account.
- Sign-in reports authenticated, then initialization fails and no models are listed.
- Run
Get-Item -Force <profile>\config\skills: it is a Junction whose target does not exist.
Version
0.1.5 (desktop app, stable channel; bundled Antigravity ACP runtime 1.4.1)
Environment
Windows 11 x64 (10.0.26300), Node v26.12.1, standalone agy 1.4.10 (not used by T3), T3-managed agy_acp_server 1.4.1
Evidence
# session/new response from the bundled agy_acp_server.exe (profile hash shortened)
{"jsonrpc":"2.0","id":3,"error":{"code":-32603,"message":"Internal error","data":{"details":"Failed to initialize conversation at ws://localhost:60284/. Stderr: Failed to create agent: failed to create LocalAgent: failed to create agent executor opts: failed to create workspace folder \"file:///~/.t3/userdata/providers/antigravity/<hash>/config/skills\": mkdir ~/.t3/userdata/providers/antigravity/<hash>/config/skills: Cannot create a file when that file already exists.\n"}}}
# Junction state before the workaround
<profile>\config\skills | Junction | target=~\.gemini\config\skills | targetExists=False
<profile>\antigravity-cli\skills | Junction | target=~\.gemini\antigravity-cli\skills | targetExists=False
# server.trace.ndjson
AntigravityDriver.refreshModels Failure: ProviderDriverError: Provider driver 'antigravity' failed to create instance 'antigravity': Could not refresh Antigravity models. The previous model list is unchanged.
session/new Failure: Error: Internal error at AntigravityAuth.runSignIn
Related issues
#17508 (sign-in hides the real failure reason) is related to the "hidden error details" part, but it is about ineligible accounts and redirect URLs, not this junction bug. I found no existing issue about dangling skills junctions.
Fix applied or workaround
Creating the missing targets fixes it:
New-Item -ItemType Directory -Force "$env:USERPROFILE\.gemini\config\skills", "$env:USERPROFILE\.gemini\antigravity-cli\skills"
After this, session/new succeeds and returns the model list (Gemini 4 Argon, Gemini 3.8 Flash, Claude Opus 5.5, …).
Filed by
Claude Code (claude-opus-5-5) via t3 triage
Reproduced on another machine, same root cause.
-
Windows 10.0.26300, T3 Code (Beta) 0.1.5 desktop
-
Antigravity ACP runtime 1.4.1 (manual Binary path; managed install failed with EBUSY on rename, likely AV scanning)
-
Google AI Pro account;
authenticatesucceeds,session/newfails with:failed to create workspace folder ".../config/skills": mkdir ...: Cannot create a file when that file already exists.
Both <profile>\config\skills and <profile>\antigravity-cli\skills were junctions to non-existent targets under ~\.gemini.
Workaround confirmed: creating ~\.gemini\config\skills and ~\.gemini\antigravity-cli\skills fixes it; session/new then returns models.
Reproduced on another machine, with a different visible symptom. If Antigravity was already set up before the 1.4.1 runtime upgrade, the model list does not go empty. It silently stays stale.
Environment
- Windows 11 Pro (10.0.26200), T3 Code desktop 0.1.5, local server 0.1.5
- Antigravity ACP runtime 1.4.1 (managed install), Google sign-in (
oauth-personal) - The same T3 version and the same Google account (identical credential fingerprint) also run in a WSL2 (Ubuntu) backend, where everything works
What I saw
- Windows listed only flat 1.3.0-style Gemini IDs (
gemini-4-argon-low/medium/high,gemini-3.8-flash-low/medium/high) with no Claude or GPT-OSS models. The WSL backend listedgemini-4-argon,gemini-3.8-flash,claude-opus-5-5,claude-sonnet-5-5andgpt-oss-120b-mediumwith the Thinking Level option. - Refresh provider status on Windows showed no error. The server trace has
session/new→Internal error, thenAntigravityDriver.refreshModels→Could not refresh Antigravity models. The previous model list is unchanged. - So the cached list from the old runtime is kept indefinitely. Nothing in the UI tells you the refresh failed.
Root cause (same as this issue)
<profile>\config\skills Junction -> ~\.gemini\config\skills (target missing)
<profile>\antigravity-cli\skills Junction -> ~\.gemini\antigravity-cli\skills (target missing)
Workaround (confirmed)
New-Item -ItemType Directory -Force "$env:USERPROFILE\.gemini\config\skills", "$env:USERPROFILE\.gemini\antigravity-cli\skills"
Then Settings → Providers → Antigravity → Refresh provider status. The refresh succeeded and the full model list, including Claude and GPT-OSS, appeared.
A visible error when a model refresh fails would have made this much easier to spot. Right now a failed refresh looks the same as a successful one.
Investigated and drafted with Claude Code (Claude Opus 5.5) in a T3 Code triage session.
Confirming this on a third Windows machine, with the same root cause and the same workaround.
Environment
- Windows 11 Home 10.0.26200 (x64)
- T3 Code (Beta) 0.1.5 desktop, server 0.1.5
- Antigravity ACP runtime 1.4.1, managed install (
releaseId 5f5b7d0328df17c128b2be338d4567b0d24e56ace8196e88794fec37d1372554),oauth-personal - Standalone
agy1.4.10, signed in to the same Google account and listing models normally
State before the workaround
Both junctions in the T3-owned profile pointed at missing targets:
<profile>\config\skills Junction -> ~\.gemini\config\skills (target missing)
<profile>\antigravity-cli\skills Junction -> ~\.gemini\antigravity-cli\skills (target missing)
Driving the bundled agy_acp_server.exe directly with the same GEMINI_HOME, auth and temp-dir environment, initialize and authenticate both succeeded. session/new then returned:
{"jsonrpc":"2.0","id":3,"error":{"code":-32603,"message":"Internal error","data":{"details":"... failed to create workspace folder \"file:///.../config/skills\": mkdir .../config/skills: Cannot create a file when that file already exists.\n"}}}
T3 surfaces only Antigravity authenticated, but could not initialize a session or load models.; the useful text is in error.data.details and never reaches the UI.
Workaround (confirmed)
New-Item -ItemType Directory -Force "$env:USERPROFILE\.gemini\config\skills", "$env:USERPROFILE\.gemini\antigravity-cli\skills"
Then Settings → Providers → Antigravity → Refresh provider status. No runtime reinstall or re-auth was needed. Status went to ready / authenticated, and the model list populated (gemini-3.8-flash, claude-sonnet-4-6, claude-opus-4-6-thinking, gpt-oss-120b-medium). session/new succeeds once the junction targets exist.
Two additional notes:
- Removing/reinstalling the managed runtime does not help, because profile prep recreates the same dangling junctions.
- Surfacing
error.data.details(or logging non-auth lines from the ACP server's stderr) would have made this diagnosable from the UI instead of requiring a manual ACP session.
Fourth reproduction, still broken on the current Nightly — plus a partial-dangling variant
Adding only the information that is new; the root cause matches what is already established here.
1. Still reproduces on a build newer than 0.1.5
| T3 Code | Nightly 0.1.6-nightly.20261030.3917 (local server 0.1.6-nightly.20261030.3917) |
| Bundled Antigravity ACP runtime | 1.4.1, managed install (releaseId 5f5b7d03…2554) |
Standalone agy |
1.4.11 — unaffected, still lists models |
| OS | Windows 11 Pro 10.0.26300 x64 |
The reproductions so far in this thread are all on 0.1.5. This one is on the 30/10 Nightly, where #27153 is still open and unmerged, so the failure is expected to persist — flagging it so the fix is also verified against a build newer than 0.1.5.
2. Only one of the two junctions dangles here
On this machine the two junctions are not in the same state. One target is valid and one is missing:
<profile>\config\skills Junction -> <USER>\.gemini\config\skills target exists (1 skill)
<profile>\antigravity-cli\skills Junction -> <USER>\.gemini\antigravity-cli\skills target MISSING <-- dangling
So the fix has to validate each junction target independently rather than treating "both missing" as the only failing case. #27153 already does that (it checks the target per link and removes the stale link). #27160 additionally falls back to ~/.gemini/skills when the agy directories are empty; that fallback is not needed here, because ~/.gemini/config/skills exists and is non-empty.
3. Failure timeline taken from the shipped bundle
All timestamps are local time, from ~/.t3/userdata/logs/server.trace.ndjson:
15:36:20.545 AntigravityInstallation.completedRelease
15:36:20.641 makeAntigravityAcpRuntime
15:36:48 OAuth token written (sign-in itself succeeds)
15:36:48.248 session/new issued
15:36:51.275 session/new -> Failure: Error: Internal error (3026.8 ms)
15:36:51.504 removeAntigravitySessionFiles
initialize succeeds — agentInfo.name, agentInfo.version (1.4.1), protocolVersion and agentCapabilities.loadSession all validate — and only session/new fails, i.e. the agent process exits while creating the session. Across every rotated trace there are 26 consecutive session/new failures, from 29/10 22:04 to 30/10 15:36, each between 2.9 s and 5.9 s.
Clearing the runtime and reinstalling does not help: profile preparation recreates the same dangling junction on every agent launch, which matches the earlier report here.
4. Where the real reason is dropped in the shipped bundle
Two places in apps/server/dist/binCli-*.mjs explain why the UI only shows the generic message:
- The ACP peer returns an
Exitwhose cause is not a structuredFail(an unhandled agent crash), and that is rewritten tonew InternalError({ message: "Internal error" }), i.e. JSON-RPC-32603(~lines 339207-339218). - The agent's stderr handler keeps only the line containing the authentication URL and discards every other line (~lines 192171-192189).
As a result the mkdir … Cannot create a file when that file already exists text in error.data.details never reaches the UI or the trace, which is exactly why this took a manual ACP session to pin down. Surfacing error.data.details, or logging the non-auth stderr lines, would make this diagnosable from the UI — the same ask as in #17508.
5. Version drift is not the trigger
For the record, the runtime version is not what decides this: the bundled runtime is 1.4.1 in every reproduction on this issue, the standalone agy has moved on to 1.4.11 and is unaffected, and the crash is a filesystem error inside the agent's workspace-folder creation rather than a protocol or API incompatibility.
6. Separate observation: the failed agent processes are not reaped
After the failed attempts, 7 agy_acp_server.exe and 6 localharness_external.exe processes were still resident, together holding roughly 1.8 GB of working set, each with its own PyInstaller _MEI* extraction directory under the runtime temp folder. An orphaned T3 Code (Beta).exe process was also still running against a binary that the Nightly reinstall had already removed, and both instances share the same ~/.t3 profile and provider directory. This looks like the same class of problem as #20717 and #10862, so I am not opening a separate issue here unless that is useful — happy to file one if wanted.
Workaround
Creating the missing target is enough; no re-auth or runtime reinstall is needed:
New-Item -ItemType Directory -Force "$env:USERPROFILE\.gemini\antigravity-cli\skills"
Then Settings → Providers → Antigravity → Refresh provider status.
Reproduced on a fourth Windows machine, with a slightly different starting state.
Environment
- Windows 11 Home 10.0.26300, T3 Code (Beta) desktop, Antigravity ACP runtime 1.4.1 (managed install),
oauth-personal - Two Antigravity instances (
antigravityandantigravity_2) hit the same failure
Difference from the earlier reports: ~\.gemini\config\skills already existed. Only ~\.gemini\antigravity-cli was missing, so only the antigravity-cli\skills junction dangled. That is enough to break session/new.
What it looked like
- The provider card showed
status: warning,auth: unknown,models: []and "Google account access is not checked yet." - No server trace span failed.
checkAntigravityProvideronly runsinitialize, which succeeds, and the usage probe worked too. - Running
agy_acp_server.exeby hand with T3's environment,initializesucceeded, the token refreshed, andsession/newreturned-32603:failed to create workspace folder ".../antigravity-cli/skills": mkdir ...: Cannot create a file when that file already exists.
Workaround confirmed: creating ~\.gemini\antigravity-cli\skills made session/new succeed and return the model list (Gemini 4 Argon, Gemini 3.8 Flash).
Suggested fix: in linkAntigravityUserSkills, create each target directory before linking, or skip the link when the target is missing. Separately, surface the session/new error in the provider card, because a failed first start currently looks like an unfinished sign-in.
don't know if it is related but I am on a fresh install of T3 on a Windows 11 on ARM, installing codex, claude worked, antigravity it downloads the package but fails to install. I was able to install Antigravity CLI via winget with no problem