Repository navigation
Conversation
- 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.
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
In full-access mode, subagents started by Antigravity (
invoke_subagent) hang on tool calls such asedit_file,write_file, andrun_command, including calls against T3 worktrees. Each call waits for a permission prompt that T3 never receives, then times out after 60 seconds.agy acp1.5.x only forwards tool confirmations (session/request_permission) for the parent ACP session, and it removed the legacyyolomode that full-access used to map to. T3 therefore fell back todefault, which asks before acting.Change
agy acpwith--dangerously-skip-permissions. That flag setsalways-proceedand global workspace and command grants inagy's in-memory settings for that process only.settings.jsonis not touched.maxRuntimeMode, or for policies withapprovalPolicyorsandboxPolicyoverrides.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 acpchange, 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
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 isfalse.vp run check:changedpassed on this branch: format, lint, knip, graphql, typecheck, and 128/128 Antigravity tests.agy1.5.13 directly withacp --dangerously-skip-permissionsand an isolated profile. It answeredinitializewith protocol version 1 and exited 0.Model and harness: Antigravity thread; the underlying model was not recorded in the source digest.