You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(bots): Install in a new bot's setup card, then carry on by itself - #45246
A new bot whose computer has no Antigravity failed at "Start Antigravity" with a sentence telling you to install it, and a Try again that could not help. The Install button did exist, but far below, above the message box. Now the setup card itself shows Install, with progress and Cancel, and setup carries on by itself once the install lands.
Bot setup card (BotFirstScreen, new useBotSetupInstall): when setup failed and the bot's computer reports nothing installed for its agent, the card shows the chat's own install strip in place of Try again. It is the same managedRuntime.install flow chats use, so it works for every agent Orca can install and for bots on remote computers.
Carries on after the install: once an install the card offered has landed, the card asks the host for the kickoff again (bots.kickoff.retry, which the host already de-duplicates). This also holds when you leave the bot's tab during the download and come back.
Sign-in too: when Orca's copy of Antigravity is installed but not signed in, the card shows the chat's sign-in chooser (Google, or a detected API key or gcloud login), and carries on once that is done. Without this the retry after an install would fail a second time on "not signed in".
No duplicate: the strip above the message box is hidden only while the card shows it. It stays for every other chat, and while the chat's history is still loading.
The host's sentence "Install it from the chat in a current version of Orca" is hidden while the card offers Install, because the button now says it.
Design decision: how Orca installs and runs Antigravity
Run Google's install script (install.sh | bash --dir <Orca folder>). Gives the real agy, but it is unpinned at the time it runs, runs agy install (edits the user's shell profiles and PATH), has a separate PowerShell twin, and gives Orca no progress, cancel, or checksum of its own.
Chosen: install the real agy through Orca's existing managed-agent-CLI system, the one that already installs Claude, Codex, OpenCode, Cursor, Copilot, Grok, Kimi and OMP. Google's installer is only a wrapper around a per-platform manifest (version, immutable versioned url, sha512), which is exactly what followLatestRelease consumes. Orca downloads the same file, verifies the same checksum, keeps it in its own folder, never touches the user's agy or shell, turns agy's self-updater off for its copy (AGY_CLI_DISABLE_AUTO_UPDATE, as host launches already do) and updates it itself. The user's own agy always wins.
Why 3 is right long term. One program instead of two, always current, same install, progress, cancel, remove and auto-update code as every other agent, 85–100 MB instead of 100–274 MB. What I verified against agy 1.5.13:
agy acp advertises all four sign-in methods the old server has (oauth-personal, oauth-business, gemini-api-key, agent-platform) plus logout and systemPrompt.append.
agy acp --gemini-dir <userData>/antigravity-chat --app-data-dir antigravity-acp reads Orca's existing chat home in place: it listed the old server's conversations, resumed one with its context, and answered on gcloud ADC with 30 models including Orchestrator. So moving existing users needs no history migration.
Not yet proven: Google and Enterprise OAuth on that isolated home. The old server keeps its token in a file (AGY_ACP_FORCE_FILE_STORAGE, absent from agy) and Orca captures its browser link through Python's BROWSER; agy needs agy acp --login in a terminal instead, and its keyring item must be shown not to collide with the user's own agy login. That needs a real account and is why the last step is separate.
Rejected: bumping the pin to agy_acp_server 1.5.2 (still behind, same bundle, six new hashes); installing into ~/.local/bin (would shadow or become "the user's agy", and agy would then self-update outside Orca's control).
Sequence and rollout
This PR: Install where the bot failure is. Independent of which program Install provides.
feat(antigravity): Install provides the real agy, like Orca's other agent CLIs #45333 (draft): Antigravity joins the managed-agent-CLI registry. On a computer with no agy, Install provides the real one and chats run it as agy acp; a signed-out agy offers Sign in (runs agy in a terminal) like other CLI agents. The old server stays for people who already have it and for API key, gcloud and Enterprise sign-in. Nobody is moved.
Later, needs a real Google and Enterprise account to test: run Orca-held sign-ins on agy with --gemini-dir, then delete the pinned server, its sign-in capture and its Windows extraction workaround. Existing chats keep their history because agy reads the same folder.
Visual Proof
Real dev Orca (worktree profile, ORCA_BACKGROUND_LAUNCH=1), a bot on Antigravity with nothing installed on this computer.
Setup failed, Install in the card:
Downloading and unpacking, with Cancel:
After the install landed, with no further click: the bot started and wrote its first message.
Installed but not signed in (saved method: Gemini Enterprise): the card offers sign-in. Choosing "Use gcloud" there started the bot with no further click.
Verification
Real dev Orca, end to end: created an Antigravity bot with nothing installed, pressed Install in the card, watched download, unpack and check, and the bot then started by itself and replied.
Left the bot's tab during the download and came back after it finished: setup carried on.
With Gemini Enterprise saved and nobody signed in: Install, then the sign-in chooser in the card, then "Use gcloud", then the bot started by itself.
Removed the runtime again: an ordinary (non-first-screen) bot chat still shows the strip above the message box.
pnpm check:changed passes.
Not exercised: a bot on a remote computer (same RPCs, routed through botTarget), and an install that fails mid-download in the card (the strip's own failed state, shared with chats).
Perf
The card subscribes to the host's install state only while its setup has failed, it is visible, and the chat is not on a host program; it adds no polling. Sign-in state is read only for Antigravity on Orca's copy, through the store the chat's own strip already uses. Nothing changes for chats that are not a new bot's first screen.
Review
Three adversarial review rounds by fresh reviewers. Fixed: the subscription stops while hidden or on a host program; Install stays above the message box while the chat's history is reloading; the retry survives leaving the tab mid-download; the retry no longer fires into a signed-out Antigravity (the card offers sign-in instead); the retry memory is keyed by host and bot; the retry waits out an update of Orca's copy. Left as is: a bot whose agent was changed in Settings while its old, failed Home is still open reads the new agent's install state (the retry then replaces the Home on the new agent).
The bot setup screen can show an install or sign-in strip when setup has failed and an applicable action is available. The setup hook observes managed installation only while the bot is shown and has no structured host program. It tracks offered setup steps and retries setup after the applicable install or sign-in state clears. The structured-session view marks the install slot as in-card when ready and setup has failed, which suppresses its strips.
Merge Risk: Moderate · up to 9c576
Installation cannot automatically continue bot setup while its tab is hidden; users must return to resume recovery. Keep pending recovery active independently of visibility before merging.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: the bot setup card now offers an install action, and setup continues by itself after the install. The changeset matches this: BotFirstScreen, useBotSetupInstall, and t…
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.
Description check
The description is thorough and covers nearly every template section. It has an ELI5, a detailed What Changed section, a Why section with options considered and a rollout sequence, Visual Proof with b…
Full details: Title check
Explanation
The title names the main change: the bot setup card now offers an install action, and setup continues by itself after the install. The changeset matches this: BotFirstScreen, useBotSetupInstall, and the NativeChatInstallSlot inCard prop all support it. The title follows the conventional feat(scope) form and is specific enough for a teammate scanning history. It is 70 characters, which is at the upper end of concise but still readable.
Full details: Description check
Explanation
The description is thorough and covers nearly every template section. It has an ELI5, a detailed What Changed section, a Why section with options considered and a rollout sequence, Visual Proof with before/after style screenshots for the setup card, a Verification section, a Perf section, a Review section, and a Risk-adjacent discussion. It links issue #45255 through 'Fixes #45255'. Gaps: the template's Testing checkboxes are not visibly ticked, the Risk section has no explicit 'Level' value (the 'Level:' line is left as the template placeholder), no explicit rollback or revert note, the AI Disclosure section is absent, and the Agent skill upstream boundary checkbox is not addressed. Since the description is mostly complete, the check passes, but the missing Risk level and rollback guidance are worth adding.
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Major · Functional Correctness · Quick win
Keep pending setup recovery active when the bot tab is hidden.
If the user starts installation and leaves the tab, the caller sets shown=false. This line then forces installed=false, so ready cannot trigger the retry after installation finishes. Line 37 also stops this hook's installation observation.
Keep observation and readiness active while setup recovery is pending. Use shown only to control the card's display. Retaining the offered entry only enables continuation after the user returns; it does not provide the background continuation required by the PR objective.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
A new bot whose computer has no Antigravity failed at "Start Antigravity" with a sentence telling you to install it, and a Try again that could not help. The Install button did exist, but far below, above the message box. Now the setup card itself shows Install, with progress and Cancel, and setup carries on by itself once the install lands.
Fixes #45255
What Changed
BotFirstScreen, newuseBotSetupInstall): when setup failed and the bot's computer reports nothing installed for its agent, the card shows the chat's own install strip in place of Try again. It is the samemanagedRuntime.installflow chats use, so it works for every agent Orca can install and for bots on remote computers.bots.kickoff.retry, which the host already de-duplicates). This also holds when you leave the bot's tab during the download and come back.Design decision: how Orca installs and runs Antigravity
Options considered
agy, else Orca's pinnedagy_acp_server1.5.0. Cheapest, but Orca's copy is stuck: Google has published nothing newer than 1.5.2 whileagyis at 1.5.13, so it lacks the Orchestrator models ([Bug]: Antigravity managed ACP backend (1.5.0) causes missing Orchestrator models and quota mismatch with host agy CLI #44613), is a 100–274 MB Python bundle that unpacks about 1 GB per start, and needs its own sign-in code.install.sh | bash --dir <Orca folder>). Gives the realagy, but it is unpinned at the time it runs, runsagy install(edits the user's shell profiles and PATH), has a separate PowerShell twin, and gives Orca no progress, cancel, or checksum of its own.agythrough Orca's existing managed-agent-CLI system, the one that already installs Claude, Codex, OpenCode, Cursor, Copilot, Grok, Kimi and OMP. Google's installer is only a wrapper around a per-platform manifest (version, immutable versionedurl,sha512), which is exactly whatfollowLatestReleaseconsumes. Orca downloads the same file, verifies the same checksum, keeps it in its own folder, never touches the user'sagyor shell, turns agy's self-updater off for its copy (AGY_CLI_DISABLE_AUTO_UPDATE, as host launches already do) and updates it itself. The user's ownagyalways wins.Why 3 is right long term. One program instead of two, always current, same install, progress, cancel, remove and auto-update code as every other agent, 85–100 MB instead of 100–274 MB. What I verified against agy 1.5.13:
agy acpadvertises all four sign-in methods the old server has (oauth-personal,oauth-business,gemini-api-key,agent-platform) pluslogoutandsystemPrompt.append.agy acp --gemini-dir <userData>/antigravity-chat --app-data-dir antigravity-acpreads Orca's existing chat home in place: it listed the old server's conversations, resumed one with its context, and answered on gcloud ADC with 30 models including Orchestrator. So moving existing users needs no history migration.AGY_ACP_FORCE_FILE_STORAGE, absent from agy) and Orca captures its browser link through Python'sBROWSER; agy needsagy acp --loginin a terminal instead, and its keyring item must be shown not to collide with the user's own agy login. That needs a real account and is why the last step is separate.Rejected: bumping the pin to
agy_acp_server1.5.2 (still behind, same bundle, six new hashes); installing into~/.local/bin(would shadow or become "the user's agy", and agy would then self-update outside Orca's control).Sequence and rollout
agy, Install provides the real one and chats run it asagy acp; a signed-out agy offers Sign in (runsagyin a terminal) like other CLI agents. The old server stays for people who already have it and for API key, gcloud and Enterprise sign-in. Nobody is moved.--gemini-dir, then delete the pinned server, its sign-in capture and its Windows extraction workaround. Existing chats keep their history because agy reads the same folder.Visual Proof
Real dev Orca (worktree profile,
ORCA_BACKGROUND_LAUNCH=1), a bot on Antigravity with nothing installed on this computer.Setup failed, Install in the card:
Downloading and unpacking, with Cancel:
After the install landed, with no further click: the bot started and wrote its first message.
Installed but not signed in (saved method: Gemini Enterprise): the card offers sign-in. Choosing "Use gcloud" there started the bot with no further click.
Verification
pnpm check:changedpasses.botTarget), and an install that fails mid-download in the card (the strip's own failed state, shared with chats).Perf
The card subscribes to the host's install state only while its setup has failed, it is visible, and the chat is not on a host program; it adds no polling. Sign-in state is read only for Antigravity on Orca's copy, through the store the chat's own strip already uses. Nothing changes for chats that are not a new bot's first screen.
Review
Three adversarial review rounds by fresh reviewers. Fixed: the subscription stops while hidden or on a host program; Install stays above the message box while the chat's history is reloading; the retry survives leaving the tab mid-download; the retry no longer fires into a signed-out Antigravity (the card offers sign-in instead); the retry memory is keyed by host and bot; the retry waits out an update of Orca's copy. Left as is: a bot whose agent was changed in Settings while its old, failed Home is still open reads the new agent's install state (the retry then replaces the Home on the new agent).