fix(statusline): count only polecats in mayor status bar
The mayor tmux status line was counting all gt-* sessions as polecats, including witnesses, refineries, deacon, and crew workers. Now uses categorizeSession() to properly identify only actual polecats. Also removes dead code handling gt-witness-<rig> pattern (only gt-<rig>-witness is valid). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -99,13 +99,6 @@ func categorizeSession(name string) *AgentSession {
|
||||
return session
|
||||
}
|
||||
|
||||
// Witness uses gt-witness-<rig> naming
|
||||
if strings.HasPrefix(suffix, "witness-") {
|
||||
session.Type = AgentWitness
|
||||
session.Rig = strings.TrimPrefix(suffix, "witness-")
|
||||
return session
|
||||
}
|
||||
|
||||
// Rig-level agents: gt-<rig>-<type> or gt-<rig>-crew-<name>
|
||||
parts := strings.SplitN(suffix, "-", 2)
|
||||
if len(parts) < 2 {
|
||||
@@ -125,7 +118,6 @@ func categorizeSession(name string) *AgentSession {
|
||||
// Check for other agent types
|
||||
switch remainder {
|
||||
case "witness":
|
||||
// Alternate naming gt-<rig>-witness (for compatibility)
|
||||
session.Type = AgentWitness
|
||||
return session
|
||||
case "refinery":
|
||||
|
||||
Reference in New Issue
Block a user