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(ai): wire patrol circuit breaker on first-time configure

rcourtman8a43a964b643
diff --git a/internal/api/router.go b/internal/api/router.go
index 62e6abaa6f..1904d3fc5c 100644
--- a/internal/api/router.go
+++ b/internal/api/router.go
@@ -3467,6 +3467,12 @@ func (r *Router) RestartAIChat(ctx context.Context) {
r.wireChatServiceToAI()
if r.aiSettingsHandler != nil {
r.aiSettingsHandler.WireOrchestratorAfterChatStart()
+ if patrolSvc := r.aiSettingsHandler.GetAIService(ctx).GetPatrolService(); patrolSvc != nil {
+ if breaker := r.aiSettingsHandler.GetCircuitBreaker(); breaker != nil {
+ patrolSvc.SetCircuitBreaker(breaker)
+ log.Info().Msg("AI patrol circuit breaker wired")
+ }
+ }
}
}
}