Skip to content

fix(onboarding): build the agent step around skills, not CLI registration - #22720

Merged
Jinwoo-H merged 15 commits into
mainfrom
jinwoo/sta-8306-bug-onboarding-checklist-marks-enable-orca-cli-done-while
Sep 30, 2026
Merged

Jinwoo-H merged 15 commits into
mainfrom
jinwoo/sta-8306-bug-onboarding-checklist-marks-enable-orca-cli-done-while

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 12 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​297 $\color{#cf222e}{\Huge{\mathbf{−}}}$​644 $\color{#cf222e}{\Huge{\mathbf{−}}}$​347
Prod 49 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​679 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2099 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1420

ELI5

Onboarding said “Enable Orca CLI” but marked the step complete when skills were installed. Orca terminals already receive CLI access automatically, including WSL after #22761. This PR makes onboarding and the related settings ask users to install skills, without checking or registering the CLI first.

What Changed

  • Rename the checklist step to “Give agents Orca skills” and its button to “Install Skills.” Show “All skills installed” when complete.
  • Remove CLI registration prerequisites from onboarding, Browser, Orchestration, Computer Use, ephemeral VM skill setup, floating orchestration, and Linear settings/task prompts, for both host and WSL runtimes.
  • Browser setup has two steps: install the skill and import cookies. Linear reminders depend on missing skills rather than global CLI registration.
  • Align skill status badges and move Full Disk Access to the multiple-projects setup step.
  • General → Shell command remains available for terminals outside Orca.

Setup uses the existing skill discovery and terminal installation paths. The final diff adds no WSL availability probe, capability RPC, daemon flag, or runtime availability hook.

Why

CLI registration is not a prerequisite for installing skills inside Orca. Removing that dependency makes the labels, completion state, and buttons agree, without adding runtime checks to a UI flow. Automatic CLI provisioning belongs to terminal launch and is already implemented separately.

Linked Issue

Fixes #22524 (Linear STA-8306)

Visual Proof

Before After
checklist before checklist after
Browser before Browser after
repos step before repos step after

The Browser after screenshot was captured from the final simplified flow in a hidden macOS Electron dev build. Other screenshots document the retained checklist/card changes.

Testing

  • 233 test files / 1,613 tests passed locally, including the affected setup panels, onboarding, Linear reminders, and the daemon/RPC suites after removing the capability additions.

  • Full local typechecks, changed-code quality, RPC catalog, and localization checks passed.

  • After the final simplification: 230 affected test files / 1,542 tests passed; the final sidebar cleanup passed all 39 sidebar tests, including switching runtimes during a pending refresh.

  • Hidden Electron/CDP: verified the two-step Browser setup with no CLI registration step and the retained General shell-command setting.

  • Automated host/WSL cases verify that installed skills do not trigger CLI-registration reminders. Windows and SSH were not rerun for this UI cleanup; no terminal provisioning or backend code changes remain in the PR.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer implementation was copied.

Notes

  • The mobile-emulator guide's separate Enable CLI step remains a follow-up.
  • Existing CLI registrations are untouched. Skill commands retain their existing host, WSL distro, and remote routing.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • Before/after screenshots attached
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered
  • Full test/build matrix passes on the latest commit (CI pending)

@coderabbitai

coderabbitai Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: cd63c5ce-a036-44f7-ab1f-44a9fd9e83fd

📥 Commits

Reviewing files that changed from the base of the PR and between f8d995d and 4b531fe.

📒 Files selected for processing (12)
  • docs/readme/README.es.md
  • docs/readme/README.fr.md
  • docs/readme/README.ja.md
  • docs/readme/README.ko.md
  • docs/readme/README.pt.md
  • docs/readme/README.zh-CN.md
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
💤 Files with no reviewable changes (4)
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/es.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/renderer/src/i18n/locales/en.json

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


📝 Walkthrough

Walkthrough

Onboarding and feature-wall setup now determine whether CLI registration is required for the active runtime. Capability readiness and status displays account for installed and unavailable capabilities. Skill setup flows use a shared runtime-specific prerequisite helper. Browser setup conditionally includes the CLI step and adjusts step counts and indexes. Skill and cookie-import components now receive their step indexes as props. Setup labels and locale strings describe agent skills and runtime-dependent steps.

Priority: ➖ Normal

Severity of issue fixed: Medium

Merge Risk: 🟡 Moderate · up to 4b531

WSL users may be told setup is complete even though required CLI-based agent workflows are not yet usable.

🚥 Pre-merge checks | ✅ 2 | ❌ 3

❌ Failed checks (3 warnings)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The WSL case still does not satisfy [#22524]. AgentCapabilitiesSetupAction sets allReady from isAgentCapabilityReadinessComplete(readiness), which checks skills and Computer Use only. `cliRequir… Include WSL CLI registration and PATH status in the completion condition. Keep the step incomplete when WSL CLI status is missing or not on PATH. Show the CLI status and keep registration available when skills are already installed. Add an …
Out of Scope Changes check ⚠️ Warning The PR also changes unrelated README content. The changes update feature image links and WeChat community instructions in docs/readme/README.es.md, README.fr.md, README.ja.md, README.ko.md, `R… Remove the unrelated README image-link and WeChat community changes, or link them to a separate active coding objective.
Docstring Coverage ⚠️ Warning Docstring coverage is 17.78% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 45 functions across 36 files. (8 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: onboarding now centers the agent step on skills instead of CLI registration.
Description check ✅ Passed The description is complete and relevant. It includes the required ELI5, change summary, rationale, linked issue, visual proof, testing details, upstream-boundary statement, notes, and checklist. It a…
Full details: Linked Issues check

Explanation

The WSL case still does not satisfy [#22524]. AgentCapabilitiesSetupAction sets allReady from isAgentCapabilityReadinessComplete(readiness), which checks skills and Computer Use only. cliRequired changes only the button label. Therefore, all skills can show “All skills installed” when the WSL orca command is missing or not on PATH, with no registration control. The added tests do not cover this state.

Resolution

Include WSL CLI registration and PATH status in the completion condition. Keep the step incomplete when WSL CLI status is missing or not on PATH. Show the CLI status and keep registration available when skills are already installed. Add an automated test for all skills installed with missing WSL CLI.

Full details: Out of Scope Changes check

Explanation

The PR also changes unrelated README content. The changes update feature image links and WeChat community instructions in docs/readme/README.es.md, README.fr.md, README.ja.md, README.ko.md, README.pt.md, and README.zh-CN.md. The linked issue [#22524] concerns onboarding CLI and skill readiness. It does not require documentation asset or community-group changes.

Full details: Docstring Coverage

Explanation

Docstring coverage is 17.78% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 45 functions across 36 files. (8 skipped: 8 unsupported.)


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

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

🟡 Minor · Stop checking CLI registration when the CLI step is absent. · BrowserUsePane.tsx:124

src/renderer/src/components/settings/BrowserUsePane.tsx:124
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Stop checking CLI registration when the CLI step is absent.

Outside WSL, cliRequired is false, but enabling Browser Use still calls refreshCli(). That call queries getInstallStatus() and shows “Failed to load CLI status.” if the query fails, although CLI status no longer affects the host setup. Keep fetchBrowserSessionProfiles() for every runtime, but call refreshCli() only when cliRequired is true.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: e0942932-f97b-4f96-a569-983387a940d1

📥 Commits

Reviewing files that changed from the base of the PR and between 9858433 and 9ecf90b.

📒 Files selected for processing (21)
  • src/renderer/src/components/browser-cookie-import-google-disclosure.test.tsx
  • src/renderer/src/components/feature-wall/AgentCapabilitiesSetupAction.tsx
  • src/renderer/src/components/feature-wall/FeatureWallSetupChecklist.tsx
  • src/renderer/src/components/feature-wall/FullDiskAccessSetupPrompt.tsx
  • src/renderer/src/components/feature-wall/agent-capability-setup-status.ts
  • src/renderer/src/components/feature-wall/feature-wall-setup-checklist-localized-copy.ts
  • src/renderer/src/components/onboarding/onboarding-cli-registration.ts
  • src/renderer/src/components/onboarding/onboarding-feature-setup.test.ts
  • src/renderer/src/components/onboarding/onboarding-feature-setup.ts
  • src/renderer/src/components/settings/BrowserUseCookieImportStep.tsx
  • src/renderer/src/components/settings/BrowserUsePane.tsx
  • src/renderer/src/components/settings/BrowserUseSkillStep.test.tsx
  • src/renderer/src/components/settings/BrowserUseSkillStep.tsx
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/lib/agent-skill-cli-prerequisite.ts
  • src/shared/feature-wall-setup-steps.ts
💤 Files with no reviewable changes (3)
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/i18n/locales/fr.json

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Comment thread src/renderer/src/i18n/locales/en.json Resolved

@pullfrog pullfrog 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.

Important

Update skills reuses the full onboarding runner, so an update also mutates unrelated enable/dismiss state and can surface a Computer Use warning. Details inline.

Reviewed changes

  • CLI registration gated on WSL — new isOrcaCliRegistrationRequired(runtime) (true only for runtime === 'wsl') gates registration in runOnboardingFeatureSetup and BrowserUsePane; host runtimes rely on the existing PTY PATH prepend, which I confirmed at src/main/ipc/pty/host-env/assembly.ts:285 and the structured-worker lane.
  • Extracted registerOnboardingCli — the old inline CLI block moved to onboarding/onboarding-cli-registration.ts; behavior is equivalent (supported / unknown-PATH / already-installed early returns, prompt-before-install, error→warning).
  • Checklist copy realigned — "Enable Orca CLI" → "Give agents Orca skills" in feature-wall-setup-steps.ts and the localized copy; the done rule was already skills-only, so the step now matches what it checks.
  • Settings pane step model — cliRequired gates the CLI step (host: two steps, WSL: three), with step indices offset via stepIndex props on BrowserUseSkillStep/BrowserUseCookieImportStep.
  • Feature-wall card states — new isAgentCapabilityReadinessComplete + "✓ All skills installed"/"Update skills" row, top-right status pills, and the empty selection circle hidden on installed cards.
  • Full Disk Access relocated — moved from the agent step to the add-two-repos step.

ℹ️ New readiness helper and card states have no coverage

isAgentCapabilityReadinessComplete is documented as mirroring the checklist's agent-capabilities done rule in feature-wall-setup-progress.ts, but nothing pins the two together, and the new pill/note/all-ready branches are untested. A drift between them would silently desync the card from the checklist step.

Technical details
# `isAgentCapabilityReadinessComplete` / card states untested

## Affected sites
- `src/renderer/src/components/feature-wall/agent-capability-setup-status.ts:124-133` — the new predicate; only reachable caller is `AgentCapabilitiesSetupAction.tsx:148`.
- `src/renderer/src/components/feature-wall/feature-wall-setup-progress.ts:48-52` — the checklist rule it claims to mirror.
- `src/renderer/src/components/feature-wall/AgentCapabilitiesSetupAction.test.ts` — existing tests only cover `getDefaultAgentCapabilitySetupSelection`.

## Required outcome
- A unit test asserting `isAgentCapabilityReadinessComplete(readiness)` agrees with `getFeatureWallSetupProgress(...).stepDone['agent-capabilities']` across the ready / needs-access / unavailable / checking cases, so the "mirrors" comment is enforced rather than aspirational.
- Rendering coverage for the installed / unavailable / needs-access pill and the all-ready-vs-install-button branch would catch the layout regressions this PR is fixing.

## Open questions for the human
- The predicate adds `!isAgentCapabilityReadinessChecking`, which the checklist rule does not. If that guard is deliberate (avoid claiming "all installed" mid-probe), a test should pin it; if not, the comment overstates the mirror.

ℹ️ Nitpicks

  • BrowserUsePane.handleEnableCli (src/renderer/src/components/settings/BrowserUsePane.tsx:148-176): the non-WSL branch calling ensureOrcaCliAvailableForAgentSkillTerminal is now unreachable — the only caller renders under showStep1 && cliRequired (line 261), and cliRequired is WSL-only.
  • FeatureWallBrowserAction.tsx:191 still labels the grab→agent button "Install CLI & Skill" and its comment (lines 92-93) still says the flow "relies on the Orca CLI", but for host runtimes the shared runner no longer registers the CLI. The label could match the new behavior.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog 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.

✅ No new issues found.

Reviewed changes

This run re-reviewed the two commits pushed after the prior review — 1884f6cc42 (feature-wall step-state refactor) and f3c3131fcf (WSL-only CLI prerequisite helper) — and confirmed the prior review's inline finding is resolved.

  • Shared skill CLI prerequisite — new getAgentSkillCliPrerequisite(runtime) in settings/CliSkillRuntimeSetup.tsx returns a no-op for host and the WSL notice/status/ensure for WSL; every skill-install surface (Browser Use, Computer Use, Orchestration, Ephemeral VMs, floating orchestration, Linear panes/prompt) now consumes it, so host runtimes stop querying and registering the CLI.
  • Feature-wall all-ready cleanup — the Update skills button, its onUpdateAll runner, and the updateSkills UI path were removed; the all-installed state now renders only “All skills installed”, closing the prior side-effect concern.
  • Readiness mirror enforced — isAgentCapabilityReadinessComplete now delegates to the shared isAgentCapabilitiesDone used by the checklist rule, and AgentCapabilitiesSetupAction.test.ts pins the ready / needs-access / unavailable / checking cases including the !checking guard.
  • Tests — new agent-skill-cli-runtime-prerequisite.test.ts covers the host no-op and WSL distro-scoped getWslInstallStatus/installWsl; Linear prompt tests were rewritten to assert no host CLI query and WSL-scoped queries.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@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: Advanced

Run ID: 2945f93c-b416-4cb8-a348-41a533230905

📥 Commits

Reviewing files that changed from the base of the PR and between 1884f6c and f3c3131.

📒 Files selected for processing (25)
  • src/renderer/src/components/feature-wall/AgentCapabilitiesSetupAction.test.ts
  • src/renderer/src/components/feature-wall/AgentCapabilitiesSetupAction.tsx
  • src/renderer/src/components/feature-wall/BrowserUseSkillSetupCard.tsx
  • src/renderer/src/components/feature-wall/FeatureWallBrowserAction.tsx
  • src/renderer/src/components/feature-wall/agent-capability-setup-status.ts
  • src/renderer/src/components/floating-terminal/FloatingTerminalOrchestrationDialog.freshness.test.tsx
  • src/renderer/src/components/floating-terminal/FloatingTerminalOrchestrationDialog.tsx
  • src/renderer/src/components/settings/BrowserUsePane.tsx
  • src/renderer/src/components/settings/CliSkillRuntimeSetup.tsx
  • src/renderer/src/components/settings/ComputerUseSkillSetupPanel.tsx
  • src/renderer/src/components/settings/EphemeralVmsPane.tsx
  • src/renderer/src/components/settings/LinearAgentSkillPane.test.tsx
  • src/renderer/src/components/settings/OrchestrationPane.tsx
  • src/renderer/src/components/settings/OrchestrationSetupCard.tsx
  • src/renderer/src/components/settings/TaskSourceLinearSetup.test.tsx
  • src/renderer/src/components/settings/agent-skill-cli-runtime-prerequisite.test.ts
  • src/renderer/src/components/settings/use-linear-agent-skill-setup.ts
  • src/renderer/src/components/sidebar/LinearAgentSkillSetupDialog.tsx
  • src/renderer/src/components/sidebar/LinearAgentSkillSetupPrompt.reminder-toast.test.tsx
  • src/renderer/src/components/sidebar/LinearAgentSkillSetupPrompt.test.tsx
  • src/renderer/src/components/sidebar/LinearAgentSkillSetupPrompt.tsx
  • src/renderer/src/components/sidebar/LinearAgentSkillSetupPrompt.update-command.test.tsx
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/lib/agent-skill-cli-prerequisite.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/renderer/src/components/feature-wall/FeatureWallBrowserAction.tsx

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Comment on lines +239 to +246
{showSetupAction && showAllReady ? (
<p className="mt-6 flex items-center gap-1.5 text-sm font-medium text-status-success">
<Check className="size-4" />
{translate(
'auto.components.feature.wall.AgentCapabilitiesSetupAction.allInstalled',
'All skills installed'
)}
</p>

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

sed -n '60,165p' src/renderer/src/components/feature-wall/AgentCapabilitiesSetupAction.tsx
sed -n '210,345p' src/renderer/src/components/feature-wall/AgentCapabilitiesSetupAction.tsx
sed -n '205,255p' src/renderer/src/components/onboarding/onboarding-feature-setup.ts
sed -n '1,85p' src/renderer/src/components/onboarding/onboarding-cli-registration.ts

Repository: stablyai/orca

Length of output: 13226


🏁 Script executed:

set -eu
printf '%s\n' '--- feature action imports/state ---'
sed -n '1,125p' src/renderer/src/components/feature-wall/AgentCapabilitiesSetupAction.tsx
printf '%s\n' '--- readiness/runtime/selection symbols ---'
rg -n -C 4 "isAgentCapabilityReadinessComplete|getDefaultAgentCapabilitySetupSelection|activeSkillRuntime|cliRequired|AgentCapabilityReadiness|installStatus|selectedOnboardingFeatureSetupIds|registerOnboardingCliIfRequired|runOnboardingFeatureSetup" src/renderer/src/components src/renderer/src/lib src/renderer/src -g '*.ts' -g '*.tsx' | head -n 320
printf '%s\n' '--- setup runner remainder and related tests ---'
sed -n '1,240p' src/renderer/src/components/onboarding/onboarding-feature-setup.ts
rg -n -C 5 "AgentCapabilitiesSetupAction|allInstalled|runOnboardingFeatureSetup|registerOnboardingCliIfRequired|WSL|wsl|pathConfigured" src/renderer/src -g '*test*' -g '*.spec.*' -g '*.test.*' | head -n 260

Repository: stablyai/orca

Length of output: 41820


🏁 Script executed:

set -eu
printf '%s\n' '--- readiness implementation ---'
cat -n src/renderer/src/components/feature-wall/agent-capability-setup-status.ts | sed -n '1,190p'
printf '%s\n' '--- active runtime hook and resolver ---'
fd -i 'useActiveProjectSkillRuntime' src/renderer/src
rg -n -C 8 "function useActiveProjectSkillRuntime|useActiveProjectSkillRuntime|resolve.*SkillRuntime|ProjectAgentSkillRuntime|discoveryTarget|installDisabledReason" src/renderer/src/hooks src/renderer/src/lib src/renderer/src/components/onboarding -g '*.ts' -g '*.tsx' | head -n 360
printf '%s\n' '--- onboarding runtime mapping ---'
cat -n src/renderer/src/components/onboarding/onboarding-feature-setup-runtime.ts
printf '%s\n' '--- focused readiness/setup tests ---'
rg -l "isAgentCapabilityReadinessComplete|getDefaultAgentCapabilitySetupSelection|runOnboardingFeatureSetup|AgentCapabilitiesSetupAction" src/renderer/src -g '*test*' -g '*.spec.*' -g '*.test.*' | while read -r f; do echo "### $f"; rg -n -C 10 "isAgentCapabilityReadinessComplete|getDefaultAgentCapabilitySetupSelection|runOnboardingFeatureSetup|AgentCapabilitiesSetupAction|wsl|WSL|cli" "$f"; done | head -n 500

Repository: stablyai/orca

Length of output: 42258


🏁 Script executed:

set -eu
printf '%s\n' '--- active runtime hook ---'
cat -n src/renderer/src/hooks/useActiveProjectSkillRuntime.ts
printf '%s\n' '--- runtime type/resolution references ---'
rg -n -C 10 "useActiveProjectSkillRuntime|ProjectAgentSkillRuntime|resolveProject.*Runtime|localWindowsRuntimePreference|discoveryTarget" src/renderer/src/hooks src/renderer/src/lib src/renderer/src/store -g '*.ts' -g '*.tsx' | head -n 420
printf '%s\n' '--- CLI prerequisite binding ---'
cat -n src/renderer/src/lib/agent-skill-cli-prerequisite.ts | sed -n '1,180p'
printf '%s\n' '--- card rendering and setup branch exact lines ---'
cat -n src/renderer/src/components/feature-wall/AgentCapabilitiesSetupAction.tsx | sed -n '220,315p'

Repository: stablyai/orca

Length of output: 42322


Keep WSL CLI registration reachable until registration is complete.

The success state checks skill readiness, not CLI registration. With an empty selection, the runner returns before registration. The checklist remains selectable, so selecting any installed capability restores the button and provides a workaround. However, users must select an unrelated capability to reach registration.

Include WSL CLI registration readiness in the success condition, or provide a dedicated registration action.

@pullfrog pullfrog 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.

✅ No new issues found.

Reviewed changes

This run re-reviewed the one commit pushed after the prior pullfrog review — f8d995d ("fix(skills): retain CLI install labels for WSL") — which restores the CLI-aware install labels on the WSL path.

  • WSL install labels restored — FeatureWallBrowserAction, FloatingTerminalOrchestrationDialog, and LinearAgentSkillSetupDialog show "Install CLI & Skill" when isOrcaCliRegistrationRequired(runtime) is true and "Install skill" otherwise, matching the WSL-only getAgentSkillCliPrerequisite / ensureWslCliAvailableForAgentSkillTerminal action each button triggers.
  • Runtime-required catalog regenerated — en-runtime-required.json drops FeatureWallBrowserAction.c2df599513 and LinearAgentSkillSetupPrompt.install, which are now reconstructible from their literal call-site defaults.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@Jinwoo-H
Jinwoo-H force-pushed the jinwoo/sta-8306-bug-onboarding-checklist-marks-enable-orca-cli-done-while branch 2 times, most recently from 16a9220 to 14942a9 Compare September 26, 2026 05:00

@pullfrog pullfrog 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.

ℹ️ No critical issues — one doc nit inline.

Reviewed changes

This run re-reviewed the two commits pushed after the prior pullfrog review — bb1d425a15 (managed-WSL CLI capability probe) and a34557b7b4 (provision wrappers before the probe).

  • Host-side WSL CLI probe — new isManagedWslCliAvailable spawns wsl.exe through the managed bridge and requires fenced managed-cli-ready output, gated on process.platform === 'win32' and either a daemon identity advertising managedWslCli: true or no daemon owning fresh PTYs. A per-distro pending map coalesces concurrent probes; results are not cached.
  • New RPC method — host.wsl.managedCliAvailable (zod-trimmed distro) registered in HOST_CAPABILITY_METHODS, added to the mobile allowlist and the generated params catalog. An old host returns method-not-found, which the renderer maps to the fallback.
  • Renderer proof — useManagedWslCliAvailability calls that method and drops proof on any host/distro/enabled change; useActiveProjectSkillRuntime and LinearAgentSkillSetupPrompt inject managedCliAvailable, and isOrcaCliRegistrationRequired now treats an absent capability as "registration required".
  • Daemon hello field — DaemonEndpointIdentity.managedWslCli?: boolean, parsed and advertised by the daemon; absence preserves the fallback. Verified the advertisement is honest: the daemon's WSL spawn points ORCA_SHELL_READY_ROOT at the local wrapper tree, which restores the managed CLI on PATH.
  • Wrapper provisioning — the probe now calls ensureShellReadyWrappersAt before checking wrapper files, since onboarding can run before the first terminal.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog 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.

✅ No new issues found.

Reviewed changes

This run re-reviewed the one commit pushed after the prior pullfrog review — 2dc7a0c ("refactor(onboarding): remove CLI registration checks from skill setup") — a large simplification that deletes the WSL managed-CLI probe and every remaining CLI-registration check from the skill surfaces.

  • Removed the WSL managed-CLI capability probe — deleted isManagedWslCliAvailable, the host.wsl.managedCliAvailable RPC (params catalog + mobile allowlist), the useManagedWslCliAvailability renderer hook, and the managedWslCli daemon hello field, parse, and advertisement.
  • Dropped CLI registration from onboarding — deleted onboarding-cli-registration.ts, removed getCliStatus/installCli/showCliRegistrationPrompt from the runner deps, and made cliTouched constant false.
  • Removed the CLI step from Browser Use settings — deleted BrowserUseCliStep.tsx, dropped the CLI status state / refreshCli / handleEnableCli, and reduced the pane to install-skill + import-cookies with stepIndex props; browser-use-search.ts now has two entries.
  • Stripped the CLI prerequisite from the remaining skill surfaces — Computer Use, Orchestration pane/card, Ephemeral VMs, floating orchestration, the Browser Use card, use-linear-agent-skill-setup, and the Linear dialog/prompt; the Linear prompt is now skill-only.
  • Feature-wall card — shared isAgentCapabilitiesDone now backs both the checklist step and isAgentCapabilityReadinessComplete; new status pill/note with an unavailable tone, "All skills installed" state, and "Install Skills" label.
  • Tests / i18n — added a WSL no-registration onboarding test, rewrote the Linear prompt suites to assert no CLI query, and regenerated en-runtime-required.json / en.json.

I verified the removal is backed: #22761 ("Provide the Orca CLI automatically in managed WSL terminals") is merged and the branch tree contains reconcileManagedWslCliRegistrations, so onboarding no longer registering the CLI for WSL is consistent. Renderer typecheck (pnpm tc:web) and the 8 affected test files (68 tests) pass locally.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog 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.

✅ No new issues found.

Reviewed changes

This run re-reviewed the commit pushed after the prior pullfrog review — 65d3fd05 ("refactor(setup): remove redundant state and obsolete registration scaffolding") — a cleanup that strips the last remnants of the CLI-registration scaffolding and one shadow loading flag.

  • Removed the always-false cliTouched field from OnboardingFeatureSetupResult and the runner; the run telemetry now emits a literal cli_touched: false.
  • Dropped the redundant refreshingSkill state in LinearAgentSkillSetupPrompt and now rely on the skill hook's own target-keyed loading, so switching runtimes mid-refresh no longer keeps the new target's panel disabled (covered by a new regression test).
  • Reverted the stepIndex props on BrowserUseSkillStep/BrowserUseCookieImportStep to hardcoded 1/2 indices (each is rendered only by BrowserUsePane), and renamed the pane's step2Blocked/step3Blocked locals to skillDisabled/cookieImportDisabled with the cookie step's prop renamed to disabled.
  • Removed now-unused preInstallNotice/getPrerequisiteStatus props from BrowserUseSkillStep, simplified the skill surfaces' onBeforeOpenTerminal callbacks from async to sync, and pruned the remaining CLI-status fixtures and keys from en.json, en-runtime-required.json, and the translated locales.

Verified locally: renderer typecheck (pnpm tc:web) green, and the 4 affected test files (52 tests, including the 26-case Linear prompt suite) green.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

…tion

The checklist step "Enable Orca CLI" was marked done once the agent skills
were installed, while Settings -> Browser still showed CLI registration as a
pending step. Orca terminals already put the bundled CLI on PATH, so
registration only matters for shells Orca did not launch, plus WSL, where
`orca-ide` exists only once registered.

- Rename the step to "Give agents Orca skills"; setup registers the CLI only
  for WSL (isOrcaCliRegistrationRequired), via onboarding-cli-registration.ts.
- Settings -> Browser drops the CLI step outside WSL (2 steps instead of 3).
- Skills panel: "All skills installed" + "Update skills" replaces the disabled
  button; status pills sit top-right; no "Installed" beside "Unavailable".
- Full Disk Access moves to the "Start work in multiple repos" step.

Fixes STA-8306 / #22524.
- One done rule: isAgentCapabilitiesDone in feature-wall-setup-progress.ts,
  reused by the skills panel instead of a mirrored copy.
- 'unavailable' is an install-status tone instead of a second boolean;
  pill/note rendering moves to AgentCapabilityStatusBadges.tsx.
- "Update skills" skips Computer Use when it can't run (no warning toast);
  setup takes an explicit selection.
- The WSL gate lives in registerOnboardingCliIfRequired; onboarding deps drop
  the now-unreachable host CLI branches.
- BrowserUsePane: one cliRequired/cliReady pair, no host CLI status fetch,
  WSL-only enable path, single "Finish the steps below." string.
- Full Disk Access placement goes through a SelectedStepFooter switch.
- Prune orphaned locale keys (and their boot-bundle entries); fix a stale
  comment.
The General > Orca CLI skill panel still registered `orca` on PATH before
opening the install terminal, contradicting the rest of skill setup. Orca
terminals already provide the CLI, so the shell command toggle now says it
is only for terminals outside Orca.
Make onboarding monochrome: completion is a neutral check, selection a
neutral outline, and color only flags real problems. Tighten the checklist
rail and header, single-line agent cards with a grid that scrolls only when
it runs out of room, a labeled permission switch under the grid, calmer
notification and skill cards, sentence-case copy, and a labeled "Hide
checklist from sidebar" action. Workspace setup leads with "Add project"
when no git project exists.
@Jinwoo-H
Jinwoo-H force-pushed the jinwoo/sta-8306-bug-onboarding-checklist-marks-enable-orca-cli-done-while branch from 65d3fd0 to 5965a7e Compare September 30, 2026 02:25
@greptile-apps

greptile-apps Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Refactors agent onboarding to center on skills instead of CLI registration.

The PR appears safe to merge, with non-blocking narrow-window usability and Full Disk Access discoverability concerns.

Findings

  1. P2 Hide action disappears on narrow windows ▶
  2. P2 Disk access prompt becomes hidden ▶

Summary

The PR makes agent-skill installation, rather than global CLI registration, the focus of onboarding and related setup screens. It also simplifies Browser setup, updates status copy and translations, and adjusts several setup controls. A narrow-window modal action is lost; the earlier Full Disk Access visibility concern remains.

Reviews (4) · Last reviewed commit: "fix(onboarding): address review on permi..."

Comment on lines +169 to +173
function SelectedStepFooter(props: { stepId: FeatureWallSetupStepId }): React.JSX.Element | null {
// Why: Full Disk Access matters for projects in protected folders, so it sits with adding projects.
if (props.stepId === 'add-two-repos') {
return <FullDiskAccessSetupPrompt />
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Disk access prompt becomes hidden The Full Disk Access recommendation now appears only on the projects step. If someone already has two projects, that step is complete and the guide advances past it. Users whose projects or worktrees later reside in protected folders may miss the permission action unless they revisit a completed step.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Acknowledged, not changing here. Users who already have two projects added them without hitting the permission problem, so few need the card. The follow-up is to prompt in the add-project dialog when the chosen folder is protected, then drop the card from the checklist.

@pullfrog pullfrog 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.

✅ No new issues found.

Reviewed changes

This run re-reviewed the two commits pushed after the prior pullfrog review — 574ee32935 ("stop registering the CLI before installing the CLI skill") and 5965a7eec3 ("polish the setup checklist and first-run steps"). The branch was rebased onto a newer main, so commit SHAs differ from the previously reviewed revision; verification below is against the current tree (net diff is renderer + shared + i18n only).

  • General → Shell command stops registering the CLI before the CLI-skill install — CliSection drops the getPrerequisiteStatus / onBeforeOpenTerminal wiring into AgentSkillSetupPanel, and the section copy now describes the toggle as only for terminals outside Orca.
  • Onboarding goes monochrome — completed/selected states across the checklist rail, agent cards, theme cards, integration step, and notification cards switch from emerald/violet/amber accents to foreground/muted tokens; color is reserved for real problems.
  • Checklist and agent step restructured — compact rail rows (no active bar, tabular ordinals), a single Done affordance instead of the Not done yet pill, single-line agent cards, and the checkbox permission control replaced by a labeled Switch.
  • Setup-script step leads with the prerequisite — when no git project exists it renders "Add a git project first…" plus an Add project button instead of disabled inputs.
  • Notification sound selection hardened — handleSoundSelect resolves the chosen id against the current options and ignores unknown values.

Verified locally: the four affected test files pass (20 tests), pnpm tc:web is green, and the changed-code quality gate reports 0 findings.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

Agents that drive the emulator run in Orca terminals, which already provide
the `orca` command. Agent control setup in the emulator card and Settings is
now a single step: install the Orca CLI skill.

@pullfrog pullfrog 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.

✅ No new issues found.

Reviewed changes

This run re-reviewed the one commit pushed after the prior pullfrog review — 9f42f8b ("fix(emulator): drop the Enable Orca CLI step from agent control setup") — which makes mobile-emulator agent control a single skill step, matching the rest of the PR.

  • Emulator setup guide goes skill-only — MobileEmulatorAgentSetupGuideSteps drops the "Enable Orca CLI" step and its button/tooltip/PATH states, rendering just the skill panel; the guide card drops the n/2 progress pill and renames its prompt to "Install the Orca CLI skill…".
  • Settings row goes skill-only — MobileEmulatorAgentControlRow removes the CLI step and the n/2 badge, leaving the skill panel plus the emulator-command examples.
  • Setup hook simplified — useMobileEmulatorAgentSetupState no longer reads cli.getInstallStatus() and drops cliEnabled/cliBusy/cliSupported/cliLoading/cliActionLabel/completedCount/step2Blocked/handleEnableCli; setupComplete and statusReady now derive from cliSkillInstalled/cliSkillLoading alone.
  • Deleted scaffolding — mobile-emulator-agent-setup-cli-state.{ts,test.ts} (badge/PATH/pre-install-notice helpers) is removed with its tests, and the stale i18n keys are pruned.
  • Coverage — MobileEmulatorAgentControlRow.test.tsx gains a case asserting the skill panel receives no onBeforeOpenTerminal, preInstallNotice, or installDisabled, so the CLI-registration wiring can't silently return.

I verified locally that the emulator-pane directory plus MobileEmulatorAgentControlRow.test.tsx pass (14 files / 72 tests) and that no source still references a removed field, helper, or i18n key. The two now-unused en-runtime-required.json entries are explicitly harmless report-only drift per generate-runtime-required-english-catalog.mjs (the catalog intentionally tolerates entries whose callers were removed).

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

A granted card has no remaining action and only takes space on the add
projects step. It also no longer flashes a "Checking" state before the
first status arrives.

@pullfrog pullfrog 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.

✅ No new issues found.

Reviewed changes

This run re-reviewed the one commit pushed after the prior pullfrog review — 5fa995fb79 ("hide the Full Disk Access card once access is granted") — a small visibility fix on the add-two-repos step.

  • Full Disk Access card hides once granted — isFullDiskAccessSetupVisible now also excludes isFullDiskAccessReady states (granted/ready), so the card renders only while the permission is actionable (unknown/denied); the component's visible drops the checking || term, removing the initial "Checking" flash.
  • Dead ready-path branches removed — the now-unreachable Granted label/icon variants, the ready field on FullDiskAccessButtonState, and the disabled={ready || …} guard are gone; the Granted i18n key stays live via the success toast.
  • Tests updated — isFullDiskAccessSetupVisible('granted'|'ready') is now asserted false, and the focus-refresh/overlapping-refresh cases assert the card is hidden rather than showing "Granted".

I verified the branch behavior and ran the affected test file locally (pnpm test src/renderer/src/components/feature-wall/FullDiskAccessSetupPrompt.test.ts — 7 tests pass). All prior Pullfrog threads are resolved. The change reads as intentional and correctly scoped; nothing blocks merge.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

…nd translations

- Name the permission switch "Yolo mode" (matching Settings > Agents) and
  state the risk: agents act without asking and some bypass their sandbox.
- Hide the modal's "Hide checklist from sidebar" button below sm, where the
  header centers its title under it; the sidebar entry keeps its own control.
- Translate every string this PR adds into es, fr, ja, ko, and zh.
variant="ghost"
size="xs"
onClick={handleHideFromSidebar}
className="absolute right-11 top-3.5 hidden sm:inline-flex"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Hide action disappears on narrow windows On windows narrower than sm, this hides the modal’s “Hide checklist from sidebar” action. The alternative is in the sidebar’s context menu, behind the open dialog, so users must close the guide and find that menu to hide the checklist. Keep a compact hide action available inside the modal.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@pullfrog pullfrog 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.

✅ No new issues found.

Reviewed changes

This run re-reviewed the one commit pushed after the prior pullfrog review — 3ca5066535 ("address review on permission warning, hide button, and translations") — a small copy, layout, and localization follow-up.

  • Permission switch relabeled — the onboarding control now reads "Yolo mode" with the risk spelled out underneath ("Agents run commands and edit files without asking, and some also bypass their sandbox. Use only in projects you trust."), replacing "Skip permission prompts"; the old yoloPermissionsLabel/Info/Tooltip keys and the info button are gone.
  • Hide action made responsive — SetupGuideModal's "Hide checklist from sidebar" button is now hidden sm:inline-flex so it no longer collides with the centered dialog title on narrow windows; the sidebar entry keeps its own hide control.
  • Translations filled in — every named key this PR adds is present in es/fr/ja/ko/zh at the expected path, and the stale skipPermissionPromptsLabel key is removed from the English catalog.

Verified locally: all six locale files and en-runtime-required.json parse; each PR-added named key resolves in every locale; the renderer i18n suite passes (21 files / 202 tests), and AgentStep.test.tsx passes.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@Jinwoo-H
Jinwoo-H merged commit 80786dd into main Sep 30, 2026
33 checks passed
brennanb2025 added a commit that referenced this pull request Oct 1, 2026
#22720 dropped the command subtitle from onboarding agent cards, so the
Codex card's accessible name is now "Codex" and /^Codex\s/ never matches.
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]: Onboarding checklist marks "Enable Orca CLI" done while the orca command is not registered

1 participant