Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Antigravity skills link never repairs when a regular file sits at the link path #45309

OpenAlexSandilands(GitHub profile, opens in a new tab) opened this issue 0 comments

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

  1. On Linux, have an Antigravity provider instance whose private profile has a regular file at a link path that linkAntigravityUserConfig manages, for example <profile>/config/skills. In my case it is a 70-byte Cygwin/MSYS-style fake symlink: the bytes IntxLNK followed by the UTF-16 target /home/<user>/.gemini/config/skills. I don't know what created it (it dates from September 2026). Any regular file at that path reproduces the bug:
    P=~/.t3/userdata/providers/antigravity/<hash>
    rm -rf "$P/config/skills" && printf 'IntxLNK' > "$P/config/skills"
    mkdir -p ~/.gemini/config/skills/demo && printf -- '---\nname: demo\ndescription: demo\n---\n' > ~/.gemini/config/skills/demo/SKILL.md
  2. Start an Antigravity thread.
  3. Ask the agent which skills it has, or check $P/config/skills.

Expected behavior

The stale file is replaced with the symlink to ~/.gemini/config/skills, and the thread sees the user's global skills.

Actual behavior

The link is never made, on this launch or any later one. The user's global skills never reach Antigravity threads, and the only sign is a server log warning.

In apps/server/src/provider/antigravityAuthSupport.ts, linkAntigravityUserConfig (around lines 265–330):

  • fs.readLink(link) fails on a regular file (EINVAL).
  • The fallback assumes "an empty folder is the harness's placeholder" and calls NodeFSP.rmdir(link). That fails with ENOTDIR, and the original error is rethrown.
  • The outer Effect.catch logs Antigravity user configuration is not linked into the profile. and gives up.

Nothing removes the file, so the same thing happens on every launch. The same path is taken for the other managed links (antigravity-cli/skills, and AGENTS.md, GEMINI.md, config/skills.json on non-Windows).

Impact

Major degradation or frequent failure. The failure is silent: the user's skills and rules are missing from every Antigravity thread in that instance, with no visible error.

Version or commit

main @ 826ca1d231 (code path above); managed Antigravity runtime 1.5.14

Environment

Linux x64 (Arch-based, btrfs), T3 Code desktop, Antigravity provider (Google account sign-in)

Logs or stack traces

I don't have the log line captured. Going by the code, it should be the logWarning above, carrying the readLink error, which is rethrown after rmdir fails with ENOTDIR.

Workaround

Delete the stray file (rm <profile>/config/skills) and start a new Antigravity thread; T3 then creates the symlink.

Suggested fix

When the link path exists but is neither a symlink nor a directory, lstat it. If it is a regular file, treat it as a stale placeholder: remove it (or, to be cautious, only when it is small or starts with IntxLNK), then create the symlink. A regression test in antigravityAuthSupport.test.ts could cover a regular file at each managed link path. I'm happy to send a PR for this.

  1. tanstack-source added labelsbug

Sign in to join this conversation.