From 37daefed255c73555b5d0fa5de222e14920bc692 Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Sat, 15 Aug 2026 23:49:13 -0700 Subject: [PATCH] FN-9118: Align skill tooltip tests with stored IDs Validate AgentDetailView skill badges against stable persisted identifiers and discovery states. - replace environment-sensitive skill path assertions with fixed stored-ID fixtures - cover discovered path, discovered slug, and undiscovered skill badge states - document that tooltips preserve persisted IDs while badge labels remain humanized Files changed: .../dashboard/app/components/AgentDetailView.tsx | 4 +++ .../__tests__/AgentDetailView.core.test.tsx | 39 ++++++++++++++++------ 2 files changed, 33 insertions(+), 10 deletions(-) Fusion-Task-Id: FN-9118 Fusion-Task-Lineage: 1cbe21ad-5a3c-4131-9352-2138d892e88d Co-authored-by: Fusion (runfusion.ai) --- .../app/components/AgentDetailView.tsx | 4 ++ .../__tests__/AgentDetailView.core.test.tsx | 39 ++++++++++++++----- 2 files changed, 33 insertions(+), 10 deletions(-) diff --git a/packages/dashboard/app/components/AgentDetailView.tsx b/packages/dashboard/app/components/AgentDetailView.tsx index a943b9e4a9..134585f265 100644 --- a/packages/dashboard/app/components/AgentDetailView.tsx +++ b/packages/dashboard/app/components/AgentDetailView.tsx @@ -1563,6 +1563,10 @@ function DashboardTab({ {agentSkills.map((skillId) => { const isSelected = selectedSkillId === skillId; const classification = classifyAgentSkill(skillId, discoveredSkillsLoading || discoveredSkillsError ? null : discoveredSkills, { forced: true }); + /* + * FNXC:AgentSkills 2026-08-16-06:34: + * Preserve the exact persisted agent.metadata.skills ID in the tooltip so operators can diagnose stale or undiscovered entries. Only the visible badge label is humanized by formatAgentSkillBadgeLabel. + */ return (