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>