Skip to content

[Bug]: Antigravity Auto asks before reads that every other runtime mode allows #40127

Open

Description

@arshaw

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

  1. Start an Antigravity thread in Auto.
  2. Ask the agent to read a file outside the thread's working directory, for example a sibling repo's README.md.

Expected behavior

The read goes through without a prompt, as it does in Supervised, Auto-accept edits and Full access. #13584 set the rule: "Reads follow the sandbox and never ask… whatever the approval policy", and a read-kind session/request_permission is "auto-allowed, even though the provider chose to ask."

Actual behavior

Every file-tool read outside the working directory shows an approval card. The card offers only Allow once and Reject once, so a single investigation can produce dozens of cards.

Cause: antigravityPermissionDisposition (apps/server/src/provider/acp/AntigravityAcpSupport.ts:184, added in #39378) changes every non-deny decision to ask in Auto:

// agy's Auto has already reviewed what it sends; the user decides unless the sandbox forbids it.
return policy.runtimeMode === "auto" && disposition !== "deny" ? "ask" : disposition;

The comment assumes agy's Auto has already reviewed whatever it sends. That isn't true for file reads: agy's Auto review only evaluates terminal commands that leave the sandbox (docs, and google-antigravity/antigravity-cli#1488). agy sends a read permission request for every non-workspace path that its own settings don't allow. T3's private agy profile has no user read_file rules (its settings.json is rewritten on every launch), so in practice every read outside the working directory reaches this override, and the shared policy's allow becomes ask.

#39866 calls this override intended. That holds for commands, but agy's Auto never reviews file reads, so for reads the premise in the code comment is false.

The result is that Auto prompts more than Supervised does.

Suggested fix

Skip the override for read-kind requests, for example isAcpReadKind(request.toolCall.kind). #39822 already adds a similar exemption to the same function for t3-code MCP calls.

Impact

Major degradation or frequent failure

Auto is unusable for any cross-repo work with Antigravity. Users drop to Supervised, which allows these reads anyway, or to Full access.

Version or commit

v0.1.11 (59651c17), agy 1.5.13

Environment

macOS, desktop app

Logs or stack traces

No response

Screenshots, recordings, or supporting files

No response

Workaround

Use Auto-accept edits or Supervised instead of Auto. In both, T3's shared policy allows these reads without a card. Auto-accept edits is the closest to Auto: edits run without asking, reads outside the workspace are allowed, and only commands and MCP calls ask. (MCP calls still ask in Auto as well; see #38806.)

Alternatively, point the thread at a parent folder (for example the directory that holds all the repos involved). agy then treats those paths as part of the workspace and never sends a read request.

Full access also avoids the cards, but it removes all approval.

Activity

  1. added
    bug
    needs-triage
    on Nov 21, 2026
  2. changed the title [-][Bug]:[/-] [+][Bug]: Antigravity Auto asks before reads that every other runtime mode allows[/+] on Nov 21, 2026
  3. fcakyon commented on Nov 21, 2026

    @fcakyon
    Contributor

    +1, confirmed on Linux x64 (T3 Code 0.1.12-nightly, agy 1.5.12, Google sign-in, thread in Auto running inside a git worktree).

    Live observation

    • Reads inside the worktree completed silently.
    • Reading a file in the sibling main checkout (<repo>/.agents/skills/fork-nightly/SKILL.md) raised a file-read approval prompt (Allow once / Deny / Cancel) and blocked the turn overnight until manually approved.

    Test reproduction & suggested fix verification

    • In apps/server/src/provider/acp/AntigravityAcpSupport.test.ts, running antigravityPermissionDisposition in "auto" mode for read, search, and think returned "ask" instead of "allow" on base 7040a39cd0 (origin/main 97e7834f4b).
    • Exporting isAcpReadKind from packages/provider-acp/src/server/clientPolicy.ts and returning disposition in antigravityPermissionDisposition when disposition !== "deny" and isAcpReadKind(request.toolCall.kind ?? "other") holds restores "allow" for read/search/think (matching Supervised and Auto-accept edits), preserves "deny" when sandbox rejects the read, and keeps "ask" for execute and edit.
    • Verified across AntigravityAcpSupport.test.ts (60 tests) and clientPolicy.test.ts (13 tests) — all passed.
  4. fcakyon commented on Nov 21, 2026

    @fcakyon
    Contributor

    Follow-up with live post-deploy confirmation (Linux x64, Google sign-in, native runtimeMode: "auto", agy 1.5.12) running the suggested isAcpReadKind exemption in antigravityPermissionDisposition:

    • Reading a file in the sibling main checkout outside the thread's git worktree (read_file on <main-checkout>/fcakyon-changelog.md) now completes in <1s with 0 approval prompts.
    • Previously on origin/main, reading files in that sibling checkout from a worktree thread in Auto raised a file-read approval card and blocked the turn until manually approved.
  5. ondrej-merkun commented on Nov 23, 2026

    @ondrej-merkun

    +1, hitting this too on macOS.

    Environment: T3 Code 0.1.11, macOS arm64, managed Antigravity CLI 1.5.13 (gemini-4-neon, Google OAuth sign-in).

    What happens:

    • In an Antigravity thread running in Auto mode, all in-workspace file reads and sandboxed shell commands run without prompting.
    • Reading a file outside the thread's working directory (for example, an app Info.plist under /Applications) raises a manual approval prompt, even though acpOperationDisposition allows read operations in every other runtime mode.
    • In the 0.1.11 server bundle, antigravityPermissionDisposition overrides any non-"deny" disposition back to "ask" whenever policy.runtimeMode === "auto", which catches read/search/think requests too.

    Preserving "allow" for read-kind requests in antigravityPermissionDisposition (as noted above) would make Auto consistent with the other runtime modes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions