Repository navigation
fix(skills): recognize symlinked provider skill roots - #22606
Conversation
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — read the full two-file diff: the provider-root symlink classification change and its regression test.
- Symlinked provider skill roots classified as aliases —
classifyHomeSkillTopologynow runs the canonical-target check forrootOrProviderParentLinked, so a provider root that symlinks into~/.agents/skillsbecomesprovider-aliasand dedupes with the canonical copy instead of surfacing as a secondexternal-linkinstallation. - Regression test — a non-Windows test symlinks
.claude/skillsto the canonical root and asserts a single dedupedcanonical-copyinstallation. I verified it fails against the pre-fix branch (expected ... to have a length of 1 but got 2) and passes with the change.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughclassifyHomeSkillTopology now classifies a canonical skill target as a provider alias when the skill path or an ancestor is a symlink. A non-Windows test checks that inventorySkillFreshness deduplicates a symlinked Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The change is ready to merge; Windows verification remains advisable as follow-up coverage. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description clearly explains the user impact, implementation, rationale, testing, and limitations. However, it does not provide the required issue reference in the Resolution Add the dedicated issue reference using
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 |
…e release gate (#22775) The skill-sharing release gate checks out the release tag, then restores main's copy of skill-freshness-inventory.test.ts. That file holds behaviour tests, so a behaviour test added on main runs against a tag that predates the behaviour: #22606 added one and failed the v1.4.211 gate on macOS and Linux. Keep restoring skill-provider-runtime-roots.test.ts from the workflow ref.

ELI5
If two skill locations lead to the same folder, Orca should show one skill. It
previously treated a linked skills folder as a separate copy and could show a
misleading update warning.
What Changed
When a provider’s skills folder is a symlink to Orca’s canonical skills folder,
Orca now recognizes the skill as an alias of the canonical installation. The
update inventory groups those locations into one entry.
Links to other destinations are still treated as external copies. A regression
test covers the linked-folder case.
Why
Some users share skills between agents by linking ~/.claude/skills to ~/.agents/skills (or linking the provider directory that contains it). In that setup, both paths lead to the same installed skill, but Orca could treat the Claude path as a separate, unrecognized copy. Anyone using that layout could see the misleading update warning.
Linked Issue
Related: #18263 describes a different externally backed shared-folder setup
Visual Proof
Before:

After: pending. need to attach a screenshot from a build containing this change, with one grouped installation
Testing
On macOS, the focused skill freshness suite passed (30 tests). The regression
test reproduced two installations before the fix and one after it. The Node
typecheck, changed-code quality gate, formatting check, and commit hooks passed.
The patched app was not manually tested. Linux, Windows, SSH, and mobile were
not tested locally.
AI Disclosure
GPT-6 (Codex) helped investigate the bug, write the change and regression test,
and run the checks listed above.
Review
The change reuses Orca’s existing resolved-path check. It recognizes an alias
only when it resolves into the canonical skills folder; links elsewhere retain
their external classification. No new filesystem scan was added.
Agent skill upstream boundary
tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
The regression test runs on macOS and Linux and is skipped on Windows. Windows
link and junction behavior, SSH, and mobile need CI or maintainer verification.
This change does not address externally backed shared skill folders such as the
setup in #18263.
Checklist
pnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass locally;full CI remains to run
The two remaining submission items are the dedicated issue number and visual
proof from a patched build.