feat(statusline): show parked/docked rigs with pause emoji

Rigs in PARKED or DOCKED state now show ⏸️ instead of 🔴,
distinguishing intentionally offline rigs from failed ones.
This commit is contained in:
max
2026-01-06 23:37:38 -08:00
committed by Steve Yegge
parent d6add3f9b4
commit 5f206fb658

View File

@@ -234,7 +234,12 @@ func runMayorStatusLine(t *tmux.Tmux) error {
for _, rigName := range rigNames {
status := rigStatuses[rigName]
var led string
if status.hasWitness && status.hasRefinery {
// Check if rig is parked or docked
opState, _ := getRigOperationalState(townRoot, rigName)
if opState == "PARKED" || opState == "DOCKED" {
led = "⏸️" // Parked/docked - intentionally offline
} else if status.hasWitness && status.hasRefinery {
led = "🟢" // Both running - fully active
} else if status.hasWitness || status.hasRefinery {
led = "🟡" // One running - partially active