Skip to content

feat(bots): Install in a new bot's setup card, then carry on by itself - #45246

Merged
nwparker merged 4 commits into
mainfrom
nwparker/agy-bot-install
Nov 20, 2026
Merged

nwparker merged 4 commits into
mainfrom
nwparker/agy-bot-install

Conversation

@nwparker

@nwparker nwparker commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

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

  • 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

Options considered

  1. Keep two programs (today): your agy, else Orca's pinned agy_acp_server 1.5.0. Cheapest, but Orca's copy is stuck: Google has published nothing newer than 1.5.2 while agy is 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.
  2. 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.
  3. 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

  1. This PR: Install where the bot failure is. Independent of which program Install provides.
  2. feat(antigravity): say which agy a chat runs on, with its version #45254: say plainly which program and version a chat runs on.
  3. 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.
  4. 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:

offer

Downloading and unpacking, with Cancel:

progress

After the install landed, with no further click: the bot started and wrote its first message.

done

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.

sign in

after sign in

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).

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

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: Passed 4

Check name Status Explanation
Title check Passed 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 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.
Description check Passed 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.

Share

@nwparker
nwparker force-pushed the nwparker/agy-bot-install branch from cda8597 to 26399da Compare November 20, 2026 06:57

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

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: af93e961-0708-4366-945a-65fb318f756b
Commits

Reviewing files that changed from the base of the PR and between 26399da and 9c5768e.

Files selected for processing: 1

  • src/renderer/src/components/bots/BotSetupInstall.tsx

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

const slot = nativeChatInstallSlotState(observation, 'strip', hostProgram)
const install = shown && slot.kind === 'install' ? slot : null
const state =
shown && observation.kind === 'active' && observation.snapshot.kind === 'known'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

@nwparker
nwparker merged commit e4946cb into main Nov 20, 2026
56 checks passed
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.

[Bug]: Orca Bot with Antigravity hits dead-end on Start Antigravity (runtimeNotInstalled / notSignedIn)

1 participant