Skip to content

The open-source app everyone uses to manage agents at work

Show skill namespace above name, exclude skill name from namespace

Dotta9a26974ba876
diff --git a/ui/src/pages/AgentDetail.tsx b/ui/src/pages/AgentDetail.tsx
index 7e8a912b50..64f4c00bb7 100644
--- a/ui/src/pages/AgentDetail.tsx
+++ b/ui/src/pages/AgentDetail.tsx
@@ -1469,8 +1469,12 @@ function AgentSkillsTab({
<div className="min-w-0 flex-1">
<div className="flex items-center justify-between gap-3">
<div className="min-w-0">
+ {skill.key.includes("/") && (
+ <div className="truncate font-mono text-[11px] leading-4 text-muted-foreground">
+ {skill.key.split("/").slice(0, -1).join("/")}
+ </div>
+ )}
<span className="truncate font-medium">{skill.name}</span>
- <div className="truncate font-mono text-[11px] text-muted-foreground">{skill.key}</div>
</div>
{skill.linkTo ? (
<Link
diff --git a/ui/src/pages/CompanySkills.tsx b/ui/src/pages/CompanySkills.tsx
index 1a0d576a15..570bfea2bf 100644
--- a/ui/src/pages/CompanySkills.tsx
+++ b/ui/src/pages/CompanySkills.tsx
@@ -432,12 +432,14 @@ function SkillList({
</TooltipTrigger>
<TooltipContent side="top">{source.managedLabel}</TooltipContent>
</Tooltip>
+ {skill.key.includes("/") && (
+ <span className="block truncate font-mono text-[11px] leading-4 text-muted-foreground">
+ {skill.key.split("/").slice(0, -1).join("/")}
+ </span>
+ )}
<span className="block min-w-0 overflow-hidden text-[13px] font-medium leading-5 [display:-webkit-box] [-webkit-box-orient:vertical] [-webkit-line-clamp:3]">
{skill.name}
</span>
- <span className="truncate font-mono text-[11px] text-muted-foreground">
- {skill.key}
- </span>
</span>
</Link>
<button