Skip to content

feat(onboarding): install a selected agent from the onboarding step - #14122

Open
jtlgrowth wants to merge 1 commit into
stablyai:mainfrom
jtlgrowth:feat/install-agent-from-onboarding
Open

jtlgrowth wants to merge 1 commit into
stablyai:mainfrom
jtlgrowth:feat/install-agent-from-onboarding

Conversation

@jtlgrowth

Copy link
Copy Markdown

The gap

When no agent is on PATH, onboarding ends the thread rather than closing it. It names the selected agent, says it "isn't on your PATH yet", and offers a link to install instructions — so a new user has to leave Orca, find a docs page, work out the right command for their platform, and come back.

That is the first thing someone sees. It also lands hardest on the users least equipped for it: Claude Code has no free tier, and Gemini CLI's free personal sign-in rail was switched off on 18 June 2026, so a user arriving with no paid account has the furthest to travel from that screen.

The change

An Install button beside the existing "Install instructions" link, for agents whose vendor publishes an unambiguous one-line install command.

It runs the command in the existing OnboardingInlineCommandTerminal — the same component the feature-setup flow already uses — so the user sees exactly what will execute, and nothing runs without a click. Detection already re-runs on its own, so the agent lights up in the grid once it lands on PATH.

Where there is no known command, the row is unchanged and still points at homepageUrl.

Shape

  • AgentCatalogEntry gains an optional installCommand, resolved per platform through the catalog's existing getCatalogPlatform().
  • Antigravity ships a PowerShell installer rather than the POSIX script, so Windows gets irm … | iex instead of a curl line that would fail there.
  • The table is deliberately partial — Claude Code, Antigravity, OpenCode. An agent only belongs there when the vendor documents a single command that works on a stock machine; anything needing a package-manager choice, an account step, or a platform I could not verify keeps pointing at homepageUrl.
  • No rate limits or pricing appear anywhere in the copy. Those change without notice — Google has already cut the Antigravity free allowance once — and a stale number baked into onboarding is worse than none.

95 insertions across 3 files, including 4 new en.json keys via pnpm sync:localization-catalog.

Verification

All four checks from CONTRIBUTING.md, on this branch:

pnpm lint pass
pnpm typecheck pass
pnpm test pass — 50730 passed, 0 failed (4730 files)
pnpm build pass

Behaviour checked by hand on macOS: with an agent absent the button appears and the terminal runs the command; with it present the banner does not render at all, so the button cannot appear for an installed agent; toggling to another agent tears the previous terminal down, since each open installer holds a real PTY.

Windows and Linux command strings come from each vendor's published docs and are platform-selected by the existing helper, but I have only exercised the macOS path directly — worth a second pair of eyes on the other two.

🤖 Generated with Claude Code

When no agent is on PATH, onboarding currently ends the thread: it names the
agent, says it "isn't on your PATH yet", and offers a link to install
instructions. A new user with no agent installed has to leave, read a docs
page, find the right command for their platform, and come back.

Add an Install button beside that link for agents whose vendor publishes an
unambiguous one-line install command. It runs the command in the existing
OnboardingInlineCommandTerminal, so the user sees exactly what executes and
nothing runs without a click. Detection already re-runs on its own, so the
agent lights up in the grid once it lands on PATH.

The command lives on AgentCatalogEntry as an optional `installCommand`,
resolved per platform through the catalog's existing getCatalogPlatform().
Antigravity ships a PowerShell installer rather than the POSIX script, so
Windows gets its own line rather than a curl command that would fail there.

The table is deliberately partial — Claude Code, Antigravity and OpenCode.
An agent only belongs there when the vendor documents a single command that
works on a stock machine; anything needing a package-manager choice, an
account step, or a platform I could not verify keeps pointing at
homepageUrl instead. No rate limits or pricing are printed anywhere: those
change without notice and a stale number baked into onboarding is worse
than none.

pnpm lint, typecheck, test (50730 passed) and build all pass.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The agent catalog now resolves platform-specific install commands for Claude, Antigravity, and OpenCode. The onboarding step tracks one active installer and provides Install and Hide controls. When activated, it renders the command in an inline terminal with agent-specific metadata. English localization now includes the installer labels and descriptions. Existing external install instructions remain available.

Mergeability Score: 🟡 Moderate · up to 6cc86

On Windows, the Antigravity Install button may fail because its command requires PowerShell but the installer does not force that shell, preventing affected users from installing the agent through onboarding. The shell selection should be corrected before merge.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the implementation and testing, but it omits the required Linked Issue, Visual Proof, Review, and Checklist sections. Add a linked issue, UI screenshots or video, the required Review section, and the completed Checklist; retain the existing testing details.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: installing a selected agent from onboarding.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.

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

Comment @coderabbitai help to get the list of available commands.

@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

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: bb904324-156f-4367-8ba9-1ea6a609aa69

📥 Commits

Reviewing files that changed from the base of the PR and between 0ae0fd0 and 6cc861f.

📒 Files selected for processing (3)
  • src/renderer/src/components/onboarding/AgentStep.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/lib/agent-catalog.tsx

Comment on lines +163 to +178
{selectedEntry?.installCommand && installTerminalAgent === selectedEntry.id && (
<OnboardingInlineCommandTerminal
command={selectedEntry.installCommand}
worktreeId={`onboarding-agent-install-${selectedEntry.id}`}
title={selectedEntry.label}
description={translate(
'auto.components.onboarding.AgentStep.installTerminalDescription',
'Running the published install command for this agent. It is detected again automatically once it lands on your PATH.'
)}
ariaLabel={translate(
'auto.components.onboarding.AgentStep.installTerminalAria',
'Agent install terminal'
)}
terminalHeightPx={220}
/>
)}

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.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Inspect shell resolution for the onboarding inline command terminal.
set -euo pipefail

