You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(platform): Settings › Skills shows "No skills yet" on a failed read, raw English on a failed upload, and "Unknown team" for real teams #4888
Settings › Skills says false things when its reads fail. Paths at mainc94f1fd84, under services/platform/app/features/skills/components/.
A failed library read shows "No skills yet" and the create button.
skills-settings.tsx:105-108 reads skillsQuery.data?.skills ?? []. The list gets data: skillsQuery.isPending ? undefined : rows (:266-270), with no error or retry.
So the table falls to its empty state: "No skills yet / Write a skill once, then equip project agents…" (:320-326, emptyStates.skills), with Add skill.
The only sign of the failure is an alert above it (:293-295, skills.listFailed): "Couldn't load the skill library. Reload to retry." There's no Try again.
useListPage takes error and retry exactly so that a failed read is "never the collection's empty state" (packages/ui/src/hooks/use-list-page.ts:36-50).
A failed upload shows raw technical English.
skill-upload/skill-upload-pane.tsx:84-92 builds the toast description with a local extractErrorMessage (:164-172). It returns the server's data.message, else err.message.
So a failed zip or folder upload can say "Request failed with status 502" (app/lib/backend/api-client.ts:113) or "Failed to fetch", in every locale.
The detail pane of the same feature already uses the shared failureDetail (skill-detail-pane.tsx:189, :204). Because the code goes through a local helper, it also escapes tests/guards/error-message-description.guard.test.ts.
"Unknown team" for real teams.skills-settings.tsx:99-103 takes only teams from useTeamDirectory(), and team-shared skills render teamNames.get(teamId) ?? t('visibility.unknownTeam') (:241-243). While the directory loads, and permanently after it fails, every team badge says "Unknown team". The directory hook's own contract (settings/teams/hooks/queries.ts:37-40) says an unread name "is not an unknown team".
Expected
Pass the query's error and retry to useListPage, so a failed read shows the table's error state with Try again, not the empty state. Drop the "Reload to retry" banner.
Use failureDetail(err) for the upload description.
Show a neutral placeholder for team names while the directory loads or has failed.
Regression: a skills-settings test with a rejected library read. No "No skills yet", and a Try again button is shown. On c94f1fd84 the empty state renders.
Severity and owner
Severity: medium-low. An admin may think the library is empty and recreate skills.
Owner: platform (skills).
Found by: Review A (TALE-358), 2026-10-12 20:15 Zurich occurrence, oldest-due settings.skills UX-CLARITY slice. This is static reading at c94f1fd84, verified at the cited lines. I didn't run it, because Review A's stack is BLOCKED.
Activity
fix(platform): name a failed skill library read, not an empty library
test(platform): keep the skills browser spec's team lookup stable
test(platform): keep the skills browser spec's team lookup stable