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(patrol): use title as fallback for finding key in LLM findings

rcourtman002cf36ee02e
diff --git a/internal/ai/patrol.go b/internal/ai/patrol.go
index 6e425de5b2..99f7a0fd52 100644
--- a/internal/ai/patrol.go
+++ b/internal/ai/patrol.go
@@ -3161,7 +3161,11 @@ func (p *PatrolService) parseFindingBlock(block string) *Finding {
// (e.g. high-cpu vs high-memory) while maintaining stability checks
normalizedKey := normalizeFindingKey(key)
if normalizedKey == "" {
- normalizedKey = "llm-finding"
+ // Fallback to title-based key if LLM didn't provide one
+ normalizedKey = normalizeFindingKey(title)
+ if normalizedKey == "" {
+ normalizedKey = "llm-finding"
+ }
}
id := generateFindingID(resource, string(cat), normalizedKey)