fd -a OnboardingInlineCommandTerminal.tsx src | xargs -I{} sh -c 'echo "--- {} ---"; cat -n "{}"' | rg -n -C 6 'shellOverride|prepareCommandForShell|createTab'

echo "--- createTab default shell resolution ---"
rg -n -C 6 'function createTab|createTab\s*[:=]' src/renderer/src --type ts -g '*.ts*'

Repository: stablyai/orca

Length of output: 50369


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "--- inline terminal path ---"
fd -a -t f 'OnboardingInlineCommandTerminal\.tsx$' src | while read -r f; do
  sed -n '1,260p' "$f"
done

echo "--- createTab implementation and shell resolution ---"
rg -n -C 12 'createTab\s*[:=]\s*\(|function createTab|shellOverride|defaultShell|shell\.executable' src/renderer/src/lib src/renderer/src/store src/renderer/src --glob '*.ts' --glob '*.tsx' \
  | rg -v 'test\.ts|test\.tsx' | head -n 500

echo "--- Antigravity catalog entry ---"
rg -n -C 8 'antigravity|irm https://antigravity' src

Repository: stablyai/orca

Length of output: 50369


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "--- shell override resolver ---"
rg -n -C 16 'resolveCreatedTabShellOverride' src/renderer/src --glob '*.ts' --glob '*.tsx'

echo "--- terminal shell settings and defaults ---"
rg -n -C 10 'terminalWindowsShell|default.*Windows.*shell|WindowsShell' src/renderer/src --glob '*.ts' --glob '*.tsx' | head -n 350

echo "--- Antigravity entry ---"
fd -a -i -t f 'agent-catalog' src | while read -r f; do
  rg -n -C 12 'antigravity|installCommand' "$f"
done

Repository: stablyai/orca

Length of output: 42366


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "--- complete local shell resolution ---"
sed -n '360,445p' src/renderer/src/store/slices/terminals.ts

echo "--- Windows terminal shell helpers ---"
rg -n -C 20 'function resolveLocalWindowsTerminalShellOverrideForTab|export function resolveLocalWindowsTerminalShellOverrideForTab|resolveLocalWindowsTerminalShellOverrideForTab' src/renderer/src src/shared --glob '*.ts' --glob '*.tsx'

echo "--- default Windows shell definition ---"
rg -n -C 12 'terminalWindowsShell\s*[:?]|terminalWindowsShell:' src/shared src/renderer/src --glob '*.ts' --glob '*.tsx' | head -n 250

Repository: stablyai/orca

Length of output: 39992


🏁 Script executed:

#!/bin/bash
set -euo pipefail

sed -n '1,125p' src/shared/local-windows-terminal-runtime.ts

echo "--- AgentStep call context ---"
sed -n '120,190p' src/renderer/src/components/onboarding/AgentStep.tsx

Repository: stablyai/orca

Length of output: 6902


Force PowerShell for the Antigravity Windows installer.

When shellOverride is omitted, the terminal uses terminalWindowsShell. The raw irm ... | iex command then fails in Command Prompt, Git Bash, or WSL. Set shellOverride to PowerShell for the Antigravity Windows install command.

@nwparker

Copy link
Copy Markdown
Contributor

I compared this candidate (6cc861fad0422324ede660886720cb8e927b5c65) with the current onboarding terminal implementation while taking over the Antigravity migration. Two concrete integration issues need fixing before adoption:

  1. The Windows Antigravity command is PowerShell syntax (irm … | iex), but AgentStep supplies neither shellOverride nor prepareCommandForShell. OnboardingInlineCommandTerminal forwards that undefined override to createTab, so the command is pasted into the user's selected shell, which may be cmd, Git Bash, or WSL. Platform selection alone does not establish the interpreter or execution host. Current feature setup already passes an explicit runtime and shell via FeatureSetupInlineTerminal; the installer needs the same host/shell discipline.
  2. The copy says “Running the published install command,” but the current inline terminal only emits PASTE_TERMINAL_TEXT_EVENT with trimmed text and does not submit Enter. Existing feature setup correctly says “Press Enter to run the command.” This button currently opens/prefills the installer; it is not evidence that installation is running.

Also, switching away from the selected agent unmounts the inline terminal and invokes closeTab(... reason: 'cleanup'). That can stop an installation already running, so a “Hide installer” action should not silently mean “terminate installer.”

These findings are from source tracing against the current migration branch, not a Windows installation test. I have not executed the vendor installer or changed the installed agy/auth. I am keeping this candidate separate from the already-verified skill-path and manual-command setup fixes.

@nwparker

Copy link
Copy Markdown
Contributor

Taken over the Antigravity onboarding installer portion in draft #21656, stacked on the migration fixes.

ELI5: click Install, then press Enter in the terminal. Re-detection or choosing another agent no longer tears down the installer; Close terminal explicitly stops it. Windows requests PowerShell, WSL uses the detection distro and existing shell adapter, and remote/unresolved targets keep the instructions link.

Verified in hidden macOS Electron with installed agy 1.2.7: the official installer reports the existing installation, real Re-check detects it, the same PTY survives detection and selection changes, Escape preserves the dialog, and explicit close removes the tab/process. The missing-agent entry state was a detection fixture. Fresh installation and Windows/WSL/Linux/SSH execution remain unverified; no generation/auth claim.

96 onboarding tests, full typecheck, changed-code quality/design gate, localization, hooks, and Electron/Vite build pass. Before/after visual proof and exact limits are in #21656. This does not close the broader integration work or take over the other vendor installers in #14122.

This branch has not been deployed

No deployments
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.

5 participants