fix: handle native Windows skill update flow for Orca setup
Summary
Fixed #6162 the native Windows skill update flow by rewriting npx skills update
This issue was marked as Windows-specific, so WSL behavior is intentionally left unchanged.
Screenshots
No visual change.
Testing
- [ ] pnpm lint
- [ ] pnpm typecheck
- [ ] pnpm test
- [ ] pnpm build
- [x] Added or updated tests covering the Windows fallback
AI Review Report
Reviewed the change for command construction, runtime branching, and regression risk in the skill setup flow.
Checked cross-platform behavior for macOS, Linux, and Windows, including shell handling and platform-specific runtime differences.
Verified the fix stays narrow and only affects the Windows-host update path.
Security Audit
Reviewed shell command handling and input narrowing in the rewrite path.
No new auth, secrets, IPC, or path-handling risks were introduced.
The fallback uses a fixed repository URL and only matches the exact update command shape.
Notes
- Windows host skill updates now use the reinstall path.
- WSL is unchanged because the issue is Windows-specific.
- The shared skill command constants were left intact to avoid unrelated side effects.
[!CAUTION]
Review failed
Pull request was closed or merged during review
📝 Walkthrough
Walkthrough
This PR adds Windows-specific normalization for npx skills update <id> --global in CliSkillRuntimeSetup, converting matching host commands into feature install commands before WSL wrapping. Several skill setup components now use installDisabledReason as the main gate for runtime-specific command generation, and the related tests update their expected commands and platform mocks.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Docstring Coverage | ⚠️ Warning | Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. | Write docstrings for the functions missing them to satisfy the coverage threshold. |
✅ Passed checks (4 passed)
| Check name | Status | Explanation |
|---|---|---|
| Title check | ✅ Passed | The title clearly matches the main change: fixing native Windows skill update flow for Orca setup. |
| Description check | ✅ Passed | The description includes the required sections and covers the change, testing, AI review, security, and notes. |
| Linked Issues check | ✅ Passed | The PR rewrites Windows-host skill update commands to the Orca reinstall path, matching #6162's goal to fix failed global updates. |
| Out of Scope Changes check | ✅ Passed | The touched files and behavior changes stay focused on Windows skill-update handling and related tests, with no obvious unrelated feature work. |
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 @coderabbitai help to get the list of available commands.