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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
test(ai): keep recovery storage visible through prompt filtering
rcourtman90bef80aa516
diff --git a/internal/ai/chat/service_tooling_test.go b/internal/ai/chat/service_tooling_test.goindex f971717ffc..4c385347f2 100644--- a/internal/ai/chat/service_tooling_test.go+++ b/internal/ai/chat/service_tooling_test.go@@ -147,6 +147,26 @@ func TestFilterToolsForPrompt_BroadInfraKeepsStorage(t *testing.T) {}}+func TestFilterToolsForPrompt_RecoveryOnlyKeepsStorage(t *testing.T) {+ exec := tools.NewPulseToolExecutor(tools.ExecutorConfig{+ RecoveryPointsProvider: &fakeRecoveryPointsProvider{points: []recovery.RecoveryPoint{{+ ID: "pve-snapshot:before-upgrade",+ Provider: recovery.ProviderProxmoxPVE,+ Kind: recovery.KindSnapshot,+ Mode: recovery.ModeLocal,+ Outcome: recovery.OutcomeSuccess,+ }}},+ ControlLevel: tools.ControlLevelControlled,+ })++ svc := &Service{executor: exec}+ toolsList := svc.filterToolsForPrompt(context.Background(), "list recovery snapshots for guest 100", false, false)+ set := toolNameSet(toolsList)+ if !set["pulse_storage"] {+ t.Fatalf("expected storage tool to be kept when recovery points are the only storage source")+ }+}+func TestFilterToolsForPrompt_AutonomousNonPatrol(t *testing.T) {exec := tools.NewPulseToolExecutor(tools.ExecutorConfig{StateProvider: fakeStateProvider{},