Skip to content

fix(agents): run managed Antigravity agents on the host's signed-in agy like chats - #45117

Merged
Jinwoo-H merged 2 commits into
mainfrom
fix/managed-agent-agy-detection
Nov 20, 2026
Merged

Jinwoo-H merged 2 commits into
mainfrom
fix/managed-agent-agy-detection

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Problem

A managed agent set to Antigravity failed at setup with "Antigravity isn't installed on the computer running this chat", even when agy was installed and signed in.

Cause

Managed agents on Antigravity were forced onto Orca's own downloadable Antigravity server and never considered the host's agy, even though regular chats do. The agent picker offered Antigravity because that server can be installed on the platform. The launch then needed it to be already installed, and it usually wasn't, so it failed with runtimeNotInstalled.

The rule existed so managed agents would only run a server that accepts standing instructions. Two things already cover that: the host check for agy, and the launch handshake, which refuses any server that does not advertise systemPrompt.append.

Fix

Delete the managed-agent-only override. Managed agents now pick their Antigravity backend through the same account-home selection as chats: the host's signed-in, compatible agy first, otherwise Orca's server. The create/update refusal and the picker filter that came with the override are deleted too.

Verification

  • structured-session-account-home-bot.test.ts used to assert the bug (a managed agent's Antigravity chat never asks about the host's agy). It now asserts the managed agent launches on the host's signed-in agy. It failed before the fix and passes after.
  • Raw ACP session against host agy acp 1.5.13 with a managed-agent-style launch: the appended system prompt took effect, a stdio MCP tool and an HTTP MCP tool were both called, and a "reply NO_REPLY" instruction was followed.
  • pnpm tc, touched tests, oxlint/oxfmt, and the changed-code quality gate all pass.
Files Added Deleted Net
Test 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​60 $\color{#cf222e}{\Huge{\mathbf{−}}}$​96 $\color{#cf222e}{\Huge{\mathbf{−}}}$​36
Prod 16 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​13 $\color{#cf222e}{\Huge{\mathbf{−}}}$​96 $\color{#cf222e}{\Huge{\mathbf{−}}}$​83

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change removes managed-runtime host-refusal checks from bot creation, updates, session starts, automation operations, and agent-choice filtering. Bot agent menus no longer include managed-runtime agent data. ACP host account-home selection no longer excludes bot requests based on managed-runtime requirements, and chat account-home resolution no longer passes a bot-specific option. Antigravity host compatibility checks now require system-prompt support. Tests remove refusal expectations and add coverage for resolving GEMINI_HOME from the host account home.

Merge Risk: Minimal · up to 9948a

Managed Antigravity agents now use the host's signed-in agy when it supports standing instructions, and otherwise fall back to Orca's server. No concrete merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the fix (managed Antigravity agents run on the host's signed-in agy, matching chats). The raw summary confirms the change removes the managed-agent-only Antigravity override and uses t…
Description check Passed The description follows the template well. It explains the problem, cause, and fix in plain terms, and gives verification steps (the updated test, a raw ACP session against host agy 1.5.13, and the ch…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the fix (managed Antigravity agents run on the host's signed-in agy, matching chats). The raw summary confirms the change removes the managed-agent-only Antigravity override and uses the same account-home selection as chats, so the title matches the main change. It is specific, single-sentence, and uses the conventional fix(agents) prefix.

Full details: Description check

Explanation

The description follows the template well. It explains the problem, cause, and fix in plain terms, and gives verification steps (the updated test, a raw ACP session against host agy 1.5.13, and the checks that passed). It does not fill the template's ELI5, Linked Issue ("Fixes #" is blank), Visual Proof, Risk level, Testing checkboxes, or Review sections. The Linked Issue is required for outside contributors, and the Risk section should name the riskiest part and how to back it out. The Visual Proof section is also needed if the behavior change is user-visible, which it is (the picker and launch behavior change). These gaps are non-critical to the overall description but should be completed before merge.

Resolution

Fill in the Linked Issue (replace the blank "Fixes #" with an actual issue number). Add an ELI5 summary. Add a Visual Proof section with before/after evidence of the managed-agent launch, or write N/A with a reason. Set the Risk level and describe the riskiest part, including the revert path. Tick the Testing checkboxes and fill in the Review and Agent skill upstream boundary sections.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 31a5403d-fd63-482d-89d4-49978da3d118
Commits

Reviewing files that changed from the base of the PR and between cb6120c and 9948a2f.

Files selected for processing: 4

  • src/main/antigravity/antigravity-host-acp.test.ts
  • src/main/antigravity/antigravity-host-acp.ts
  • src/main/runtime/agent-session/installation/structured-agent-runtime-metadata.ts
  • src/main/runtime/rpc/methods/structured-sessions/catalog/structured-agent-session-agents.ts
Files with no reviewable changes: 1

  • src/main/runtime/agent-session/installation/structured-agent-runtime-metadata.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant