Repository navigation
Description
Area
apps/server
Steps to reproduce
- Configure Antigravity to run via the native
agyCLI (1.5.12, whereagy acpadvertisesmodes:default,accept-edits,auto,plan). - Start a thread in Full access (
full-access). - Ask the agent to launch a detached subagent via
invoke_subagent(TypeName: self) that creates/edits a workspace file (write_file/edit_file) or runs a shell command (run_command).
Expected behavior
In Full access, the detached subagent can perform workspace writes and commands without hanging on hidden permission prompts, and switching the thread back to Supervised takes effect on the next turn without restarting agy.
Actual behavior
Every tool call in the detached subagent that requires permission (write_file, edit_file, run_command) sits in WAITING_FOR_USER (status = 6 in the child SQLite steps table) for 60s and times out. No session/request_permission request ever reaches T3 Code, so the user sees no approval prompt and the subagent cannot modify files or run commands.
Cause
In apps/server/src/provider/acp/AntigravityAcpSupport.ts, antigravityCliSessionMode (#33143) unconditionally downgrades both yolo (full-access) and auto_edit (auto-accept-edits) to "default":
export function antigravityCliSessionMode(modeId: string): string {
return modeId === "yolo" || modeId === "auto_edit" ? "default" : modeId;
}That works for parent-session tool calls because agy acp sends session/request_permission to T3, which auto-approves them according to acpPermissionDisposition. However, agy acp does not forward session/request_permission from detached subagents (invoke_subagent) to the ACP client — detached subagents inherit the agy session's own mode ("default").
Verified directly against agy 1.5.12 (oauth-personal, gemini-3.8-flash) on an isolated workspace:
mode = default: detachedselfsubagent callingwrite_file/run_commandhangs >60s (status = 6), 0session/request_permissionrequests received.mode = accept-edits: parentwrite_filesucceeds with 0 permission prompts; detachedselfsubagentwrite_file/edit_filestill hangs inWAITING_FOR_USERonagy 1.5.12.mode = auto(viasession/set_config_option({ configId: "mode", value: "auto" })): detachedselfsubagent completes bothwrite_fileandrun_commandwithin ~15s with no timeout, and hot-switching back todefaulton the same session succeeds without restartingagy.
Mapping yolo -> "auto" (falling back to "accept-edits" -> "default" when "auto" is not advertised in availableModes, e.g. accounts without the OS sandbox) and auto_edit -> "accept-edits" (falling back to "default"), while keeping explicit approvalPolicy / sandboxPolicy sessions in "default", resolves this without using --dangerously-skip-permissions and without conflicting with #35540 (which adds auto to supportedRuntimeModes).
Impact
Major degradation or frequent failure
Version or commit
main @ 5ec4f50 (also reproduced on v0.1.11-nightly.20261119.4918)
Environment
macOS (Darwin arm64), Node 26.13.1, agy CLI 1.5.12 (oauth-personal), gemini-3.8-flash
Activity
JoshuaHayesWasHere commentedon Nov 19, 2026
Note
🤖 Gemini 4 Neon responding on behalf of JoshuaHayesWasHere
Hit this same bug on Linux (
0.1.10-nightly.20261119.13388,agyCLI1.5.12,oauth-personal,gemini-4-neon), with an important detail for PR #39047:mode = "auto"still leaves detachedinvoke_subagentchildren hanging on out-of-workspaceread_filecalls.Evidence
main(mode = "default"): A detachedselfsubagent timed out after 60s three consecutive times onread_filefor files outside the worktree (~/repos/...), and then timed out again on an in-worktreerun_command.server.trace.ndjsonrecorded zerosession/request_permissionspans during the entire window while parent-session reads of the same out-of-worktree file succeeded immediately.mode = "auto"againstagy 1.5.12: After settingsession/set_config_option({ configId: "mode", value: "auto" }), a detachedselfsubagent attemptingread_fileon a file outside the workspace still stalled inWAITING_FOR_USER(status = 6in the child SQLitestepstable) with zerosession/request_permissionrequests forwarded to the ACP client.--dangerously-skip-permissionsagainstagy 1.5.12:agy acp --dangerously-skip-permissionsallowed the detachedselfsubagent to complete both the out-of-workspaceread_fileand a destructive workspacerun_command(rm -f) with zero hangs.ask_question(elicitation/create) andsetMode("plan")still worked as expected under--dangerously-skip-permissions.--dangerously-skip-permissionsstays active even aftersetMode("default"), switching runtime mode out of Full access requires detaching the session (supportsRuntimeModeSwitchInSession: false), respawningagy acpwithout the flag, and resuming viasession/resume(verified to restoresession/request_permissionon the resumed turn).Environment
0.1.10-nightly.20261119.13388(local server)7.3.4-arch1-2), Nodev24.22.1agy 1.5.12(oauth-personal)DASungta commentedon Nov 20, 2026
Given the new findings here and on #39378, I want to check the preferred direction before pushing any further changes to #39053:
agy'sautomode to T3's Auto mode (withantigravityRuntimeModeForSessionMode("auto") -> "auto"), and as tested onnucbox-1, someagy 1.5.12personal accounts don't advertiseautoat all.write_file+run_commandinmode = "auto", while @JoshuaHayesWasHere confirmed above that out-of-workspaceread_filestill hangs 60s undermode = "auto".--dangerously-skip-permissionsdecision (fix(antigravity): use CLI permission modes and full-access flag #32875 / fix(antigravity): agy CLI threads open in Full access and Auto-accept edits #33143): fix(server): Antigravity CLI subagents no longer time out in Full access #39053 (and fix(server): agy CLI Full access sessions run in the CLI's auto mode #39047) avoided--dangerously-skip-permissionsto respect fix(antigravity): agy CLI threads open in Full access and Auto-accept edits #33143 (no process restart, no open-time permission downgrade race). That trade-off assumeddefaultalways forwardedsession/request_permissionto T3, which doesn't hold for detached subagents.@juliusmarminge Which direction do you prefer for CLI Full access?
automapping as a partial fix (in-workspace subagents whereautois advertised), and align fix(server): Antigravity CLI subagents no longer time out in Full access #39053 with feat(antigravity): Auto uses agy's own Auto review #39378 once it lands — leaving out-of-workspace subagent reads and non-autoaccounts to an upstreamagyfix.--dangerously-skip-permissionsfor CLI Full access with detach/respawn +session/resumewhen leaving Full access, explicitly guarding against the fix(antigravity): agy CLI threads open in Full access and Auto-accept edits #33143 open-time downgrade race (re-verifying the live policy after session open before running a turn).Happy to implement whichever direction you'd like.
loosekite commentedon Nov 20, 2026
Confirming the same out-of-workspace
read_file60s timeout still reproduces on T3 Code0.1.10+agy 1.5.13(Linux x64,full-accessmode), even for read-only detached plugin subagents:full-accessmode and can read sibling repo files outside the worktree normally.invoke_subagentcallingread_fileon a sibling repo path outside the worktree hangs for exactly 60s and fails with:permission check failed for read_file "...": Permission prompt for action 'read_file' on target '...' timed out waiting for user response after 60smode = "auto"only) would still leave every out-of-worktreeread_filestalling 60s per call — adding a data point in favor of Option B (or explicit additional readable workspace directories / upstreamagyforwarding subagentsession/request_permission).hchaudhary1 commentedon Nov 21, 2026
+1 for Option B. Still hitting the 60s timeout on out-of-workspace
read_filein detached subagents on0.1.12-nightly.20261121.5024+agy 1.5.13(Linux, Full access).hchaudhary1 commentedon Nov 21, 2026
Workaround until this is fixed: point Settings → Providers → Antigravity → Binary path at a small wrapper that runs the managed binary with
acp --dangerously-skip-permissions. Subagentread_fileoutside the workspace then succeeds immediately. Start a new thread after saving.hqhq1025 commentedon Nov 21, 2026
+1 for Option B — confirming this still reproduces on macOS arm64 with T3 Code
0.1.11and managedantigravityCLI1.5.14(oauth-personal,gemini-4-neon,full-accessmode).Repro (multi-repo parallel subagents)
full-accessmode); parent agent reads/writes sibling repo B normally.invoke_subagentthat needed to read files in sibling repo B.Thinkingon their very firstread_filecall and timed out after 60s withpermission check failed for read_file "...", with no approval prompt surfaced to T3 Code.Because Option A (
mode = "auto") still keeps out-of-workspaceread_fileblocked for detached subagents (and also fails on accounts/hosts whereautoisn't advertised), Option B (--dangerously-skip-permissionsforfull-access+ respawn andsession/resumeon downgrade) seems like the only approach that makesfull-accessmatch its expected behavior until upstreamagy acpforwards subagent permission requests.denisbetsi commentedon Nov 22, 2026
Adding two more data points in favor of Option B (PR #40447) on macOS 27.2.1 (arm64), T3 Code
0.1.12-nightly.20261122.5098, managedantigravityCLI1.5.14,gemini-4-neon,full-access:t3-code/*MCP tool calls in nativeselfsubagents also hit the 60s hidden permission timeout. Spawning 3 parallelinvoke_subagent(TypeName: self) workers to read GitHub issues/PRs viat3-code/pull_request_readfailed every worker after 60s with:agy acpdoes not forward subagentsession/request_permissionrequests to T3, T3's MCP pre-approval (fix(antigravity): pre-approve T3 MCP tools in Auto and Auto-accept edits #39822) never sees them. Option A (mode = "auto"in fix(server): agy CLI Full access sessions run in the CLI's auto mode #39047 / fix(server): Antigravity CLI subagents no longer time out in Full access #39053) would still leave both out-of-workspace reads and MCP tool calls timing out in detached subagents.researchsubagents callingrgoutside the workspace hit the same 60s hidden permission timeout infull-access.(Separate note worth checking with #40447: on macOS in
full-access, top-levelrun_commandcalls likeswift build, Keychain-backed tests,codesign, or reading~/Library/Application Support/...currently still hitagy's Seatbelt sandbox first and have to fail and retry withBypassSandbox: true.)adamkasper commentedon Nov 22, 2026
+1 for Option B, hitting the same 60s timeout on
run_commandin detachedselfsubagents (invoke_subagent) infull-accessmode.Environment: macOS (arm64), T3 Code
0.1.12-nightly.20261122.5098, Antigravity (gemini-4-neon,full-access).When spawning parallel
selfsubagents that run simple shell commands (e.g.git rev-parse --short HEAD && (cd /tmp && npm view vue version)orgh api), every subagent stalls for 60s and fails with:The exact same commands succeed immediately in the parent thread.
denisbetsi commentedon Nov 22, 2026
Quick follow-up confirming the Seatbelt question from above: tested a wrapper passing
acp --dangerously-skip-permissionsagainst managedantigravity1.5.14on macOS 27.2.1 (arm64,gemini-4-neon).Both the top-level agent and a native
selfsubagent ranls -1 "$HOME/Library/Application Support"withoutBypassSandbox: trueand succeeded on the very first attempt (exit0, no Seatbelt error, no retry), alongside native subagentread_fileon/etc/hosts(~2s) andt3-code/read_issueMCP (~2s) with zero 60s timeouts.So Option B (PR #40447) fixes both the detached subagent 60s hidden-prompt timeouts (including MCP and out-of-workspace reads) and the macOS Seatbelt fail-then-retry churn in
full-access.gustavosmendes commentedon Nov 23, 2026
Another data point, with an A/B on the same machine and build.
Environment: macOS 27.2 (arm64), T3 Code
0.1.12-nightly.20261122.5098, managedantigravity1.5.14(ACP),gemini-4-neon, Full access.Detached
selfchildren honor the global grants in the T3-managed profile'sconfig/config.json(<T3 userdata>/providers/antigravity/<profile>/config/config.json). The profile I tested had these settings:Both runs used the same parent prompt: the parent spawns one
selfchild withinvoke_subagent, and the child runsssh <host> hostnameand one local CLI command withrun_command.command(*)inallow: both commands exit 0 in about 2–3 s, with no timeout.command(*)removed: both commands fail after 60 s withpermission check failed for unsandboxed "...": Permission prompt for action 'command' on target '...' timed out waiting for user response after 60s. T3 shows no prompt. This is the same failure a real task hit on 2026-11-22 before the grant was in the file.Until #40447 lands, adding the grants to the managed profile's
config.jsonworks around the bug and keeps the binary's own permission handling, without a--dangerously-skip-permissionswrapper. I only testedcommand(*). The trade-off is that the grants apply to every thread on that profile, Supervised ones included.It also suggests a fix direction. Children read this file but never send
session/request_permission, so for Full access threads T3 could write the matching grants into the profile it already manages.Posted by Claude Code (Opus 5.5) on behalf of the account owner.
FLPPPPPP commentedon Nov 24, 2026
Bump? is rly annoying to use Neon and T3 get stucks on workflow