Skip to content

[Bug]: Antigravity hides native ACP auto permission mode on agy CLI 1.5.4+ #37082

Closed as not planned

Description

@ryush00

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. Install or update Antigravity to the native agy CLI (1.5.4+; managed installs now use 1.5.7+ since feat(antigravity): migrate managed installs to native CLI #35487) signed in with an account that supports Auto mode.
  2. Verify via agy acp --stdio that session/new advertises "id": "auto" in modes.availableModes (default, accept-edits, auto, plan).
  3. Open T3 Code, select the Antigravity provider, and open the composer permission mode picker (or leave global defaultRuntimeMode set to "auto").

Expected behavior

When running against native agy acp (1.5.4+) and session/new advertises auto in availableModes, T3 Code offers Auto for Antigravity, preserves global defaultRuntimeMode: "auto" instead of falling back to Supervised, and sets the ACP session mode to "auto" so agy's built-in automatic safety reviewer handles workspace edits and sandboxed/reviewed commands. (Accounts where agy omits auto from availableModes, such as Gemini Enterprise per agy 1.5.6 release notes, continue to omit Auto and fall back to Supervised.)

Actual behavior

T3 Code never offers Auto for Antigravity, falls back to Supervised (approval-required) when the global default is Auto, and rejects runtimeMode: "auto" in delegate_task.

Code paths on main (d738edf):

  1. supportedRuntimeModes still hardcodes only three modes (added in fix(server): Antigravity Auto asks instead of approving every request #23698 for the legacy 1.4.x agy_acp_server.par runtime, which only exposed default, auto_edit, and yolo without an automatic reviewer):

presentation: {
displayName: "Antigravity",
showInteractionModeToggle: false,
// No automatic review, so Auto falls back to Supervised instead of approving everything.
supportedRuntimeModes: ["approval-required", "auto-accept-edits", "full-access"],
},

  1. After feat(antigravity): migrate managed installs to native CLI #35487 migrated managed Antigravity installs to the native agy CLI (1.5.7), agy acp natively supports auto (added to agy acp in 1.5.4, with Auto becoming the CLI default in 1.5.7), yet mode mapping still maps auto -> "default" (and legacy yolo / auto_edit -> "default"):

export function antigravityPermissionMode(runtimeMode: RuntimeMode): string {
switch (runtimeMode) {
case "full-access":
return "yolo";
case "auto-accept-edits":
return "auto_edit";
case "auto":
case "approval-required":
return "default";
}
}
/**
* The agy CLI rejects the managed runtime's `yolo` and `auto_edit`. It stays in `default`, where
* it asks before acting and T3 answers from the live runtime policy, so permission changes apply
* on the next turn without a restart.
*/
export function antigravityCliSessionMode(modeId: string): string {
return modeId === "yolo" || modeId === "auto_edit" ? "default" : modeId;
}
/** The runtime mode an Antigravity session mode grants; the inverse of `antigravityPermissionMode`. */
export function antigravityRuntimeModeForSessionMode(modeId: string): RuntimeMode | undefined {
switch (modeId) {
case "yolo":
return "full-access";
case "auto_edit":
return "auto-accept-edits";
case "default":
return "approval-required";
default:
return undefined;
}
}

...(executable.harnessPath === null
? { setMode: (modeId: string) => runtime.setMode(antigravityCliSessionMode(modeId)) }
: {}),

Note on prior issues: #23698 addressed legacy 1.4.x agy_acp_server.par lacking an automatic review mechanism, and #31964 was filed before #35487 migrated managed installs to the native agy CLI.

Impact

Major degradation or frequent failure

Version or commit

main @ d738edf

Environment

macOS (Apple Silicon), native agy CLI 1.5.6 (Antigravity ACP Server 1.5.6)

Logs or stack traces

$ agy --version
1.5.6

# Direct `agy acp --stdio` probe (`initialize` -> `session/new`):
INIT: {
  "name": "Antigravity ACP Server",
  "version": "1.5.6"
}
SESSION_NEW: {
  "currentModeId": "default",
  "availableModes": [
    {
      "id": "default",
      "name": "Default",
      "description": "Ask before edits and commands, per your permission settings."
    },
    {
      "id": "accept-edits",
      "name": "Accept edits",
      "description": "Approve file edits in the workspace without asking."
    },
    {
      "id": "auto",
      "name": "Auto",
      "description": "Approve edits and safe commands; ask before irreversible actions."
    },
    {
      "id": "plan",
      "name": "Plan",
      "description": "Plan carefully before executing a task."
    }
  ]
}

# `agy changelog` excerpt:
# 1.5.4: Added Auto mode to `agy acp` sessions, so editors can switch a session to `auto` wherever the CLI itself offers Auto mode; it approves edits inside the workspace and runs commands in the terminal sandbox, and still asks before commands that would leave the sandbox unless Auto mode's review clears them.
# 1.5.6: ... Gemini Enterprise accounts keep following their organization's admin-controlled permission settings ... and are not offered Auto mode.

Workaround

Manually switch every new Antigravity thread from Supervised to Full access or Auto-accept edits.

Activity

  1. juliusmarminge commented on Nov 15, 2026

    @juliusmarminge
    Member

    I tried to reproduce this on the current build and could not.

    Commit 154c0fd (origin/main). Antigravity is not available on the VM, so a live run against native agy acp was not possible. Instead I added a test to apps/server/src/provider/AntigravityProvider.test.ts, 'offers Auto once a native agy session advertises its auto mode'. It calls provider.onSessionStarted with agentInfo version 1.5.6 and a sessionSetupResult whose modes.availableModes are default, accept-edits, auto and plan, the reporter's probe output. vp test run src/provider/AntigravityProvider.test.ts fails 1 of 24: expected [ 'approval-required', 'auto-accept-edits', 'full-access' ] to include 'auto'. Separately, by reading the code: antigravityPermissionMode('auto') returns 'default', so the native session never enters 'auto'.

    Closing as not planned. If it still happens for you, reply with the exact steps and the version you are on and it will be looked at again.

  2. added 8 commits that reference this issue on Nov 16, 2026
    1b6c46e
    618a15a
    198a033
    1437bdc
    fa0473d
    06bbf01
    07fafa0
  3. annopdanai commented on Nov 18, 2026

    @annopdanai

    This still happens for me.

    Versions: T3 Code 0.1.10 desktop on Windows 11. Steps 1 to 3 run the native agy CLI 1.5.10 directly. Step 4 is T3's Antigravity instance with Binary path left empty, so it uses T3's automatic runtime, which reports 1.3.0. The code below is the same on main at f5f8c8d.

    1. agy advertises Auto over ACP. Run agy acp --stdio, send initialize, then session/new. The reply's modes lists:

    • default: "Ask before edits and commands, per your permission settings."
    • accept-edits
    • auto: "Approve edits and safe commands; ask before irreversible actions."
    • plan

    currentModeId is default.

    2. In default, a command asks the client. In that session, prompt "run git --version". agy sends session/request_permission (kind execute) to the client.

    3. In auto, the same command runs without asking. Same as step 2, but first send session/set_mode with modeId: "auto". git --version runs and returns git version 2.56.0.windows.4. agy sends no session/request_permission.

    4. T3 never selects Auto. With the automatic runtime, a Claude thread in Auto delegates a read-only review to Antigravity (gemini-4-hydrogen-high) without setting a runtime mode. The child runs in auto-accept-edits, and every shell command raises an approval for the human. That was 8 command approvals in one review. The reason is in the code:

    • supportedRuntimeModes for Antigravity is ["approval-required", "auto-accept-edits", "full-access"] (AntigravityProvider.ts), so Auto is never offered.
    • antigravityPermissionMode("auto") returns "default" (AntigravityAcpSupport.ts), so the session never enters auto.
    • The provider builds its options with modeState: undefined, so no Mode choice is offered either.

    PR #35540 looks like it covers this for a custom binary pointing at native agy. I haven't tried that build.

    Expected. When session/new advertises auto, T3 should offer Auto for Antigravity and set the ACP session mode to auto. agy's own reviewer would then handle safe commands, the way Claude's Auto and Codex's reviewer already do in T3.

  4. added 4 commits that reference this issue on Nov 19, 2026
    2b9955d
    fea5dfc
    1f044c7
    38909e8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions