Repository navigation
fix(skills): stop the skill review dialog contradicting the badge that opens it - #11128
Conversation
…t opens it A skill whose only fault was an edited copy or one Orca could not read turned the setup-rail badge amber and offered Details — and Details opened a dialog headlined "All installed Orca skills are up to date." over an empty list. The badge says something is wrong, the dialog it points at says nothing is. The grouping only returned skills with an out-of-date copy, so those two states produced no row and the summary fell through to the all-clear headline. Include a skill when a copy needs attention as well, using one shared predicate so the badge and the dialog cannot disagree again. A plugin's own copy of a same-named skill stays out: that is the vendor's, not the user's drift.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds a shared 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/shared/skill-freshness.ts (1)
87-95: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winApply the concise-comment rule consistently.
src/shared/skill-freshness.ts#L87-L95: reduce the JSDoc to the essential exception rationale.src/renderer/src/components/skills/skill-freshness-grouping.ts#L63-L71: replace the UI-flow narrative with a short inclusion-rule description.src/renderer/src/components/skills/skill-freshness-grouping.test.ts#L53-L65: remove or reduce comments already expressed by test names and assertions.As per coding guidelines, comments must be concise, limited to non-obvious information, and preferably one line.
Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 98d2ea19-b9bb-4165-8b8d-394e4befc175
📒 Files selected for processing (4)
src/renderer/src/components/skills/skill-freshness-grouping.test.tssrc/renderer/src/components/skills/skill-freshness-grouping.tssrc/renderer/src/lib/skill-freshness-display-status.tssrc/shared/skill-freshness.ts
| installation.status === 'outdated' | ||
| ) | ||
| ) | ||
| placements.some(isSkillCopyNeedingAttention) |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Use the shared predicate in display-status calculation too.
getSkillFreshnessDisplayStatus still marks every non-current, non-plugin-cache copy as blocked (Lines 27-32), so a supported-global outdated copy can still return needs-attention despite the new exemption. Replace that inline condition with isSkillCopyNeedingAttention(installation).
Proposed fix
- if (
- installation.status !== 'current' &&
- !(installation.status === 'unrecognized' && installation.topology === 'plugin-cache')
- ) {
+ if (isSkillCopyNeedingAttention(installation)) {
hasBlockedCopy = true
}Based on PR objectives, badge and dialog behavior must use the shared attention criterion.
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| placements.some(isSkillCopyNeedingAttention) | |
| if (isSkillCopyNeedingAttention(installation)) { | |
| hasBlockedCopy = true | |
| } |
Greptile SummaryThis PR fixes a badge–dialog contradiction where the setup-rail badge turned amber and offered a Details link, but the dialog it opened reported "All installed Orca skills are up to date" over an empty list. The root cause was that
Confidence Score: 5/5Safe to merge — the change is a targeted extraction of an existing inline predicate into a shared function, with both call sites updated to use it identically to before. Clean extraction of an existing inline predicate into a shared function; both call sites updated identically; plugin-cache exemption preserved in the shared predicate and directly tested; new tests cover the corrected path and regression guard. Files Needing Attention: No files require special attention.
|
| Filename | Overview |
|---|---|
| src/shared/skill-freshness.ts | Adds isSkillCopyNeedingAttention as the single shared predicate for badge/dialog agreement — logic is a clean extraction of the existing inline condition from hasSkillCopyNeedingAttention. |
| src/renderer/src/lib/skill-freshness-display-status.ts | Replaces the duplicated inline predicate in hasSkillCopyNeedingAttention with a call to isSkillCopyNeedingAttention; semantics are unchanged and the import of SUPPORTED_GLOBAL_SKILL_TOPOLOGIES is correctly removed. |
| src/renderer/src/components/skills/skill-freshness-grouping.ts | Extends groupSkillFreshness filter to include skills with needs-attention copies (unrecognized/inaccessible), fixing the badge–dialog contradiction; retains the explicit outdated check so canonical/provider-alias out-of-date copies still appear. |
| src/renderer/src/lib/skill-freshness-display-status.test.ts | Adds a new test ensuring hasSkillCopyNeedingAttention returns false for a routine eligible-outdated copy, directly guarding the no-cry-wolf requirement. |
| src/renderer/src/components/skills/skill-freshness-grouping.test.ts | Splits the old hiding test into three focused cases covering the plugin-cache exemption, the now-visible unrecognized/inaccessible rows, and edited canonical copies. |
Reviews (1): Last reviewed commit: "test(skills): pin that a routine outdate..." | Re-trigger Greptile
…t opens it (stablyai#11128) * fix(skills): stop the skill review dialog contradicting the badge that opens it A skill whose only fault was an edited copy or one Orca could not read turned the setup-rail badge amber and offered Details — and Details opened a dialog headlined "All installed Orca skills are up to date." over an empty list. The badge says something is wrong, the dialog it points at says nothing is. The grouping only returned skills with an out-of-date copy, so those two states produced no row and the summary fell through to the all-clear headline. Include a skill when a copy needs attention as well, using one shared predicate so the badge and the dialog cannot disagree again. A plugin's own copy of a same-named skill stays out: that is the vendor's, not the user's drift. * test(skills): pin that a routine outdated copy raises no attention marker
…erge (stablyai#11248) Re-lands stablyai#11129, which was merged into stablyai#11128's branch rather than main and so never reached main. Content is identical to the reviewed and live-QA'd head ac5ec5b (1775d83 + ac5ec5b, minus the intermediate merge).
…t opens it (stablyai#11128) * fix(skills): stop the skill review dialog contradicting the badge that opens it A skill whose only fault was an edited copy or one Orca could not read turned the setup-rail badge amber and offered Details — and Details opened a dialog headlined "All installed Orca skills are up to date." over an empty list. The badge says something is wrong, the dialog it points at says nothing is. The grouping only returned skills with an out-of-date copy, so those two states produced no row and the summary fell through to the all-clear headline. Include a skill when a copy needs attention as well, using one shared predicate so the badge and the dialog cannot disagree again. A plugin's own copy of a same-named skill stays out: that is the vendor's, not the user's drift. * test(skills): pin that a routine outdated copy raises no attention marker
…erge (stablyai#11248) Re-lands stablyai#11129, which was merged into stablyai#11128's branch rather than main and so never reached main. Content is identical to the reviewed and live-QA'd head ac5ec5b (1775d83 + ac5ec5b, minus the intermediate merge).
Problem
A skill whose only fault is an edited copy or one Orca could not read turns the setup-rail badge amber and offers Details — and Details opens a dialog headlined "All installed Orca skills are up to date." over an empty list.
The badge says something is wrong. The dialog it points at says nothing is, with a green check.
Reproduced live (fixture
$HOMEwith a hand-edited~/.agents/skills/orchestration/SKILL.md):Needs attention+ amber⚠ DetailsCause
groupSkillFreshnessreturned only skills with an out-of-date copy (skill-freshness-grouping.ts).unrecognizedandinaccessibleproduced no row, sosummarizeInventoryfell through to the all-clear headline — whilehasSkillCopyNeedingAttentionhad already turned the badge amber for exactly those states.Two modules, each internally reasoned, disagreeing about what counts.
Fix
Include a skill when a copy needs attention as well as when one is out of date, driven by a single shared predicate
isSkillCopyNeedingAttentioninsrc/shared/skill-freshness.tsthat both the badge and the dialog now call. They cannot drift apart again.Skills where every copy is current stay omitted, and so does a plugin's own copy of a same-named skill — that is the vendor's, not the user's drift (the #10865 regression).
No new strings. The reached copy (
unrecognized,inaccessiblechips and the "Some installed Orca skills were left out of the update." headline) already exists.Verification
Live Electron, isolated profile + fixture
$HOME, identity confirmed non-production.orca-linear/orchestrationrows badgedSkippedwith the "doesn't match the official version … Remove it if you want Orca to update this skill." reason.unrecognizedcopy → card stays greenUp to date, no Details, and the dialog lists no row for it.Update availablerow.pnpm run tc0 ·oxlint0 · 6729 tests pass.Mutation testing
status === 'outdated')