Skip to content

fix(antigravity): pre-approve direct Threadlines MCP calls and add session approvals - #1076

Merged
badcuban merged 2 commits into
mainfrom
fix/antigravity-permission-prompts
Nov 24, 2026
Merged

badcuban merged 2 commits into
mainfrom
fix/antigravity-permission-prompts

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

Antigravity CLI 1.5 invokes attached HTTP MCP tools directly as kind: "other" with Run mcp_<server>_<tool> titles instead of the legacy call_mcp_tool wrapper, so Threadlines' built-in room, page, command, and device tools still prompted for approval in Auto and Supervised modes. Its ACP server also sends only allow_once and reject_once permission options, leaving users with only "Approve once" on every prompt.

This PR:

  • Recognizes direct Threadlines MCP tool calls against the exact registered tool inventory in AntigravityToolCalls (tracking established wire mode and checking merged edit/terminal/command evidence), so room, pages, commands, and device tools auto-approve once while threadlines_browser, external MCP servers, and spoofed or conflicting updates still prompt.
  • Adds client-side in-memory session approval grants in AcpAdapter and AcpSessionApprovals for ACP descriptors with clientSessionApprovals: true (enabled on Antigravity) when an explicit allow_once is offered without allow_always. Grants resolve matching future and concurrently pending cards with allow_once, propagate allow_once security warnings to the session button, pause in Plan mode, and clear when the session ends.
  • Scopes session grants conservatively: exact MCP server and tool, working-directory-bound commands (with POSIX prefix matching only for reviewed read-only git and gh subcommands, exact match for everything else), and symlink-verified workspace edits.

…ssion approvals

Antigravity CLI 1.5 invokes attached HTTP MCP tools directly as kind "other" with "Run mcp_<server>_<tool>" titles rather than through the legacy call_mcp_tool wrapper, so Threadlines' built-in room, page, command, and device tools still prompted for approval in Auto and Supervised modes. Its ACP server also sends only allow_once and reject_once options on permission requests, so users had no way to allow a tool or command for the session.

Recognized direct Threadlines MCP tool calls against the exact registered tool inventory in AntigravityToolCalls (preserving wrapper and conflict checks) so pre-approved Threadlines MCP servers auto-approve once while browser, external, and conflicting calls still prompt. Added client-side in-memory session approval grants in AcpAdapter and AcpSessionApprovals for descriptors with clientSessionApprovals enabled (Antigravity), scoped to exact MCP tools, working-directory-bound commands (with read-only prefix matching only for reviewed git/gh subcommands on POSIX), and symlink-verified workspace edits, with Plan mode pause and security warning propagation.
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Nov 24, 2026 2:16am UTC

Request Review

@badcuban
badcuban added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 72d1834 Nov 24, 2026
23 checks passed
@badcuban
badcuban deleted the fix/antigravity-permission-prompts branch November 24, 2026 02:34

This branch was previously deployed

1 inactive deployment
Preview — f31b696d Deployed Nov 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant