Skip to content

fix(skills): recognize symlinked provider skill roots - #22606

Merged
buf0-bot[bot] merged 1 commit into
stablyai:mainfrom
aaryanporwal:fix/skill-freshness-symlinked-root
Sep 24, 2026
Merged

buf0-bot[bot] merged 1 commit into
stablyai:mainfrom
aaryanporwal:fix/skill-freshness-symlinked-root

Conversation

@aaryanporwal

@aaryanporwal aaryanporwal commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

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:
orca-skill-warning-before

After: pending. need to attach a screenshot from a build containing this change, with one grouped installation

Testing

  • I manually tested these changes locally in the patched app
  • Automated tests added/updated

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

  • Not applicable; this change copies no upstream skill-installer source,
    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

  • This PR is small and focused
  • I explained what changed and why
  • Before/after screenshots or videos attached
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass locally;
    full CI remains to run

The two remaining submission items are the dedicated issue number and visual
proof from a patched build.

@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 — read the full two-file diff: the provider-root symlink classification change and its regression test.

  • Symlinked provider skill roots classified as aliases — classifyHomeSkillTopology now runs the canonical-target check for rootOrProviderParentLinked, so a provider root that symlinks into ~/.agents/skills becomes provider-alias and dedupes with the canonical copy instead of surfacing as a second external-link installation.
  • Regression test — a non-Windows test symlinks .claude/skills to the canonical root and asserts a single deduped canonical-copy installation. I verified it fails against the pre-fix branch (expected ... to have a length of 1 but got 2) and passes with the change.

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

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

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: f49b6d61-aa98-4683-88bc-9f0dfcc47228

📥 Commits

Reviewing files that changed from the base of the PR and between b4d7326 and 9215762.

📒 Files selected for processing (2)
  • src/main/skills/skill-freshness-inventory.test.ts
  • src/main/skills/skill-installation-topology.ts

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


📝 Walkthrough

Walkthrough

classifyHomeSkillTopology 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 .claude/skills root and reports one current canonical-copy installation with both providers.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 92157

The change is ready to merge; Windows verification remains advisable as follow-up coverage.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning The description clearly explains the user impact, implementation, rationale, testing, and limitations. However, it does not provide the required issue reference in the Fixes # format, and the requir… Add the dedicated issue reference using Fixes #<issue-number>. Attach an after screenshot from a build containing this change, alongside the existing before screenshot. Update the checklist and test status when CI or maintainer verificati…
✅ Passed checks (3 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title clearly identifies the primary change: recognizing symlinked provider skill roots.
Full details: Description check

Explanation

The description clearly explains the user impact, implementation, rationale, testing, and limitations. However, it does not provide the required issue reference in the Fixes # format, and the required after visual proof remains pending.

Resolution

Add the dedicated issue reference using Fixes #&lt;issue-number&gt;. Attach an after screenshot from a build containing this change, alongside the existing before screenshot. Update the checklist and test status when CI or maintainer verification completes if required by the repository process.

  • Fix all pre-merge checks with AI

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.

@buf0-bot
buf0-bot Bot merged commit 29480cd into stablyai:main Sep 24, 2026
2 checks passed
brennanb2025 added a commit that referenced this pull request Sep 25, 2026
…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.
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.

1 participant