Skip to content

fix(skills): stop promising a skill update the command cannot deliver - #10436

Merged
brennanb2025 merged 5 commits into
mainfrom
brennanb2025/fix-false-update-available
Jul 24, 2026
Merged

brennanb2025 merged 5 commits into
mainfrom
brennanb2025/fix-false-update-available

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #10407

Summary

An "Update available" badge could never be cleared. Pressing Update ran npx skills update orchestration --global, which reported "✓ All global skills are up to date" and wrote nothing — while the badge stayed lit. The user is left pressing a button that reports success and changes nothing, forever.

Root cause

Orca and the skills CLI disagree about what "up to date" means, and the badge was reporting a state the offered command could not act on.

eligibleSkillUpdateNames marked a skill updatable whenever any placement was outdated — including a standalone duplicate copy in an agent home (independent-copy). But --global only converges the canonical copy and its symlink aliases. So a stale duplicate kept the badge lit with no command in the UI that could ever clear it.

Reproduced directly against [email protected] in an isolated HOME:

on-disk state npx skills update … --global Orca badge
canonical current, duplicate stale in an agent home ✓ All global skills are up to date — duplicate untouched Update available (never clears)

What changed

1. Only promise an update the command can deliver — skill-freshness-eligibility.ts

hasOutdated now counts only reliably-convergent placements (canonical-copy / provider-alias).

state before after
canonical outdated eligible eligible (unchanged)
canonical outdated + duplicate outdated eligible eligible (unchanged)
canonical outdated + duplicate current eligible eligible (unchanged)
canonical current + duplicate outdated eligible → badge never clears not eligible → surfaced as needs-attention
duplicate only, outdated not eligible not eligible (unchanged)

2. Don't withhold an update over a copy the command can't reach — skill-freshness-eligibility.ts

A project skill, plugin cache, standalone duplicate, or unreadable copy in another agent's home used to withhold the update from the whole name. --global provably never writes any of them, so that refused work the command could have done over a copy that was never at stake. Eligibility is now decided purely over the placements it converges; a blocked convergent copy still withholds it, because that is the placement it writes to and overwriting it is the real data-loss case.

3. Don't let honesty become silence — skill-freshness-display-status.ts

Dropping the false promise is only half the fix. A skill whose copy is stale somewhere unreachable would have fallen back to a green "Installed" pill — accurate about the main copy, but it reads as all-clear and hides real drift, which is exactly what the freshness rail exists to prevent.

There is now a fourth status, needs-attention (amber), for "a placement is not current but no update can reach it" — covering stale duplicates, edited copies, read-only, inaccessible, and broken or external links. Green now means only two things: presence-only, or genuinely verified current. An unscanned inventory stays quiet, so nothing flashes amber on launch.

4. Mark the way in, and let the dialog explain — SkillFreshnessStatusPill.tsx

The reasons are written to sit beside the location rows they describe, so on a card they have nothing to point at and can only ever name one cause. The rails mark Details with a warning icon when a copy needs the user's own hands; the dialog does the explaining, with every location and cause it knows about.

5. One source for that sentence — skill-freshness-skipped-reason.ts

The reason text lived inside the dialog's group component. It is now its own module, so the rails and the dialog share one copy and cannot drift. The duplicate chip — previously classed non-blocking and falling through to a generic sentence — got a real one:

This is a separate copy, so the update won't reach it — the command only refreshes the main copy. Remove this copy, then reinstall the skill so this location follows the main one.

6. Reach every rail. Orchestration pane + setup card, Computer Use, Ephemeral VMs, Linear, CLI section (via the shared panel), the floating-terminal orchestration modal (which owned a hand-rolled Installed pill and never showed freshness at all), the Browser Use card, the Mobile Emulator row, and the settings sidebar badge — so the nav and the card can never disagree. WSL keeps the presence-only pill, matching the existing local-host gate.

Before / After

Both captured from an identical on-disk state — same scratch home, same skill files, only the build differs:

