Using the Antigravity agy CLI as the custom binary broke most threads. T3 sent the managed runtime's yolo (Full access) and auto_edit (Auto-accept edits) session modes. The CLI only knows default, accept-edits, and plan, so the session failed to open:
Invalid value "yolo" for session config option "mode": expected one of default, accept-edits, plan
Full access is the default mode, so every new CLI thread failed. See #32856.
Fix#
When the runtime is the CLI, T3 sends default in place of yolo and auto_edit. In default the CLI asks before it acts, and T3 already answers those requests from the live permission setting: Full access allows, Auto-accept edits allows edits, and Supervised asks. So permission changes apply on the next turn, with no bypass flag and no process restart. The managed runtime is unchanged.
This takes over #32875 by @Q3yp, and their commits are kept. That PR launched agy acp --dangerously-skip-permissions for Full access and replaced the session on every permission change. Review found that a downgrade made while a session was still opening could leave the bypass flag on. Answering permissions in T3 removes the flag, and with it the race, and cuts the change to about 13 source lines.
Proof#
- Real
agy 1.5.3 against a T3 dev server. On main, a Full access thread fails with the error above. On this branch one agy acp process (same PID, no flag) handles every switch:
- Full access: a shell command runs with no prompt.
- Supervised: the same command asks for approval, and deny works.
- Auto-accept edits: a file edit applies with no prompt, and a shell command asks.
- Full access again: the shell command runs with no prompt.
- The driver test opens CLI sessions in Full access and Auto-accept edits from a non-default mode, and asserts each one sends exactly
default. It fails on main with ["yolo"].
Council review#
Rounds: 4
| Delegate | Round 1 | Round 2 | Round 3 | Round 4 |
|---|
| Claude Opus 5.5 | 8/10 | 9/10 | 9/10 | 10/10 |
| Muse Wonder Full | 8/10 | 9/10 | 9/10 | 9/10 |
| Codex GPT-6.1 Sol | 7/10 | 9/10 | 9/10 | 9/10 |
Round 1 reviewed the bypass-flag design and led to the simpler fix above.
Created with Claude Opus 5.5 in Claude Code (T3 Code).
🤖 Generated with Claude Code
Approvability#
Verdict: Approved at
64b56d6Macroscope's review found this PR approvable — This adapts Antigravity CLI mode requests so existing Full access and Auto-accept edits selections can open sessions. Product permission defaults and managed-harness behavior remain unchanged.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).