Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Antigravity child of an Auto thread can't run shell commands without asking the human #31964

Closednichtlegacy(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

Steps to reproduce

  1. Run a thread in Auto runtime mode (Claude provider, the default "auto" mode).
  2. 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" } }
  3. Watch the child thread: its first shell command (git diff --stat …) raises an approval request to the human.
  4. Retry with "interactionMode": "plan": no prompt any more, but every shell command is rejected (Rejected by user), so the child can only read files.
  5. Retry with "runtimeMode": "full-access": the call is refused with runtime_mode_escalation_denied: Child runtime mode full-access is broader than parent mode auto.
  6. Retry with "runtimeMode": "auto": refused with invalid_request (Antigravity does not offer auto).

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 requestResolved T3 modeAntigravity session modeResult
inheritedauto-accept-editsauto_editevery 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#L189 supportedRuntimeModes: ["approval-required", "auto-accept-edits", "full-access"]
  • An inherited auto steps 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-edits becomes Antigravity's auto_edit, and auto would become default: 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") and yolo ("Auto-approve all tools"). Only yolo runs 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 auto the way Auto works for other providers (answer them with T3's Auto policy instead of forwarding them to the human), and then offer auto for Antigravity.
  • Or let a delegated child's approval requests go to the parent agent rather than to the human, when the parent runs unattended.
  1. 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 explicit runtimeMode: "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:

    1. Map T3's auto onto Antigravity's yolo session mode when the child is read-only (plan or review) and the parent is in Auto.
    2. Offer an auto-equivalent mode for Antigravity, and fail delegate_task loudly (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-provider inheritedAutoResolvesTo) 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_task rejected 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.

  2. tanstack-source added labelsbug

  3. 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.

  4. juliusmarminge closed this

Sign in to join this conversation.