Repository navigation
Install and update Orca's skills on paired servers and SSH hosts - #31867
Merged
Merged
Conversation
One planner decides what installing Orca's bundled skills does to each target folder; execute re-plans under per-path locks and runs only a plan whose digest still matches; a shared summary derives badge, wording and exit code. A copy counts as Orca's untouched one only when its SKILL.md bytes match a version some build shipped (resources/skills/released-digests.json, generated from git history and checked add-only). Nothing calls this yet; the npx path is unchanged.
A leave is no longer a failure: the outcome line says what happened plus "N left alone: <reason>", and the exit code is 1 only for a failed or changed op. Backups for every scope go to <home>/.agents/.orca-skill-backups on the executing host, so a project Replace never writes into the repo; moving there falls back to copy, verify, then remove across filesystems.
The app's Update skills dialog, badge, nudge and status pills now read the bundled-skill plan and summary, and Update executes the reviewed plan's digest. `orca skills install|update` runs the same planner in-process with --dry-run, --force, --json and per-summary exit codes. Removes both npx spawn sites, the freshness inventory modules and the npx round-trip CI.
…p and CLI installedOnly now drops every location that holds nothing (keeping the shared slot only when an existing agent link points at it), so Update never adds a skill for another agent. The app and CLI resolve the Claude skills folder through the same rule in localBundledSkillInput; a test asserts both plan identically.
…gent summarizeBundledSkillPlan now returns each skill's locations, labelled by agent (or "Shared folder") with a ~-collapsed path; the dialog shows one row per skill that needs something, collapses up-to-date skills into one line, and lists every location behind "Show all locations". The result reads "Updated N skills · M left alone". Under installedOnly a Replace with no shared copy replaces in place instead of adding one.
…nder Split the update dialog's rows, headline and footer into components, move the Update label next to the other plan copy, and use z.strictObject for the request schemas.
The orcad bundle rejects a literal non-ASCII character in a regex.
…e' into jinwoo/bundled-skill-install-switch
Drop the deleted roundtrip workflow's group from the closed-PR cancellation fixture.
…nd runs apart, never boot WSL for a background check
…tch' into jinwoo/bundled-skill-install-remote
…s on Windows Directory links in fixtures are junctions on Windows, which need no Developer Mode; the one file-link fixture is skipped there.
3 tasks done
… to connect otherwise
…skill-install-switch # Conflicts: # .github/workflows/skill-update-roundtrip.yml
…d-skill-install-remote
…d-skill-install-remote
…d-skill-install-remote # Conflicts: # 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/pt.json # src/renderer/src/i18n/locales/zh.json
…d-skill-install-remote
…d-skill-install-remote
…skill-install-switch # Conflicts: # src/main/skills/bundled-skill-install/plan.ts
…d-skill-install-remote
…d-skill-install-remote # Conflicts: # src/renderer/src/components/skills/SkillFreshnessUpdateDialog.tsx # src/renderer/src/components/skills/skill-update-run-store.ts # src/renderer/src/components/status-bar/SkillUpdateStatusSegment.tsx
…d-skill-install-remote
…install-switch # Conflicts: # src/main/skills/bundled-skill-install/layouts.test.ts # src/main/skills/bundled-skill-install/plan.ts # src/main/skills/bundled-skill-install/service.ts # src/main/skills/bundled-skill-install/skill-home.test-support.ts # src/shared/bundled-skill-plan.ts # src/shared/bundled-skill-summary.test.ts # src/shared/bundled-skill-summary.ts
Jinwoo-H
changed the base branch from
jinwoo/bundled-skill-install-switch
to
main
October 23, 2026 02:35
…tch' into jinwoo/bundled-skill-install-remote
…install-remote # Conflicts: # src/main/ipc/skills.test.ts # src/main/ipc/skills.ts # src/main/runtime/runtime-bundled-skill-install.ts # src/preload/api/agent-skill-api.ts # src/renderer/src/components/floating-terminal/FloatingTerminalOrchestrationDialog.freshness.test.tsx # src/renderer/src/components/settings/use-settings-store-model.ts # src/renderer/src/components/skills/SkillFreshnessNudge.test.tsx # src/renderer/src/components/skills/SkillFreshnessNudge.tsx # src/renderer/src/components/skills/SkillFreshnessStatusPill.tsx # src/renderer/src/components/skills/SkillFreshnessUpdateDialog.test.tsx # src/renderer/src/components/skills/SkillFreshnessUpdateDialog.tsx # src/renderer/src/components/skills/skill-update-run-store.ts # src/renderer/src/components/skills/use-reviewed-skill-plan.ts # src/renderer/src/components/status-bar/SkillUpdateStatusSegment.test.tsx # src/renderer/src/components/status-bar/SkillUpdateStatusSegment.tsx # src/renderer/src/hooks/useSkillFreshness.test.tsx # src/renderer/src/hooks/useSkillFreshness.ts # 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/pt.json # src/renderer/src/i18n/locales/zh.json # src/shared/bundled-skill-plan.ts
Contributor
✨ Finishing Touches
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 |
This was referenced Oct 23, 2026
1 task done
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Stacked on #31688 (local switch), which is stacked on #31662 (the installer). Review those first; this PR's diff is against #31688's branch.
ELI5
Orca now updates its own skills (
orca-cli,orchestration, ...) itself instead of runningnpx skills add. Until this PR that only worked for skills on this computer. Many people run their agents somewhere else: a paired Orca server or an SSH host. This PR lets the same Update skills flow plan and update the skills where the agents actually run.What Changed
Before: with a paired server or SSH host focused, Orca showed no skill update badge, nudge or status for that machine. Updating meant opening a terminal there and running
npx.After:
orcad, reached as a paired runtime): the nudge, the Update skills dialog, Replace and the result line work as on this computer, but against the server's disk. The server plans its own home with its own files. This computer's skill folders are never read or written for it.ORCA_INTERNAL_WSL_HOSTS). Once that ships, WSL projects use this same server path, with no WSL-specific installer code.Mechanism:
skills.bundled-orca.v1and two RPC methods:skills.planBundledOrca({ force?, names? })returns the host's plan (withoutnamesit updates what is installed; withnamesit installs those bundled skills for the host's agents, likeorca skills install <names>, and the host rejects a name it does not ship), andskills.executeBundledOrca({ planDigest, request })re-plans under the host's locks and runs only if the digest still matches (same contract as the local IPC). Neither accepts a WSL target or operations, so a client cannot point a server at anything but its own home.lib/bundled-skill-target.ts): the active workspace's host if it is paired, else the focused paired runtime, else this computer. A WSL project, or an active workspace whose owner hasn't loaded yet, gets no target. Every surface (nudge, dialog, pill, run store, re-plan on Replace) uses that target.runtime-bundled-skills-client.tsroutes it: this computer over IPC, paired hosts over RPC after a capability check.Wire compatibility:
skills.bundled-orca.v1, the client shows Update Orca on the server and never calls the new methods. If the status probe fails, the client shows an error instead.skills.discoverand the existingskills.*methods are unchanged, and an old client's terminalnpxinstall still lands on the server's disk.{ force?, names? }, strict and frozen withv1, so a later field needs a new capability. Execute carries the same request, so a plan previewed with differentnamesis refused as changed. Op and reason values are frozen too; a client shows a value it does not know as Needs attention (already in Add Orca's own bundled-skill planner and installer (not wired in yet) #31662's summary).Why
The plan has to be made on the machine whose disk it describes. Shipping a remote filesystem API would have meant symlink, readlink and rename over a wire, and SSH no longer has a relay filesystem at all. Since every SSH host and paired server already runs Orca, it can run the same planner on its own disk and send back the same plan and digest. An earlier revision also reached WSL distros directly through
wsl.exe; it was removed because WSL is becoming an Orca server host, which this path already covers.Deviations from the design doc (design-rev4):
Linked Issue
Refs #28914. Part of the bundled-skill installer stack (#31662, #31688).
Visual Proof
Real dev builds with hidden windows (Playwright, CDP screenshots), an isolated headless Orca server, and an isolated server home holding a real
npx [email protected]install of an older Orca release (Claude-only, withcomputer-useedited by hand). Before this PR, none of this UI appeared for a paired server.Paired server, nudge: (screenshot removed: contained real product data)
Paired server, before Update: (screenshot removed: contained real product data)
Paired server, after Update: (screenshot removed: contained real product data)
Older server (built from #31688, no capability): (screenshot removed: contained real product data)
After Update, the server's
orca-cliandorchestrationheld this build's bytes,computer-usewas left alone, and the client's own home had no skill folders.Testing
Automated:
changedand writes nothing.useSkillFreshness.Real runs:
orca servestarted from the CLI (it chose the Electron host here) also passed.Ran:
pnpm tc, the touched test suites,check:code-quality:changed, oxlint,oxfmt --check, RPC catalog, localization, reliability gates, ratchets, the othercheck-*.mjsscripts and anti-slop.Not run:
orcaditself as the server on this Mac. Its own build smoke fails here on a file-watcher readiness timeout, unrelated to this change. The method is in theorcadbundle, and Update Orca's skills with Orca's own installer instead of npx skills #31688's node-server test covers the planner inorcad.I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Review
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platoform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)