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.

Improve patrol autonomy error messages for clarity

rcourtman3c3b04136885
diff --git a/internal/api/ai_handlers.go b/internal/api/ai_handlers.go
index 05bcbe1794..b2fa0d4a06 100644
--- a/internal/api/ai_handlers.go
+++ b/internal/api/ai_handlers.go
@@ -5313,7 +5313,7 @@ func (h *AISettingsHandler) HandleUpdatePatrolAutonomy(w http.ResponseWriter, r
hasAutoFix := h.GetAIService(r.Context()).HasLicenseFeature(license.FeatureAIAutoFix)
if !hasAutoFix && (req.AutonomyLevel == config.PatrolAutonomyAssisted || req.AutonomyLevel == config.PatrolAutonomyFull) {
writeErrorResponse(w, http.StatusPaymentRequired, "license_required",
- "Assisted and Full autonomy require Pulse Pro. Free tier supports Monitor and Approval modes.",
+ "Auto-fix requires Pulse Pro. Free tier supports Monitor and Investigate modes.",
map[string]string{
"feature": license.FeatureAIAutoFix,
"upgrade_url": "https://pulserelay.pro/",
@@ -5363,7 +5363,7 @@ func (h *AISettingsHandler) HandleUpdatePatrolAutonomy(w http.ResponseWriter, r
// Validate the FINAL level: can't use "full" mode unless unlocked
if finalAutonomyLevel == config.PatrolAutonomyFull && !effectiveUnlocked {
writeErrorResponse(w, http.StatusForbidden, "full_mode_locked",
- "Full mode requires acknowledgment. Enable 'full_mode_unlocked' first.", nil)
+ "Auto-fixing critical issues requires acknowledgment. Enable 'Auto-fix critical issues' in settings first.", nil)
return
}