ui: agent badge shows AGENT or AGENTS (n)

- Single agent: "AGENT"
- Multiple: "AGENTS (2)", "AGENTS (3)", etc.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
arkon
2026-01-26 20:43:39 +01:00
co-authored by Claude Opus 4.5
parent e763599bab
commit 035d752cfa
4 changed files with 6 additions and 11 deletions
+3 -1
View File
@@ -1975,12 +1975,14 @@ class ClaudemanApp {
}
// Compact badge - shows on hover, click to pin open
const count = minimizedAgents.size;
const label = count === 1 ? 'AGENT' : `AGENTS (${count})`;
return `
<span class="tab-subagent-badge"
onmouseenter="app.showSubagentDropdown(this)"
onmouseleave="app.scheduleHideSubagentDropdown(this)"
onclick="event.stopPropagation(); app.pinSubagentDropdown(this);">
<span class="subagent-label">Agent</span><span class="subagent-count">${minimizedAgents.size}</span>
<span class="subagent-label">${label}</span>
<div class="subagent-dropdown" onmouseenter="app.cancelHideSubagentDropdown()" onmouseleave="app.scheduleHideSubagentDropdown(this.parentElement)">
${agentItems.join('')}
</div>
+1 -8
View File
@@ -2977,15 +2977,8 @@ kbd {
.session-tab .tab-subagent-badge .subagent-label {
font-size: 0.55rem;
opacity: 0.85;
text-transform: uppercase;
letter-spacing: 0.02em;
}
.session-tab .tab-subagent-badge .subagent-count {
font-size: 0.65rem;
font-weight: 600;
line-height: 1;
letter-spacing: 0.03em;
}
/* Subagent Dropdown - compact, hover-triggered */