Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix: don't show 'All healthy' when patrol run had errors

rcourtman901f04a7b2ff
diff --git a/internal/ai/patrol.go b/internal/ai/patrol.go
index db9e0573fb..81aaa6b61b 100644
--- a/internal/ai/patrol.go
+++ b/internal/ai/patrol.go
@@ -841,6 +841,10 @@ func (p *PatrolService) runPatrol(ctx context.Context) {
}
if runStats.errors > 0 {
status = "error"
+ // Don't claim "All healthy" if there were errors - the patrol didn't complete properly
+ if findingsSummaryStr == "All healthy" {
+ findingsSummaryStr = fmt.Sprintf("Analysis incomplete (%d errors)", runStats.errors)
+ }
}
// Create run record