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:
@@ -234,7 +234,12 @@ func runMayorStatusLine(t *tmux.Tmux) error {
|
|||||||
for _, rigName := range rigNames {
|
for _, rigName := range rigNames {
|
||||||
status := rigStatuses[rigName]
|
status := rigStatuses[rigName]
|
||||||
var led string
|
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
|
led = "🟢" // Both running - fully active
|
||||||
} else if status.hasWitness || status.hasRefinery {
|
} else if status.hasWitness || status.hasRefinery {
|
||||||
led = "🟡" // One running - partially active
|
led = "🟡" // One running - partially active
|
||||||
|
|||||||
Reference in New Issue
Block a user