Repository navigation
fix(skills): say an SSH repo was not scanned instead of dropping it silently - #27261
Conversation
…ilently Discovery skipped every SSH-backed repo without a trace, so the Skills page counted only local folders and never said a repo was left out. Each skipped SSH repo now appears as a source with skippedReason 'remote-repo', which the Skills folder list already renders as 'Remote repo - not scanned'.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to SSH-backed repos now appear in the skills folder list as not scanned, instead of being silently omitted. Local scanning is unchanged and no merge-blocking risk was found. Pre-merge checks |
|
ELI5
When a project lives on an SSH machine, Orca's Skills page quietly ignored it. Now the page lists that project and says it was not scanned, so the missing skills have an explanation.
What Changed
discoverSkillsnow adds one source per SSH-backed repo, withexists: falseandskippedReason: 'remote-repo'. The'remote-repo'reason was already part of the type and the renderer already displayed it, but nothing ever produced it. The newskill-remote-repo-sources.tsbuilds these sources. They have no scan roots, so nothing is read from disk and the remote path is never treated as a local folder. A scan filtered to non-repo sources (for examplesourceKinds: ['home']) leaves them out. Repos owned by a paired Orca server are also left out, because that server scans its own repos when it is the focused host.Why
This turns a silent gap into a visible one with the smallest change, because the type and the UI were already in place. Actually reading skill folders on the SSH host is a separate piece of work: it needs a discovery target and a transport that run on that host, and the issue asks for it to be scoped separately. The design planned to also send workspace identity with
skills.*calls. I left that out: today no caller can name an SSH workspace that its host can scan, so sending it would change nothing until SSH discovery exists.Linked Issue
Fixes #11466. The new test fails on main (no
remote-reposource is produced) and passes here. Discovering skills on the SSH host itself is left for follow-up work, as the issue suggests.Visual Proof
N/A. The folder list already renders the "Remote repo — not scanned" label. This change only supplies the data that label was waiting for, and is covered by a unit test.
Testing
discovery.test.tschecks that an SSH repo produces exactly oneremote-reposource, that none of its subfolders are scanned locally, that a paired-server repo produces none, and that a home-only scan produces none. Related discovery, install-verification and source-inventory tests pass.pnpm tc:node, oxlint andcheck:code-quality:changedpass.Review
Agent skill upstream boundary
Notes
basenamehandles POSIX remote paths on Windows.'remote-repo'value from the shared type.'unavailable'sources affect it, so these new sources cannot change an install verdict.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)