delegate_task rejects runtimeMode auto for Antigravity even after warm-up #48027
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#
- Run a Claude thread in Auto runtime mode.
orchestrator_capabilitiesreportsruntimeMode: autofor the caller. - Call
delegate_taskwith an Antigravity model (e.g.gemini-4-neon) and an explicitruntimeMode: "auto". - Warm up: delegate
task: "Reply with just OK."to the same model withmode: "wait"and noruntimeMode. It succeeds. - Call
orchestrator_capabilitiesagain, 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.
Related#
- #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).
tanstack-source added labelsbug
juliusmarminge closed this
Follow-up: I found the root cause on my machine, and it's different from #31964.
Ubuntu sets
kernel.apparmor_restrict_unprivileged_userns=1by default. With that set, agy logsTerminal sandbox unavailable: AppArmor restricts unprivileged user namespacesand leavesautoout ofsession/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_capabilitieslistsautofor Antigravity. From a Claude parent in Auto,delegate_tasktogemini-4-neonnow works both with the mode inherited and with an explicitruntimeMode: "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_taskerror when agy reports the sandbox as unavailable, would have saved a lot of debugging.
Sign in to join this conversation.
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.