Repository navigation
Description
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
- Install or update Antigravity to the native
agyCLI (1.5.4+; managed installs now use1.5.7+since feat(antigravity): migrate managed installs to native CLI #35487) signed in with an account that supports Auto mode. - Verify via
agy acp --stdiothatsession/newadvertises"id": "auto"inmodes.availableModes(default,accept-edits,auto,plan). - Open T3 Code, select the Antigravity provider, and open the composer permission mode picker (or leave global
defaultRuntimeModeset 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):
supportedRuntimeModesstill hardcodes only three modes (added in fix(server): Antigravity Auto asks instead of approving every request #23698 for the legacy1.4.xagy_acp_server.parruntime, which only exposeddefault,auto_edit, andyolowithout an automatic reviewer):
t3code/apps/server/src/provider/AntigravityProvider.ts
Lines 187 to 192 in d738edf
| 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"], | |
| }, |
- After feat(antigravity): migrate managed installs to native CLI #35487 migrated managed Antigravity installs to the native
agyCLI (1.5.7),agy acpnatively supportsauto(added toagy acpin1.5.4, withAutobecoming the CLI default in1.5.7), yet mode mapping still mapsauto->"default"(and legacyyolo/auto_edit->"default"):
t3code/apps/server/src/provider/acp/AntigravityAcpSupport.ts
Lines 174 to 207 in d738edf
| 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; | |
| } | |
| } |
t3code/apps/server/src/provider/Drivers/AntigravityDriver.ts
Lines 286 to 288 in d738edf
| ...(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
juliusmarminge commentedon Nov 15, 2026
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 acpwas 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.tsfails 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.
fix(antigravity): offer Auto permission mode when agy ACP advertises it
fix(antigravity): offer Auto permission mode when agy ACP advertises it
fix(antigravity): offer Auto permission mode when agy ACP advertises it
fix(antigravity): offer Auto permission mode when agy ACP advertises it
fix(antigravity): offer Auto permission mode when agy ACP advertises it
fix(antigravity): offer Auto permission mode when agy ACP advertises it
fix(antigravity): offer Auto permission mode when agy ACP advertises it
annopdanai commentedon Nov 18, 2026
This still happens for me.
Versions: T3 Code 0.1.10 desktop on Windows 11. Steps 1 to 3 run the native
agyCLI 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 onmainat f5f8c8d.1. agy advertises Auto over ACP. Run
agy acp --stdio, sendinitialize, thensession/new. The reply'smodeslists:default: "Ask before edits and commands, per your permission settings."accept-editsauto: "Approve edits and safe commands; ask before irreversible actions."plancurrentModeIdisdefault.2. In
default, a command asks the client. In that session, prompt "rungit --version". agy sendssession/request_permission(kindexecute) to the client.3. In
auto, the same command runs without asking. Same as step 2, but first sendsession/set_modewithmodeId: "auto".git --versionruns and returnsgit version 2.56.0.windows.4. agy sends nosession/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 inauto-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:supportedRuntimeModesfor 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 entersauto.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/newadvertisesauto, T3 should offer Auto for Antigravity and set the ACP session mode toauto. agy's own reviewer would then handle safe commands, the way Claude's Auto and Codex's reviewer already do in T3.fix(antigravity): offer Auto permission mode when agy ACP advertises it
fix(antigravity): offer Auto permission mode when agy ACP advertises it
fix(antigravity): offer Auto permission mode when agy ACP advertises it
fix(antigravity): offer Auto permission mode when agy ACP advertises it