Skip to content

Delete the base realm's stale Skill card copies - #5876

Draft
jurgenwerk wants to merge 2 commits into
mainfrom
cs-12344-delete-old-unused-skill-card-json
Draft

Delete the base realm's stale Skill card copies#5876
jurgenwerk wants to merge 2 commits into
mainfrom
cs-12344-delete-old-unused-skill-card-json

Conversation

@jurgenwerk

Copy link
Copy Markdown
Contributor

The four skill card instances under packages/base/Skill (boxel-development, boxel-environment, catalog-listing, source-code-editing) were stale copies of skills that the skills realm (@cardstack/skills) already serves. Nothing in the host resolves skills through the base realm anymore (skillCardURL() always builds an @cardstack/skills/Skill/... reference), so this deletes them.

Two references had to move with them: an acceptance test used base/Skill/catalog-listing as a recent card to exercise "create instance from a read-only realm" and now uses base/Theme/boxel-brand-guide for the same purpose, and one experiments-realm environment card linked to the base copy of boxel-environment and now points at the skills realm like its sibling links.

Old assistant rooms can still hold an enabled skill card whose URL is one of the deleted paths (or any other skill that was deleted or renamed later). Two changes make that degrade instead of break:

  • RoomResource.loadSkills now loads each enabled skill on its own. A skill that fails to download or resolve logs a warning and is skipped, so the other skills in the room still load and the room still opens. Before, one bad skill aborted the whole skills load.
  • The skill menu pill renders a dashed "Skill unavailable" pill (tooltip shows the id) for a skill whose card errors, with its toggle intact, so the user can turn the dead reference off. Before, the pill rendered nothing and the "N of M active" count silently disagreed with the visible pills.

A new integration test opens a room whose only enabled skill points at a non-existent card and asserts the room settles and the unavailable pill with its toggle is shown.

…ll reference them

The skills realm (@cardstack/skills) is the source of the boxel-development,
boxel-environment, catalog-listing and source-code-editing skills. The
copies under packages/base/Skill were stale duplicates nothing loaded
through code anymore.

Rooms created before this change can still hold an enabled skill card whose
URL no longer resolves. Loading such a skill now fails on its own instead of
aborting the load of every other skill in the room, and the skill menu
renders the dead reference as a 'Skill unavailable' pill that can still be
toggled off.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Preview deployments

Host Test Results

    1 files      1 suites   1h 43m 33s ⏱️
4 379 tests 4 365 ✅ 14 💤 0 ❌
4 398 runs  4 384 ✅ 14 💤 0 ❌

Results for commit dece952.

Realm Server Test Results

    1 files      1 suites   13m 4s ⏱️
2 280 tests 2 280 ✅ 0 💤 0 ❌
2 363 runs  2 363 ✅ 0 💤 0 ❌

Results for commit dece952.

…he panel opens it

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant