fix(statusline): Count rigs from all agent types, not just polecats
- Rig count now includes rigs with any active sessions (witness, refinery, crew) - Previously only counted rigs that had active polecat sessions - Updated tests to use categorizeSession instead of removed helper functions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -93,7 +93,9 @@ func runMayorStatusLine(t *tmux.Tmux) error {
|
||||
return nil // Silent fail
|
||||
}
|
||||
|
||||
// Count only actual polecats (not witnesses, refineries, deacon, crew)
|
||||
// Count polecats and rigs
|
||||
// Polecats: only actual polecats (not witnesses, refineries, deacon, crew)
|
||||
// Rigs: any rig with active sessions (witness, refinery, crew, or polecat)
|
||||
polecatCount := 0
|
||||
rigs := make(map[string]bool)
|
||||
for _, s := range sessions {
|
||||
@@ -101,9 +103,13 @@ func runMayorStatusLine(t *tmux.Tmux) error {
|
||||
if agent == nil {
|
||||
continue
|
||||
}
|
||||
// Count rigs from any rig-level agent (has non-empty Rig field)
|
||||
if agent.Rig != "" {
|
||||
rigs[agent.Rig] = true
|
||||
}
|
||||
// Count only polecats for polecat count
|
||||
if agent.Type == AgentPolecat {
|
||||
polecatCount++
|
||||
rigs[agent.Rig] = true
|
||||
}
|
||||
}
|
||||
rigCount := len(rigs)
|
||||
|
||||
Reference in New Issue
Block a user