~/.agents/skills/orchestration    canonical-copy   current    (4,220 B — current bundled content)
~/.cursor/skills/orchestration    independent-copy outdated   (22,676 B — pre-#9846 content)

The main-process scan returns the same two rows on both builds. Only the verdict differs:

build eligibleUpdateNames
before ["orchestration"]
after []

Before — the unclearable badge

"Update available", no way to learn why, and the Update button provably cannot clear it.

before-badge.png

After — the problem is flagged, not hidden

Amber "Needs attention" — not a false promise, and not a green all-clear — with the review affordance marked so it reads as carrying a problem rather than a routine update.

card-needs-attention.png

After — an unreachable copy no longer withholds the update

Same three copies, canonical now stale. The update is offered again — it converges the canonical copy — and the warning still marks the copies it won't reach.

card-update-available.png

After — Details explains every location

Same three copies. Each is listed with its role — Current for the main copy, Duplicate for the stale one, Unrecognized for the locally edited one — beside the reason, which is where that wording belongs.

dialog-details.png

After — a healthy skill stays quiet

Same build, duplicate removed. No amber, no notice, no Details — the new state does not over-warn.

after-healthy.png

Why this fixes the report

The reporter pressed Update, the CLI said "already up to date", and the badge stayed. Four things were wrong:

  1. The badge asserted what the button could not deliver. Eligibility counted a copy --global never touches. Badge and button now agree.
  2. Losing the false alarm would have meant losing the signal. A green "Installed" over real drift is a quieter bug, not a fix. needs-attention keeps the signal while dropping the false promise.
  3. The cause was never stated. Now it is, inline, in the same words the dialog uses.
  4. The explanation was unreachable. The review dialog had rows, chips and reasons all along; the card rendered a bare pill. Details routes there from every rail that shows the badge.

Testing

  • pnpm lint (localization catalog + coverage, skill-bundle manifest, max-lines ratchet, switch exhaustiveness)
  • pnpm typecheck
  • 4017 tests across skills/, settings/, lib/, floating-terminal/, feature-wall/, emulator-pane/, main/skills/
  • New coverage: eligibility rejects an unreachable-duplicate-only skill; grouping marks it cannot-update; the display status separates presence-only from needs-attention; the shared reason picks the harder blocker first; the pill shows/hides Details and opens the dialog
  • Live-verified in the Electron dev build against a real scratch HOME, before and after, plus the healthy case

Notes

  • The nudge toast stays quiet for these states — it filters on eligibility, so Orca no longer nags about something the offered command cannot fix. The amber pill in both the card and the sidebar carries the signal instead.
  • Not verified: Windows/WSL rendering, and the stacked-dialog behaviour when Details is opened from inside the floating orchestration modal.
  • This does not change which command Update runs. The broader update vs add question (skills update trusting its lockfile rather than the installed bytes — see [Bug] NPX skills update #6162) is deliberately left for a separate change.

An "Update available" badge could never clear: pressing Update ran
`npx skills update <name> --global`, which reported "All global skills are
up to date" and wrote nothing, while the badge stayed on.

Freshness marked a name updatable whenever ANY placement was outdated,
including a standalone duplicate in an agent home. The global command only
converges the canonical copy and its symlink aliases, so a stale duplicate
kept the badge lit with no command that could clear it.

- Count only reliably-convergent placements toward the update promise, so a
  stale duplicate no longer advertises an update that cannot land.
- Give the duplicate chip a real skipped-reason instead of falling through to
  the generic sentence, naming the copy and how to resolve it.
- Surface the existing freshness review dialog from the setup rails via a
  Details link, so a blocked or duplicate copy is explainable where the user
  actually sees the badge. Covers orchestration, Computer Use, Ephemeral VMs,
  Linear, the CLI section, the floating orchestration modal, the Browser Use
  card, and the Mobile Emulator row.
@coderabbitai

coderabbitai Bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Global skill update eligibility now ignores non-convergent outliers while preserving safety checks for canonical and supported alias placements. Freshness grouping and localized skipped reasons identify unreachable duplicates. Freshness display status adds needs-attention, and the status pill can show details and request the update dialog. Runtime setup and orchestration components now pass skill names to freshness-aware UI where applicable. Tests and translations were updated accordingly.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 26.67% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning The description covers the change well, but it omits the required Screenshots, AI Review Report, and Security Audit sections. Add a Screenshots section, and fill in the AI Review Report and Security Audit sections per the template, or explicitly state no visual change.
✅ Passed checks (3 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The changes address [#10407] by preventing unreachable duplicates from keeping the update badge active and using needs-attention instead.
Out of Scope Changes check ✅ Passed The UI, localization, and helper refactors are directly tied to the freshness-status fix and supporting tests.
Title check ✅ Passed The title is concise and matches the main change: preventing misleading skill update availability.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

… as all-clear

A skill with an out-of-date copy the update command cannot reach rendered as a
green "Installed" pill. That is honest about the main copy but reads as
all-clear, so real drift in an agent home stayed invisible — the user had no
reason to suspect there was anything to click.

- Add a needs-attention display status (amber) for a placement that is not
  current but has no eligible update: stale duplicates, edited copies,
  read-only, inaccessible, and broken or external links. Presence-only stays
  green, and an unscanned inventory stays quiet so nothing flashes amber on
  launch.
- State the reason inline on the setup rails, so the cause is readable without
  opening the review dialog; Details still opens the full per-location list.
- Extract the skipped-reason sentence into its own module so the rails and the
  dialog share one source and can never drift apart.
- Carry the state through the settings sidebar badge so the nav and the card
  cannot disagree.

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 213de7e5-edf8-45a7-87eb-4bc3ddbd860c

📥 Commits

Reviewing files that changed from the base of the PR and between f304805 and 1a498f0.

📒 Files selected for processing (17)
  • src/renderer/src/components/settings/AgentSkillSetupPanel.tsx
  • src/renderer/src/components/settings/SettingsSidebar.tsx
  • src/renderer/src/components/skills/SkillFreshnessAttentionNotice.tsx
  • src/renderer/src/components/skills/SkillFreshnessStatusPill.test.tsx
  • src/renderer/src/components/skills/SkillFreshnessStatusPill.tsx
  • src/renderer/src/components/skills/skill-freshness-group.tsx
  • src/renderer/src/components/skills/skill-freshness-grouping.ts
  • src/renderer/src/components/skills/skill-freshness-skipped-reason.test.ts
  • src/renderer/src/components/skills/skill-freshness-skipped-reason.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/lib/settings-navigation-types.ts
  • src/renderer/src/lib/skill-freshness-display-status.test.ts
  • src/renderer/src/lib/skill-freshness-display-status.ts
🚧 Files skipped from review as they are similar to previous changes (5)
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/components/skills/SkillFreshnessStatusPill.test.tsx

Comment on lines +22 to +26
return (
<p className="mt-2 flex items-start gap-1.5 text-[12px] leading-snug text-muted-foreground">
<AlertTriangle className="mt-0.5 size-3.5 shrink-0 text-amber-500" />
<span>{reason}</span>
</p>

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.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Amber icon color skips the dark-mode variant used elsewhere for this same warning treatment.

text-amber-500 has no dark: override, while the sibling amber "attention" treatment in skill-freshness-group.tsx (same PR) explicitly pairs light/dark shades (text-amber-700 dark:text-amber-400). For visual consistency across the skills UI in both themes, align this icon's color with that pattern.

🎨 Suggested fix
-      <AlertTriangle className="mt-0.5 size-3.5 shrink-0 text-amber-500" />
+      <AlertTriangle className="mt-0.5 size-3.5 shrink-0 text-amber-600 dark:text-amber-400" />

As per path instructions: "All UI work involving layout, color, typography, spacing, component selection, or UX behavior must follow docs/STYLEGUIDE.md, use tokens from src/renderer/src/assets/main.css... Do not invent documented color values."

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

Suggested change
return (
<p className="mt-2 flex items-start gap-1.5 text-[12px] leading-snug text-muted-foreground">
<AlertTriangle className="mt-0.5 size-3.5 shrink-0 text-amber-500" />
<span>{reason}</span>
</p>
return (
<p className="mt-2 flex items-start gap-1.5 text-[12px] leading-snug text-muted-foreground">
<AlertTriangle className="mt-0.5 size-3.5 shrink-0 text-amber-600 dark:text-amber-400" />
<span>{reason}</span>
</p>

Source: Path instructions

The shared reason sentences are deictic — "this copy", "the copy here" — because
they were written for the review dialog, where the location rows they describe sit
directly beneath them. On the setup rails there are no rows, so "this" referred to
nothing and the sentence read as if it were about the skill itself.

Name the offending paths above the sentence on the rails, so the referent is
present before the wording that depends on it. Every copy sharing the blocking
reason is listed, not just the first, so resolving one does not leave the badge
unexplained. The dialog keeps its existing wording and rows unchanged.

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

🧹 Nitpick comments (1)
src/renderer/src/components/skills/SkillFreshnessAttentionNotice.tsx (1)

25-29: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use documented typography tokens instead of arbitrary sizes.

text-[12px] and text-[11px] bypass the renderer’s documented typography tokens. Replace them with the corresponding values from docs/STYLEGUIDE.md and src/renderer/src/assets/main.css.

As per coding guidelines: UI work must use the documented style-guide and asset tokens.

Source: Coding guidelines


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d5c1386d-726b-44c3-b632-4342d6aeeb24

📥 Commits

Reviewing files that changed from the base of the PR and between 1a498f0 and ddfc188.

📒 Files selected for processing (3)
  • src/renderer/src/components/skills/SkillFreshnessAttentionNotice.tsx
  • src/renderer/src/components/skills/skill-freshness-skipped-reason.test.ts
  • src/renderer/src/components/skills/skill-freshness-skipped-reason.ts

Eligibility is now decided purely over the placements the global command actually
converges — the canonical copy and its symlink aliases.

A project skill, plugin cache, standalone duplicate, or unreadable copy in another
agent's home used to withhold the update from the whole name. `skills update
--global` provably never writes any of them, so that refused work the command could
have done over a copy that was never at stake. A blocked *convergent* copy still
withholds it: that is the placement the command writes to, and overwriting it is the
real data-loss case.

Also drop the inline reason from the setup rails. The reasons are written to sit
beside the location rows they describe, so on a card they had nothing to point at and
could only ever name one cause. The rails now mark Details with a warning icon when a
copy needs the user's own hands, and the dialog does the explaining with every
location and cause it knows about.

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

🧹 Nitpick comments (3)
src/main/skills/skill-freshness-eligibility.ts (1)

6-16: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Condense the explanatory comments. Keep only the non-obvious invariant; the implementation-level rationale is too verbose for the repository’s comment style.

  • src/main/skills/skill-freshness-eligibility.ts#L6-L16: reduce the docblock to the convergent-placement eligibility rule.
  • src/renderer/src/components/skills/skill-freshness-skipped-reason.ts#L29-L31: reduce this to a short rendering-context note or remove it.

As per coding guidelines, “Comments must be concise, limited to non-obvious information, and preferably one line.”

Source: Coding guidelines

src/renderer/src/components/skills/SkillFreshnessStatusPill.tsx (2)

59-61: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Keep this rationale comment concise.

This three-line comment explains implementation details. Retain only the non-obvious rationale, for example: // The dialog provides location-specific causes; this link only opens it.

Source: Coding guidelines


70-70: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use renderer design tokens instead of raw Tailwind values.

text-[11px] and text-amber-500 bypass the required STYLEGUIDE.md and main.css token contract. Replace them with the documented typography and attention-color tokens.

Source: Coding guidelines


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 9fc102db-bb7f-4c71-904a-da83871c6883

📥 Commits

Reviewing files that changed from the base of the PR and between ddfc188 and 7cd3228.

📒 Files selected for processing (7)
  • src/main/skills/skill-freshness-eligibility.test.ts
  • src/main/skills/skill-freshness-eligibility.ts
  • src/main/skills/skill-freshness-inventory.test.ts
  • src/renderer/src/components/skills/SkillFreshnessStatusPill.tsx
  • src/renderer/src/components/skills/skill-freshness-skipped-reason.test.ts
  • src/renderer/src/components/skills/skill-freshness-skipped-reason.ts
  • src/renderer/src/lib/skill-freshness-display-status.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/renderer/src/lib/skill-freshness-display-status.ts

The review link rendered as bare text, so nothing but hover said it could be
clicked — the badge told the user something was wrong and then gave them no visible
way in.

Use the ghost variant so it carries a hover/focus background and a real hit target
instead of a zero-padding text run, and add a chevron so it reads as a control at
rest. The chevron points right, not down: this opens the review dialog, while a down
chevron already means the in-place expander inside that dialog.
@brennanb2025
brennanb2025 merged commit e133d93 into main Jul 24, 2026
13 of 14 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…stablyai#10436)

* fix(skills): stop promising a skill update the command cannot deliver

An "Update available" badge could never clear: pressing Update ran
`npx skills update <name> --global`, which reported "All global skills are
up to date" and wrote nothing, while the badge stayed on.

Freshness marked a name updatable whenever ANY placement was outdated,
including a standalone duplicate in an agent home. The global command only
converges the canonical copy and its symlink aliases, so a stale duplicate
kept the badge lit with no command that could clear it.

- Count only reliably-convergent placements toward the update promise, so a
  stale duplicate no longer advertises an update that cannot land.
- Give the duplicate chip a real skipped-reason instead of falling through to
  the generic sentence, naming the copy and how to resolve it.
- Surface the existing freshness review dialog from the setup rails via a
  Details link, so a blocked or duplicate copy is explainable where the user
  actually sees the badge. Covers orchestration, Computer Use, Ephemeral VMs,
  Linear, the CLI section, the floating orchestration modal, the Browser Use
  card, and the Mobile Emulator row.

* fix(skills): say when a skill copy needs attention instead of reading as all-clear

A skill with an out-of-date copy the update command cannot reach rendered as a
green "Installed" pill. That is honest about the main copy but reads as
all-clear, so real drift in an agent home stayed invisible — the user had no
reason to suspect there was anything to click.

- Add a needs-attention display status (amber) for a placement that is not
  current but has no eligible update: stale duplicates, edited copies,
  read-only, inaccessible, and broken or external links. Presence-only stays
  green, and an unscanned inventory stays quiet so nothing flashes amber on
  launch.
- State the reason inline on the setup rails, so the cause is readable without
  opening the review dialog; Details still opens the full per-location list.
- Extract the skipped-reason sentence into its own module so the rails and the
  dialog share one source and can never drift apart.
- Carry the state through the settings sidebar badge so the nav and the card
  cannot disagree.

* fix(skills): give the inline skill warning something to point at

The shared reason sentences are deictic — "this copy", "the copy here" — because
they were written for the review dialog, where the location rows they describe sit
directly beneath them. On the setup rails there are no rows, so "this" referred to
nothing and the sentence read as if it were about the skill itself.

Name the offending paths above the sentence on the rails, so the referent is
present before the wording that depends on it. Every copy sharing the blocking
reason is listed, not just the first, so resolving one does not leave the badge
unexplained. The dialog keeps its existing wording and rows unchanged.

* fix(skills): stop withholding the update over copies it cannot reach

Eligibility is now decided purely over the placements the global command actually
converges — the canonical copy and its symlink aliases.

A project skill, plugin cache, standalone duplicate, or unreadable copy in another
agent's home used to withhold the update from the whole name. `skills update
--global` provably never writes any of them, so that refused work the command could
have done over a copy that was never at stake. A blocked *convergent* copy still
withholds it: that is the placement the command writes to, and overwriting it is the
real data-loss case.

Also drop the inline reason from the setup rails. The reasons are written to sit
beside the location rows they describe, so on a card they had nothing to point at and
could only ever name one cause. The rails now mark Details with a warning icon when a
copy needs the user's own hands, and the dialog does the explaining with every
location and cause it knows about.

* fix(skills): make the skill Details affordance read as a control

The review link rendered as bare text, so nothing but hover said it could be
clicked — the badge told the user something was wrong and then gave them no visible
way in.

Use the ghost variant so it carries a hover/focus background and a real hit target
instead of a zero-padding text run, and add a chevron so it reads as a control at
rest. The chevron points right, not down: this opens the review dialog, while a down
chevron already means the in-place expander inside that dialog.
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.

[Bug] "Update available" for Orchestration skill won't go away

1 participant