Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Antigravity ACP drops >1KB T3 MCP tools (including delegate_task) and omits T3_ACP_MCP_NODE fallback env #37907

ClosedFlagstaffGardens(GitHub profile, opens in a new tab) opened this issue 1 comment

Area

apps/server

Steps to reproduce

  1. Enable both antigravity and another provider (e.g. codex) in T3 Code (0.1.11-nightly.20261117.4814).
  2. Start a thread using the antigravity provider (running through antigravity-acp).
  3. Ask the agent to delegate a cross-provider subagent task via delegate_task (or render HTML via html_render / open preview via preview_open).

Expected behavior

Either:

  • All t3-code MCP tools (including delegate_task, t3_thread_launch, html_render, preview_open, etc.) are callable by the Antigravity ACP agent, OR
  • The documented ACP terminal fallback in <t3_code_instructions> (ELECTRON_RUN_AS_NODE=1 "$T3_ACP_MCP_NODE" ... acp-mcp-call delegate_task ...) works because T3_ACP_MCP_NODE (and T3_ACP_MCP_ENTRYPOINT if needed) are injected into the shell environment.

Actual behavior

Cross-provider delegation from Antigravity fails completely (regression since switching from antigravity-cli to antigravity-acp):

  1. Out of 70 tool definitions written to <userdata>/providers/antigravity/<id>/antigravity-acp/mcp/t3-code/*.json, the 60 schemas <= 975 bytes are registered as eager mcp_t3-code_* tools, while all 10 schemas > 1 KB (create_threads, delegate_task [1937B], html_render [1668B], preview_act [1629B], preview_navigate [1296B], preview_open [1521B], schedule_task [3318B], t3_project_create [1163B], t3_project_update [1541B], t3_thread_launch [2611B]) are omitted from eager declarations.
  2. antigravity-acp does not expose call_mcp_tool to invoke non-eager MCP tools.
  3. Although <t3_code_instructions> specifies an ACP fallback using T3_ACP_MCP_NODE when T3 tools are absent, T3_ACP_MCP_NODE and T3_ACP_MCP_ENTRYPOINT are not present in the Antigravity command execution environment (only T3CODE_CLI_PATH and T3CODE_DESKTOP_HOST_SCOPE are set).

Impact

Major degradation or frequent failure

Version or commit

0.1.11-nightly.20261117.4814

Environment

macOS (arm64), Antigravity ACP provider

Logs or stack traces

# All 10 missing MCP tools in Antigravity ACP match schema size > 1 KB:
# Max eager tool size: 975B (request_secret.json)
# Min missing tool size: 1163B (t3_project_create.json), delegate_task.json = 1937B

# Shell env check for documented ACP fallback:
$ env | grep -E 'T3_ACP_MCP'
# (empty — T3_ACP_MCP_NODE is unset)

Workaround

Switch the current thread's model via t3_thread_configure, or interact with existing top-level threads via t3_thread_send / t3_thread_read (both schemas are < 1 KB so they remain loaded).

  1. tanstack-source added labelsbug

  2. I tried to reproduce this on the current build and could not.

    Commit e9d5bae5cf (origin/main). Antigravity cannot run on the VM, so there was no live session. I cherry-picked the existing test from factory/repro-37884 (apps/server/src/provider/Drivers/AntigravityDriver.test.ts). It registers an MCP provider session for a thread, has the ACP mock agent advertise HTTP MCP, opens a full-access session through AntigravityDriver's orchestrationAdapter, then inspects the spawned agent's env and the session/new mcpServers. Ran vp test run src/provider/Drivers/AntigravityDriver.test.ts in apps/server: 1 failed, 6 passed, with 'expected undefined to be thread-antigravity-mcp' (T3CODE_THREAD_ID, and so T3_ACP_MCP_NODE/ENTRYPOINT/ENDPOINT/AUTHORIZATION, are absent from the agent env). Temporarily merging input.processEnvironment into baseEnv in AntigravityDriver.ts still fails: the t3-code HTTP MCP server in session/new carries only the Authorization header, with no 't3-tool-exposure: deferred'. So both defects fail independently. I reverted the fix and pushed only the test as factory/repro-37907 (c42dcb474d). The 1 KB / 60-eager-tool cutoff itself is inside Antigravity's binary and was not observed.

    Closing as not planned. If it still happens for you, reply with the exact steps and the version you are on and it will be looked at again.

  3. juliusmarminge closed this

Sign in to join this conversation.