[Bug]: Antigravity child of an Auto thread can't run shell commands without asking the human #31964
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#
- Run a thread in Auto runtime mode (Claude provider, the default "auto" mode).
- From that thread, delegate a read-only task to Antigravity with the T3 MCP tool, without setting a runtime mode:
{ "task": "Run `git diff --stat origin/main...HEAD` and summarise it. Read-only.", "target": { "providerInstanceId": "antigravity", "model": "gemini-4-argon" } } - Watch the child thread: its first shell command (
git diff --stat …) raises an approval request to the human. - Retry with
"interactionMode": "plan": no prompt any more, but every shell command is rejected (Rejected by user), so the child can only read files. - Retry with
"runtimeMode": "full-access": the call is refused withruntime_mode_escalation_denied: Child runtime mode full-access is broader than parent mode auto. - Retry with
"runtimeMode": "auto": refused withinvalid_request(Antigravity does not offerauto).
Expected behavior#
A thread that runs unattended in Auto can delegate a read-only job (review, research) to Antigravity, and that child can run ordinary shell commands (git diff, grep, test runners) without a human approving each one, the same way a Claude child of an Auto parent can.
Actual behavior#
From an Auto parent there is no setting that gives an Antigravity child working shell access without human prompts:
| Child request | Resolved T3 mode | Antigravity session mode | Result |
|---|---|---|---|
| inherited | auto-accept-edits | auto_edit | every shell command asks the human |
interactionMode: "plan" | – | – | shell commands auto-rejected |
runtimeMode: "full-access" | – | – | runtime_mode_escalation_denied |
runtimeMode: "auto" | – | – | invalid_request (mode not offered) |
Code path (permalinks at 59ec1ba):
- Antigravity offers only three runtime modes, no
auto:AntigravityProvider.ts#L189supportedRuntimeModes: ["approval-required", "auto-accept-edits", "full-access"] - An inherited
autosteps down to the broadest offered mode at or below it,auto-accept-edits; an explicit broader mode is refused:delegatedTaskModes.ts#L36-L72 auto-accept-editsbecomes Antigravity'sauto_edit, andautowould becomedefault:AntigravityAcpSupport.ts#L163-L173- The Antigravity ACP runtime defines its session modes as
default("Default permission prompt flow"),auto_edit("Auto-approve file edit tools") andyolo("Auto-approve all tools"). Onlyyoloruns shell commands without a prompt. Its "Allow always" answer is cached per exact command string, so it does not help for an agent that issues many different read-only commands.
So for Antigravity, "Auto" behaves like "ask for every command", while for Claude it means "run unattended with a safety classifier". The difference is invisible to the orchestrating agent until the human starts getting approval prompts from a child thread they never opened.
Impact#
Major degradation or frequent failure
Multi-provider review setups (one delegate per provider, all read-only) cannot include Antigravity without either a human approving each command, or the parent running in Full access only so that the child may be Full access too.
Version or commit#
T3 Code 0.1.8-nightly.20261106.4262; code references at 59ec1bac9fc2624171854cfdb9c4140b0166a115 (main).
Environment#
Linux x64 (headless server, desktop client), parent provider Claude (Opus 5.5) in Auto, child provider Antigravity (gemini-4-argon, Google AI Pro, managed antigravity-acp runtime).
Logs or stack traces#
delegate_task → {"_tag":"OrchestratorMcpFailure","code":"runtime_mode_escalation_denied",
"message":"Child runtime mode full-access is broader than parent mode auto."}
Child thread (inherited mode): runtimeMode: "auto-accept-edits", then an approval_request item for git diff --stat origin/dev...integrate/next-features.
Child thread (interactionMode: "plan"): command_execution git diff --stat … → status: failed, Rejected by user, with no human interaction.
Workaround#
Run the parent thread in Full access and start the Antigravity child with runtimeMode: "full-access", or start it in plan mode and pre-write every diff or command output it needs to files. Both work, but the first gives up the parent's Auto safety net and the second turns the child into a file reader.
Possible directions, for whoever picks this up:
- Treat Antigravity permission requests in
autothe way Auto works for other providers (answer them with T3's Auto policy instead of forwarding them to the human), and then offerautofor Antigravity. - Or let a delegated child's approval requests go to the parent agent rather than to the human, when the parent runs unattended.
tanstack-source added labelsbug
Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.
juliusmarminge closed this
Sign in to join this conversation.
Confirming this independently, and adding the use case that makes it painful.
Reproduced the same way. Claude parent in Auto, Antigravity child (Gemini 3.8 Flash) with the mode left inherited. The child's runtime mode resolved to
auto-accept-edits, every shell command raised an approval request, and an explicitruntimeMode: "auto"was rejected because the provider doesn't offer it.Why it hurts. I was running a three-provider review council (Claude, GPT, Gemini) with all seats read-only. The Gemini seat is the only one that needs a human to approve commands, so the council can't run unattended. The same applies to Antigravity's Claude and GPT-OSS models, which are the natural overflow pool when other subscriptions are near their limits.
Suggested fix. Either of these would remove the problem:
autoonto Antigravity'syolosession mode when the child is read-only (plan or review) and the parent is in Auto.auto-equivalent mode for Antigravity, and faildelegate_taskloudly (or warn the orchestrator) when an inherited child would silently step down to a mode that prompts.Even without the fix, surfacing the step-down in
orchestrator_capabilities(for example a per-providerinheritedAutoResolvesTo) would let orchestrators route around it.Workaround in use. Give Antigravity children a no-shell-commands task. File reads don't prompt, so the orchestrator pastes any command output into the task.
Related gap. Antigravity's Claude and GPT-OSS models weren't advertised by the T3 catalog, so
delegate_taskrejected them as "not advertised" until the provider was refreshed. A refresh in settings fixes it, but a stale-catalog hint in the error message would help.