Skip to content
Source
Sign inSign up
pingdotgg/t3code

delegate_task rejects runtimeMode auto for Antigravity even after warm-up #48027

ClosedMichaelCharles(GitHub profile, opens in a new tab) opened this issue 2 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 (orchestrator MCP, delegate_task)

Summary

delegate_task refuses an explicit runtimeMode: "auto" for an Antigravity target, and the refusal persists after an Antigravity session has run. So a Claude thread in Auto mode can't hand Auto down to an Antigravity child. Its only choices are auto-accept-edits (which still asks the human to approve shell commands) or full-access.

Steps to reproduce

  1. Run a Claude thread in Auto runtime mode. orchestrator_capabilities reports runtimeMode: auto for the caller.
  2. Call delegate_task with an Antigravity model (e.g. gemini-4-neon) and an explicit runtimeMode: "auto".
  3. Warm up: delegate task: "Reply with just OK." to the same model with mode: "wait" and no runtimeMode. It succeeds.
  4. Call orchestrator_capabilities again, then retry step 2.

Expected

After the warm-up, Antigravity advertises auto, or T3 maps Auto to the closest Antigravity mode, and the retry runs.

Actual

Both attempts (before and after the warm-up) fail with:

{"_tag":"OrchestratorMcpFailure","code":"invalid_request","message":"Provider antigravity does not offer runtime mode auto, so it would run as approval-required. Use one of: approval-required, auto-accept-edits, full-access."}

After the warm-up, orchestrator_capabilities still lists only approval-required, auto-accept-edits and full-access for Antigravity. Falling back to auto-accept-edits gets past the refusal, but the child then asks the human to approve shell commands.

  • #39367 and #31964 (closed, not planned): Antigravity has no Auto mode
  • #40896 (open): an Antigravity thread set to Auto stays in agy's default mode
  • #40200 (open PR): the first cold Antigravity turn no longer falls back from Auto to Supervised
  • #30552 (open PR): threads step down to the broadest permission mode their provider offers

This report covers the explicit-runtimeMode path of delegate_task, which none of the above address. #30552's step-down behavior would fix it if it applied to delegate_task too.

Environment

T3 Code 0.1.13, Linux (Ubuntu) host, Claude parent thread in Auto mode, Antigravity child (gemini-4-neon).

  1. tanstack-source added labelsbug

  2. This is the same problem as #31964, 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

  4. Follow-up: I found the root cause on my machine, and it's different from #31964.

    Ubuntu sets kernel.apparmor_restrict_unprivileged_userns=1 by default. With that set, agy logs Terminal sandbox unavailable: AppArmor restricts unprivileged user namespaces and leaves auto out of session/new, so T3 never offers Auto for Antigravity. That's why the warm-up in my report changed nothing.

    After setting the sysctl to 0 and starting a fresh Antigravity session, orchestrator_capabilities lists auto for Antigravity. From a Claude parent in Auto, delegate_task to gemini-4-neon now works both with the mode inherited and with an explicit runtimeMode: "auto", and the child runs shell commands without asking for approval.

    So this differs from #31964 (Antigravity now has Auto) and is closer to discussion #41658. The part I'd still call a bug is that nothing tells the user or the orchestrating agent why Auto is missing. A hint in provider settings, or in the delegate_task error when agy reports the sandbox as unavailable, would have saved a lot of debugging.

Sign in to join this conversation.