Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Antigravity Auto asks instead of approving every request #23698

Mergedparmartejass(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/23698/headmerged by maria-rcks View on GitHub

Problem

Antigravity threads set to Auto can silently approve permission requests, although docs/user/permission-modes.md says providers without automatic review fall back to asking. Antigravity did not declare its supported runtime modes, so Auto reached the shared ACP policy without a review mechanism.

Change

Declare Antigravity's supported modes as Supervised, Auto-accept edits, and Full access. The existing central runtime policy maps Auto threads to Supervised, and the provider snapshot no longer offers Auto in the picker.

Scope and approval

This is a small, focused fix restoring documented permission behavior, qualifying for the obvious-bug exception in CONTRIBUTING.md. No new permission policy or provider-specific fallback is introduced.

Verification

  • vp test run apps/server/src/provider/AntigravityProvider.test.ts apps/server/src/orchestration-v2/RuntimePolicy.test.ts apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.ts: 26 tests passed.
  • vp run check:changed upstream/main: format, lint, knip, GraphQL generation check, affected-package typecheck, and adjacent tests passed.
  • Reviewed the central runtime fallback and documented behavior.
  • A live Antigravity session was not exercised.

Ported from https://github.com/parmartejass/t3code/pull/3.

Original implementation: Claude Code (model not recorded in the source PR). Reviewed and verified with GPT-6 in Codex.

    1. chatgpt-codex-connector[bot](GitHub profile, opens in a new tab)commented

      Codex Review Summary

      This comment shows the latest Codex review activity on this pull request.

      ReviewStatusCommitReview trigger
      📝 Code Review✅ Completed 2026-10-22T15:43:53.894465Zf03620cPR opened
      ℹ️ About Codex in GitHub

      Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

      • Open a pull request for review
      • Mark a draft as ready
      • Comment "@codex review" or "@codex security review".

      Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

    2. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      Important

      Review skipped

      Review was skipped as selected files did not have any reviewable changes.

      Run configuration
      Commits

      Reviewing files that changed from the base of the PR and between 45112ebf9c23478db1a5a49b24948cca17266c6c and 8a892f550a8ce59cc3fdbe3c00945cc83d80049d.

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • Trigger review

      No actionable comments were generated in the recent review.

      Recent review info
      Run configuration
      Commits

      Reviewing files that changed from the base of the PR and between e925dd681904f8a1ead0502ecca3f65f5bc28146 and 45112ebf9c23478db1a5a49b24948cca17266c6c.

      Files selected for processing: 3
      • apps/server/src/orchestration-v2/RuntimePolicy.test.ts
      • apps/server/src/provider/AntigravityProvider.test.ts
      • apps/server/src/provider/AntigravityProvider.ts

      Limit details: You’ve used all 10 included reviews currently available.

      Walkthrough

      Antigravity now declares approval-required, auto-accept-edits, and full-access as supported runtime modes. Tests verify the declaration and check permission outcomes, including the fallback from stored auto mode.

      Changes: Antigravity runtime modes

      Layer / File(s)Summary
      Declare supported provider modes
      apps/server/src/provider/AntigravityProvider.ts, apps/server/src/provider/AntigravityProvider.test.ts
      The provider presentation declares approval-required, auto-accept-edits, and full-access. A provider test verifies these modes and confirms auto is omitted.
      Verify runtime policy outcomes
      apps/server/src/orchestration-v2/RuntimePolicy.test.ts
      Tests verify that stored auto resolves to approval-required; permission disposition is ask for that fallback and auto-accept-edits, and allow for full-access.

      Estimated code review effort: 2 (Simple) | ~8 minutes

      Change: Bug fix

      Suggested reviewers: juliusmarminge

      Merge Risk: Minimal · previous review 45112

      The provider modes and stored Auto fallback align with the intended approval behavior.

      Pre-merge checks: Passed 4
      Check nameStatusExplanation
      Title checkPassedThe title clearly and concisely describes the main change: Antigravity Auto mode now asks for permission instead of approving every request.
      Description checkPassedThe description includes complete Problem, Change, Scope and approval, and Verification sections. It explains the documented behavior, implementation, approval exception, focused test results, broader…
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      Full details: Description check

      Explanation

      The description includes complete Problem, Change, Scope and approval, and Verification sections. It explains the documented behavior, implementation, approval exception, focused test results, broader checks, and the limitation that no live authenticated Antigravity session was tested.

      Finishing Touches
      Generate unit tests (beta)
      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
    3. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    4. Approvability

      Verdict: Needs Human Approval

      Macroscope's review found this PR requires human approval — This focused change removes unsupported Auto behavior from Antigravity and causes stored Auto threads to require approval instead of automatically accepting requests. Because it changes authorization-sensitive agent permission handling, human review is warranted.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    5. Note

      Written by gpt-6.1-sol on behalf of Maria

      updated the original branch at 656c715d869b40bb46cae6894c512b0fd83089d1.

      thanks @parmartejass. the capability declaration already uses the smallest existing mechanism: unsupported auto falls back to supervised centrally. i preserved your commit, merged current main (0a3b561bc0), and added one regression in the existing runtime-policy test file. it checks that stored auto asks for command approval, auto-accept edits still asks for commands, and full access allows them. nothing from the original fix was dropped.

      verification:

      • the original regression fails against current main with missing supported modes.
      • 40 focused tests pass through blacksmith; vp run check:changed passes format, lint, both knip passes, generated-file checks, affected typechecks, and adjacent tests.
      • github ci passes, including build/typecheck, lint, all eight server shards, and the aggregate check. native fingerprint passes.
      • the real app installed and initialized google's antigravity 1.3.0 in system chrome.
      • two independent gpt-6.1-sol reviews found no code defects on this head. both remain blocked on live proof. coderabbit is rate limited; the existing macroscope review requires human approval.

      unverified: this vm has no antigravity account or api credentials. signed-in stored-auto approval delivery, approve/decline continuation, nearby modes, and matching before/after interaction evidence still need a live account. the screenshot proves installation only. web/desktop and mobile consume the same capability declaration; native clients and remote/tunnel behavior were not exercised. status: waiting on live verification and human review.

      real app with antigravity 1.3.0 installed and account sign-in still required

    6. maria-rckscommented

      Note

      Written by gpt-6.1-sol on behalf of Maria

      Verified in a real dev environment

      partial verification of 656c715d869b40bb46cae6894c512b0fd83089d1 on this linux boat vm. no source changes or pushes.

      • installed dependencies and ran github/main (49a9e80e0b) in a separate worktree, then stopped it before running the exact pr head with an isolated home. used repository playwright and /usr/bin/google-chrome.

      • created a project pointing at the real checkout through the app, selected codex gpt-6.1-sol, and completed real command turns on both versions. on the pr, full access completed pwd and git rev-parse --is-inside-work-tree; switching to auto and sending a follow-up completed git status --short. existing conversation content remained readable.

      • installed antigravity 1.3.0 through settings on both versions. the live websocket provider snapshot sent to the web client changed from an absent supportedRuntimeModes on main to ["approval-required", "auto-accept-edits", "full-access"] on the pr.

      • sign-in reached "finish signing in in your browser"; cancel returned to retry sign-in. no mocks, fixtures, or synthetic models were used.

      • vp test run apps/server/src/provider/AntigravityProvider.test.ts apps/server/src/orchestration-v2/RuntimePolicy.test.ts apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.ts passed through blacksmith: 3 files, 27 tests. the existing pr ci snapshot has 25 successful checks.

      runtime transcript

      real codex command turn and auto follow-up on the pr

      antigravity installed and awaiting google sign-in on the pr

      real antigravity sign-in attempt and cancellation

      Not verified

      this vm has codex access but no authenticated antigravity account or gemini credentials. antigravity reports zero models until sign-in. therefore i could not reproduce silent approval on main or prove that a stored auto thread asks on the pr. its model permission picker, approve/decline continuation, auto-accept edits, and full access still require live antigravity verification. codex turns do not prove the antigravity acp permission path.

      the initial pr web load produced blank dom reads/timeouts and a logged 33s server event-loop stall; a reload recovered. its cause was not isolated.

      native desktop, ios/android, and remote/tunnel connections were not exercised. the evidence above proves setup and partial server/client integration, not completion of the permission fix's end-to-end verification.

      2026-11-02 merge fixup

      merged current main through 05c0ed7da69ee6aceab8fad84e8a0dc0c474138a into the original contributor branch, without rebasing or force-pushing. final head: 8a892f550a8ce59cc3fdbe3c00945cc83d80049d. the only conflict was adjacent imports in RuntimePolicy.test.ts; retained both the acp permission helper and main's server settings import, preserving the fallback regression and policy-ceiling coverage. no feature changes were added. the diff remains three files, 46 additions and one deletion.

      verified this run on the final head:

      • blacksmith: vp run check:changed 05c0ed7da69ee6aceab8fad84e8a0dc0c474138a passed format, lint, both knip passes, generated graphql, affected typechecks, and 25 tests.
      • blacksmith: the existing antigravity adapter and acp client policy suites passed another 25 tests.
      • all 29 head check contexts are successful; zero pending or failing. github reports clean and mergeable.
      • two independent gpt-6.1-sol reviews approve this exact head with no blocker or should-fix findings. the completed bot review produced no actionable comments; the subsequent clean main merge had no reviewable changes.

      unverified: authenticated antigravity permission delivery and approve/decline continuation through the real client remain unverified. no new live browser verification was performed in this merge-only pass. the existing human-approval requirement remains. nothing was merged or closed, and no labels changed.

    7. maria-rcks merged thisb6bd84d

    8. maria-rcks closed this

Sign in to join this conversation.