Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: User-installed Antigravity plugin slash commands (config/plugins/*/skills) disappear in existing/new threads after restart or hot-install #38511

ClosedHamsteRider-m(GitHub profile, opens in a new tab) opened this issue 1 comment

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. Install a third-party/user plugin into Antigravity's plugin directory — either ~/.gemini/config/plugins/<plugin>/ or (for T3-managed Antigravity) <T3_USERDATA>/providers/antigravity/<instance_hash>/config/plugins/<plugin>/ — containing skills under skills/<skill_name>/SKILL.md (including disable-model-invocation: true skills that are invoked via /<skill_name>).
  2. Observe that antigravity plugin list --json (with HOME / GEMINI_HOME pointed at the active profile) reports "enabled": true and lists all plugin skills.
  3. Restart T3 Code, then immediately open/resume a thread in <workspace> (or create a New thread in <workspace> after any session in <workspace> ran right after startup, or after hot-linking the plugin into config/plugins/ while T3 was already running).
  4. In <workspace>'s composer, type / followed by a plugin command name (e.g. /poteto-mode, /statechart).

Expected behavior

  • Slash commands from enabled user-installed Antigravity plugins (config/plugins/<plugin>/skills/) should appear in the / composer menu in both new and existing workspaces.
  • Updating or linking a plugin into config/plugins/ should take effect in subsequent/new threads without permanently pinning a stale/empty workspaceSnapshots[cwd].slashCommands list.

Actual behavior

In <workspace>, typing /<plugin-command> shows No matching command. (or only shows unrelated skills from config/skills/ as /skill:... if config/skills/ happens to have partial fuzzy matches), and this persists indefinitely (even hours later, well past the 5-minute PROVIDER_WORKSPACE_SNAPSHOT_TTL_MS).

Inspecting T3 Code 0.1.10 (app.asar + server.trace.ndjson + Antigravity ACP logs) shows why user-installed plugins hit a double gap compared to standalone skills in config/skills/:

  1. T3's local scanner ignores config/plugins/ completely:
    • antigravityUserSkillDirectories in AntigravitySkills.ts only scans config/skills and antigravity-cli/skills (plus project .gemini/skills, .agents/skills, .agent/skills). It never scans config/plugins/*/skills/.
    • Therefore, user-installed Antigravity plugins depend 100% on Antigravity ACP's available_commands_update (slashCommands).
  2. AntigravityProvider.onSessionStarted permanently pins workspaceSnapshots[cwd].slashCommands = [] (or pre-install commands) before onAvailableCommands arrives:
    • On the first Antigravity session after T3 startup, server.trace.ndjson shows AntigravityProvider.onSessionStarted(started, cwd) fires ~78 ms before AntigravityProvider.onAvailableCommands(event.availableCommands).
    • onSessionStarted writes workspaceSnapshots[cwd] inside AntigravityProvider's in-memory metadata using slashCommands: workspace?.slashCommands ?? draft.slashCommands (which is [] right after startup).
    • AntigravityDriver calls provider.onAvailableCommands(event.availableCommands) without cwd, so top-level draft.slashCommands updates to all 90+ commands (including the plugin's commands and persisted to caches/antigravity.json), while existing workspaceSnapshots[cwd] entries are never updated.
    • Every later snapshotForCwd(cwd) call (including when opening a New thread hours later after TTL expiry) finds that stale workspaceSnapshots entry and returns its frozen workspace.slashCommands ([]), while rescanning config/skills/ fresh.
    • Because AntigravityDriver also has no invalidateCaches, hot-installing/updating a plugin in config/plugins/ leaves every previously-visited cwd stuck on its pre-install command list until a full server restart.
  3. Startup cache wipe:
    • ProviderRegistry hydrates slashCommands from caches/antigravity.json, then checkAntigravityProvider immediately emits slashCommands: [], and shouldRetainMissingOpenCodeMetadata in ProviderRegistry.mergeProviderSnapshot only retains slashCommands for opencode (not antigravity).

Related: #35611 (which reports the built-in Antigravity commands missing for the 5-minute TTL; this issue specifically covers user-installed plugins under config/plugins/*/skills/, the onSessionStarted permanent-pinning past the 5-min TTL, and hot-install/update staleness).

Impact

Major degradation or frequent failure

Version or commit

0.1.10

Environment

macOS (darwin-arm64), T3 Code 0.1.10, T3-managed Antigravity 1.5.10 (oauth-personal), user-installed plugin in config/plugins/<plugin>/ (agentPluginsSpec: true, 58 skills)

Logs or stack traces

# Antigravity ACP server log (14:56:02, 3s after server startup at 14:55:59):
Loading/Resuming session: <session-id>, cwd: <workspace>
Advertising 97 slash commands for session <session-id>

# server.trace.ndjson span order on first session after startup:
AntigravityProvider.onSessionStarted      (0.74 ms)   # runs first while draft.slashCommands is []
AntigravityProvider.onConfigOptionsUpdated
AntigravityProvider.onAvailableCommands   (+78 ms)    # 97/98 commands arrive, no cwd passed
ws.rpc.server.refreshProviders            (0.38 ms)   # snapshotForCwd returns stale workspaceSnapshots[cwd].slashCommands ([])

Workaround

  1. Typing the exact /<command> (e.g. /poteto-mode or /statechart) and sending even while the composer shows No matching command. still works server-side, because Antigravity ACP intercepts and injects the plugin's SKILL.md.
  2. To restore the / menu for <workspace>: fully quit and restart T3 Code, then run one Antigravity turn in a different workspace (or trigger a model refresh in Settings) before opening <workspace> so draft.slashCommands is populated before workspaceSnapshots[<workspace>] is created.
  1. tanstack-source added labelsbug

  2. This is the same problem as #35611, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

  3. juliusmarminge closed this

Sign in to join this conversation.