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.

Make the discovery abstention message name the real cause, not a wrong fix

rcourtman2b521431be80
diff --git a/internal/servicediscovery/service.go b/internal/servicediscovery/service.go
index 3ef730f9aa..19cac2c2b0 100644
--- a/internal/servicediscovery/service.go
+++ b/internal/servicediscovery/service.go
@@ -2778,9 +2778,15 @@ func resourceIdentityNeedsCommandEvidence(rt ResourceType) bool {
// instead of a fabricated guess. CLIAccess is left empty so the platform-correct
// access command is generated downstream rather than invented by the model.
func metadataOnlyDiscoveryAbstention() *AIAnalysisResponse {
+ // This abstention is only reached when command scanning is already enabled
+ // (see commandScanAttempted in DiscoverResource) but the host agent returned
+ // no command output — so the honest cause is the agent not being reachable
+ // for execution, NOT a disabled "Pulse Commands" toggle. Do not tell the user
+ // to enable something that is already on; point them at agent connectivity and
+ // the agent:exec token scope instead.
return &AIAnalysisResponse{
Confidence: 0,
- Reasoning: "Discovery could not run commands on this resource, so its service was not identified. Enable \"Pulse Commands\" for the host agent (Settings → Infrastructure) to run real discovery instead of guessing.",
+ Reasoning: "Discovery couldn't collect command output from inside this resource, so its service wasn't identified. Pulse Commands are enabled, but the host agent returned no results — make sure the host agent is connected and its API token has the \"agent:exec\" scope.",
}
}