Repository navigation
fix(skills): make skippedReason switch exhaustive - #9594
Merged
AmethystLiang merged 1 commit intoJul 23, 2026
Merged
Conversation
Zuz666
marked this pull request as ready for review
July 20, 2026 20:07
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between 9db7bcd3da405c66843dcfeefc1b9dc93a87f0cb and b2a230c. 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughUpdated 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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 |
The type-aware switch-exhaustiveness lint rule requires explicit cases for 'current', 'duplicate', and undefined; they fall through to the existing generic skipped message, so behavior is unchanged.
Zuz666
force-pushed
the
fix/skills-skipped-reason-exhaustive
branch
from
July 20, 2026 22:50
9db7bcd to
b2a230c
Compare
AmethystLiang
requested review from
AmethystLiang and
brennanb2025
and removed request for
brennanb2025
July 22, 2026 17:04
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
The type-aware switch-exhaustiveness lint rule requires explicit cases for 'current', 'duplicate', and undefined; they fall through to the existing generic skipped message, so behavior is unchanged. Co-authored-by: Yuris Auzins <[email protected]>
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.
Summary
Fixes #9589.
Adds explicit
'current','duplicate', andundefinedcases to theskippedReasonswitch inskill-freshness-group.tsx. The type-awareswitch-exhaustivenesslint rule (pnpm run lint:switch-exhaustiveness) requires them; all three fall through to the existing generic skipped message, so behavior is unchanged.No visual change.
Screenshots
No visual change.
Testing
pnpm lint— passes for the changed file; the repo-wide type-aware run now reports only the pre-existingdaemon-server.ts:652violation that also exists onmain(untouched here). CI's lint step (non-type-awareoxlint) is green.pnpm typecheckpnpm test— not run in full; change is a no-op branch through the samedefaultpath, covered by existing lint/typecheckpnpm buildAI Review Report
Reviewed the change with the coding agent for cross-platform compatibility (macOS/Linux/Windows — pure TS switch, no platform surface), SSH/remote/local compatibility (renderer-only), agent/integration compatibility (none), performance (none — same code path, explicit cases fall through identically), UI quality (no visual change), and basic security (no input handling changes). No flags; nothing to change as a result.
Security Audit
No input handling, command execution, path handling, auth, secrets, dependency, or IPC surface touched. No follow-up.
Notes
maincurrently has one more pre-existing violation of the same rule insrc/main/daemon/daemon-server.ts:652(closeStartupQueryAuthority). Left alone deliberately — unrelated to this fix and the rule is not CI-enforced.