fix(server): Antigravity Auto asks instead of approving every request #23698
main fromrefs/pull/23698/head·merged by maria-rcks View on GitHubProblem#
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
Important
Review skipped#
Review was skipped as selected files did not have any reviewable changes.
Run configuration-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: 05c0ed7
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
36d2bd3d-e707-4263-95f5-b0ed2183da7d
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_statustofalsein 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-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: e925dd6
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
a8700e6e-0018-4d12-bbfe-bf15a866dbf1
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.tsapps/server/src/provider/AntigravityProvider.test.tsapps/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, andfull-accessas supported runtime modes. Tests verify the declaration and check permission outcomes, including the fallback from storedautomode.Changes: Antigravity runtime modes
Layer / File(s) Summary Declare supported provider modes
apps/server/src/provider/AntigravityProvider.ts,apps/server/src/provider/AntigravityProvider.test.tsThe provider presentation declares approval-required,auto-accept-edits, andfull-access. A provider test verifies these modes and confirmsautois omitted.Verify runtime policy outcomes
apps/server/src/orchestration-v2/RuntimePolicy.test.tsTests verify that stored autoresolves toapproval-required; permission disposition isaskfor that fallback andauto-accept-edits, andallowforfull-access.Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix
Suggested reviewers:
juliusmarminge
Merge Risk:
Minimal · previous review45112-
The provider modes and stored Auto fallback align with the intended approval behavior.
Pre-merge checks:
4-
Check name Status Explanation Title check The title clearly and concisely describes the main change: Antigravity Auto mode now asks for permission instead of approving every request. Description check The 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 check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check 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
-
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
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).Note
Written by
gpt-6.1-solon behalf of Mariaupdated 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:changedpasses 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.

Note
Written by
gpt-6.1-solon behalf of MariaVerified in a real dev environment#
partial verification of
656c715d869b40bb46cae6894c512b0fd83089d1on 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 completedpwdandgit rev-parse --is-inside-work-tree; switching to auto and sending a follow-up completedgit 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
supportedRuntimeModeson 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.tspassed through blacksmith: 3 files, 27 tests. the existing pr ci snapshot has 25 successful checks.



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
05c0ed7da69ee6aceab8fad84e8a0dc0c474138ainto 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 05c0ed7da69ee6aceab8fad84e8a0dc0c474138apassed 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.
maria-rcks merged thisb6bd84d
maria-rcks closed this
Sign in to join this conversation.
Codex Review Summary#
This comment shows the latest Codex review activity on this pull request.
f03620cℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.