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.

Use ordinary provider prose for the Assistant visibility control

pulse-triage[bot]3927ec8d4e5f
diff --git a/internal/api/assistant_stream_lifetime_test.go b/internal/api/assistant_stream_lifetime_test.go
index bdba4c5987..cf4ce23998 100644
--- a/internal/api/assistant_stream_lifetime_test.go
+++ b/internal/api/assistant_stream_lifetime_test.go
@@ -19,7 +19,9 @@ import (
"github.com/rcourtman/pulse-go-rewrite/pkg/extensions"
)
-const assistantPrivateResult = "synthetic-private-assistant-result"
+// Use ordinary prose: chat intentionally withholds long unspaced provider
+// fragments as possible compacted tool-call preludes. Do not weaken that guard.
+const assistantPrivateResult = "The synthetic private assistant result is ready."
const assistantControlToken = "assistant-control-token.12345678"
// Only text from a local fake Ollama, never model tools, agents or commands.
@@ -82,7 +84,7 @@ func newAssistantStreamFixture(t *testing.T, kind string, scopes []string, write
}
var gate *assistantProviderGate
for _, message := range request.Messages {
- if message.Role != "user" {
+ if message.Role != "user" || strings.HasPrefix(message.Content, "Title this Pulse Assistant session.") {
continue
}
if strings.Contains(message.Content, "stream-fixture-primary") {