[Bug]: Antigravity ACP drops >1KB T3 MCP tools (including delegate_task) and omits T3_ACP_MCP_NODE fallback env #37907
Area#
apps/server
Steps to reproduce#
- Enable both
antigravityand another provider (e.g.codex) in T3 Code (0.1.11-nightly.20261117.4814). - Start a thread using the
antigravityprovider (running throughantigravity-acp). - Ask the agent to delegate a cross-provider subagent task via
delegate_task(or render HTML viahtml_render/ open preview viapreview_open).
Expected behavior#
Either:
- All
t3-codeMCP tools (includingdelegate_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 becauseT3_ACP_MCP_NODE(andT3_ACP_MCP_ENTRYPOINTif 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):
- Out of 70 tool definitions written to
<userdata>/providers/antigravity/<id>/antigravity-acp/mcp/t3-code/*.json, the 60 schemas<= 975 bytesare registered as eagermcp_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. antigravity-acpdoes not exposecall_mcp_toolto invoke non-eager MCP tools.- Although
<t3_code_instructions>specifies anACP fallbackusingT3_ACP_MCP_NODEwhen T3 tools are absent,T3_ACP_MCP_NODEandT3_ACP_MCP_ENTRYPOINTare not present in the Antigravity command execution environment (onlyT3CODE_CLI_PATHandT3CODE_DESKTOP_HOST_SCOPEare 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).
tanstack-source added labelsbug
juliusmarminge closed this
Sign in to join this conversation.
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.tsin 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.