Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(antigravity): agy CLI threads open in Full access and Auto-accept edits #33143

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/33143/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

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

DelegateRound 1Round 2Round 3Round 4
Claude Opus 5.58/109/109/1010/10
Muse Wonder Full8/109/109/109/10
Codex GPT-6.1 Sol7/109/109/109/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

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. Approvability

      Verdict: Approved at 64b56d6

      Macroscope'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).
    3. Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire5.0 KiB5.0 KiB0 B (0.0%)6.8 KiB✅
      CodexThread snapshot wire3.8 KiB3.8 KiB0 B (0.0%)4.9 KiB✅
      CodexLive turn WebSocket wire1.2 KiB1.2 KiB0 B (0.0%)2.0 KiB✅
      CodexLive turn WebSocket decoded21.5 KiB21.5 KiB0 B (0.0%)24.4 KiB✅
      CodexLive turn messages110 (0.0%)8✅
      ClaudeTotal thread wire5.0 KiB5.0 KiB0 B (0.0%)6.8 KiB✅
      ClaudeThread snapshot wire3.8 KiB3.8 KiB0 B (0.0%)4.9 KiB✅
      ClaudeLive turn WebSocket wire1.2 KiB1.2 KiB0 B (0.0%)2.0 KiB✅
      ClaudeLive turn WebSocket decoded21.9 KiB21.9 KiB0 B (0.0%)24.4 KiB✅
      ClaudeLive turn messages110 (0.0%)8✅

      Baseline: b24959d · PR result: 64b56d6 · Source CI: success

      Scenario and decoded snapshot size

      10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

      • Codex decoded thread snapshot: 108.5 KiB
      • Claude decoded thread snapshot: 108.8 KiB

      Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

Sign in to join this conversation.