fix: add node button visibility, fix node-guardian swapper health check, fix banner URL transform

This commit is contained in:
Apple
2025-12-01 07:08:36 -08:00
parent 8e14750f8b
commit 9e7b1f25ef
3 changed files with 32 additions and 12 deletions

View File

@@ -205,7 +205,9 @@ class NodeGuardian:
r = await self.client.get(f"{swapper_url}/health", timeout=3.0)
if r.status_code == 200:
health_data = r.json()
metrics["swapper_healthy"] = health_data.get("status") == "healthy"
# Swapper can return "status": "healthy" or "ok"
status = health_data.get("status", "").lower()
metrics["swapper_healthy"] = status in ("healthy", "ok")
else:
metrics["swapper_healthy"] = False
except Exception: