Repository navigation
Conversation
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]>
📝 WalkthroughWalkthroughThe 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 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)
✅ Passed checks (4 passed)
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. Comment |
There was a problem hiding this comment.
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
📒 Files selected for processing (3)
src/renderer/src/components/onboarding/AgentStep.tsxsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/lib/agent-catalog.tsx
| {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} | ||
| /> | ||
| )} |
There was a problem hiding this comment.
🗄️ 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' srcRepository: 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"
doneRepository: 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 250Repository: 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.tsxRepository: 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.
|
I compared this candidate (
Also, switching away from the selected agent unmounts the inline terminal and invokes 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. |
|
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. |
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
AgentCatalogEntrygains an optionalinstallCommand, resolved per platform through the catalog's existinggetCatalogPlatform().irm … | iexinstead of a curl line that would fail there.homepageUrl.95 insertions across 3 files, including 4 new
en.jsonkeys viapnpm sync:localization-catalog.Verification
All four checks from
CONTRIBUTING.md, on this branch:pnpm lintpnpm typecheckpnpm testpnpm buildBehaviour 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