Skip to content

fix(server): full-access Antigravity sessions skip native subagent approvals - #41468

Closed
diocore wants to merge 1 commit into
pingdotgg:mainfrom
diocore:feature/antigravity-full-access-permissions
Closed

diocore wants to merge 1 commit into
pingdotgg:mainfrom
diocore:feature/antigravity-full-access-permissions

Conversation

@diocore

@diocore diocore commented Nov 23, 2026

Copy link
Copy Markdown

Problem

In full-access mode, subagents started by Antigravity (invoke_subagent) hang on tool calls such as edit_file, write_file, and run_command, including calls against T3 worktrees. Each call waits for a permission prompt that T3 never receives, then times out after 60 seconds. agy acp 1.5.x only forwards tool confirmations (session/request_permission) for the parent ACP session, and it removed the legacy yolo mode that full-access used to map to. T3 therefore fell back to default, which asks before acting.

Change

  • Full-access conversational sessions now launch agy acp with --dangerously-skip-permissions. That flag sets always-proceed and global workspace and command grants in agy's in-memory settings for that process only. settings.json is not touched.
  • The flag applies only when the runtime policy is unrestricted full-access. It is not added for helper, refresh, login, or title launches, for narrower modes, for policies capped by maxRuntimeMode, or for policies with approvalPolicy or sandboxPolicy overrides.
  • The Antigravity adapter sets supportsRuntimeModeSwitchInSession: false. Switching a thread into or out of full-access detaches the process and resumes the native session with the matching launch flags, so the flag never carries over into another mode.

Supervised and Auto-accept edits still do not get native subagent approvals. That needs an upstream agy acp change, and this PR does not try to work around it.

Scope

This is a bug fix for an existing full-access failure. No issue is linked yet. The failure reproduces in full-access threads whenever a native subagent runs a file or command tool.

Verification

  • Added unit coverage for the spawn args (antigravityAuthSupport.test.ts), the skip-permissions policy rules (AntigravityAcpSupport.test.ts), and the driver's launch args across full-access, full-access with a sandbox override, and auto-accept-edits (AntigravityDriver.test.ts). The driver test also asserts that the runtime mode switch capability is false.
  • vp run check:changed passed on this branch: format, lint, knip, graphql, typecheck, and 128/128 Antigravity tests.
  • Ran agy 1.5.13 directly with acp --dangerously-skip-permissions and an isolated profile. It answered initialize with protocol version 1 and exited 0.
  • Not verified: an end-to-end full-access session where a native subagent edits a file in a T3 worktree with no approval timeout. That still needs a live check before merge.

Model and harness: Antigravity thread; the underlying model was not recorded in the source digest.

- Full-access Antigravity sessions launch agy ACP with --dangerously-skip-permissions, so native subagents no longer hang on unattended tool approvals.
- Sessions with an approval or sandbox override, or a max runtime mode above full-access, keep the default ask mode.
- Antigravity no longer advertises runtime mode switching in session, since the flag is fixed at launch.
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 23, 2026
@juliusmarminge

Copy link
Copy Markdown
Member

Thanks for this. #40447 makes the same change and is the one being kept.

#40447 makes the same Full access launch change and also handles a permission downgrade that arrives while a session is opening. It checks the policy before turns and resumes, so the next action cannot retain a process launched with permissions bypassed.

Your diagnosis and launch-policy guards agree with that fix. Keeping the additional downgrade protection together with the launch flag gives us the more complete change to review.

Closing as a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants