Skip to content

bug(platform): agent Skills menu reads a pending or failed capability catalog as empty #4697

Closed

Description

@yannickmonney

Summary

The project agent dialog's Skills, connectors & tools menu cannot tell a capability catalog that has not answered from an empty one. While the catalog read is pending, and after it fails, the menu says the organization has no skills and marks every skill an agent already has as unavailable. Suggested severity: P2 (misleading state; an editor can untick equipment that is still valid).

State of GET …/project/<id>/capabilities What the menu shows Why
Pending (slow network, first open) No skills in this organization yet. (chat.skills.emptySkills); in Edit, each equipped skill reads "<slug>" (unavailable) (chat.skills.unavailableOption) ProjectAgentCreateDialog and ProjectAgentsTab pass catalogQuery.data?.skills (undefined until it answers); ProjectAgentDialog renders <SkillsMenu skills={skills ?? []} …>; SkillsMenu lists every selected slug missing from skills as unavailable
Failed (after the retries) The same, with no notice and no Try again the catalog query's error never reaches the dialog; ProjectAgentsTab reads only catalogQuery.data
A later refresh failed The last answer, with no sign it may be out of date same

Connectors behave the same way (chat.skills.emptyConnectors).

Expected

Distinguish loading, unavailable (with Try again, reusing readStateOf and CatalogLoadError, as the Agents list and the project Audience row do) and a genuinely empty catalog; never mark equipped skills unavailable before the catalog has answered.

Source

  • origin/main f1192e8df4a7210b88b3c41a6e957ef91fa7bb15 (2026-10-10).
  • services/platform/app/features/projects/components/project-agent-create-dialog.tsx (skills={catalogQuery.data?.skills}), project-agents-tab.tsx (const skills = catalogQuery.data?.skills), project-agent-dialog.tsx (skills={skills ?? []}), services/platform/app/components/skills/skills-menu.tsx (unavailableSkills, emptySkills).
  • Static reading only: no browser or live-backend observation was made for this report.

Dedup

Scanned all 223 open issues and PRs on 2026-10-10 (titles and bodies) for the capability catalog, the skills menu and failed-read wording. Related but distinct: #3767 (catalog freshness after an Audience change, fixed by #4407), #3658 (equipment menu tool labels), #3598 / PR #4322 (agent save preconditions; it also edits project-agent-dialog.tsx).

Found while working on TALE-95 (project Audience team reads and fresh agent skills); deliberately left out of that change's scope.

Activity

  1. added
    agent-ready
    on Oct 29, 2026
  2. added a commit that references this issue on Oct 30, 2026
    05b432f
  3. added a commit that references this issue on Oct 30, 2026
    1d8b8bb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readybugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions