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.

Normalize AI chat mention label naming

rcourtman5a032070db2c
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.md
index 5a4408b2a6..3038f3704a 100644
--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md
+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md
@@ -142,8 +142,10 @@ canonicalization helpers now, so chat prefetch and discovery responses agree
on resource-type and target-ID formatting instead of maintaining chat-local
copies.
The chat mention picker now also carries the canonical preferred resource
-label as `label` through the structured mention payload, so mention search,
-selection, and submission do not depend on a raw `displayName` field fork.
+label as `label` through the structured mention payload, and the insertion
+path uses that same label for prompt text and cursor placement, so mention
+search, selection, and submission do not depend on a raw `displayName` field
+fork.
The same governed-context rule also applies to the main unified AI resource
overview: infrastructure, workload, alert-label, and top-consumer summaries
must not leak raw resource names, cluster labels, IP addresses, or unresolved
diff --git a/frontend-modern/src/components/AI/Chat/index.tsx b/frontend-modern/src/components/AI/Chat/index.tsx
index c5e43c8356..3e3668b18b 100644
--- a/frontend-modern/src/components/AI/Chat/index.tsx
+++ b/frontend-modern/src/components/AI/Chat/index.tsx
@@ -474,7 +474,7 @@ export const AIChat: Component<AIChatProps> = (props) => {
for (const runtime of dockerHosts) {
const dockerActionId = getDockerActionId(runtime);
- const displayName = getPreferredResourceDisplayName(runtime);
+ const label = getPreferredResourceDisplayName(runtime);
const hostnameOrId = getPreferredResourceHostname(runtime) || runtime.id;
const runtimeStatus =
runtime.status === 'online' || runtime.status === 'running'
@@ -482,7 +482,7 @@ export const AIChat: Component<AIChatProps> = (props) => {
: runtime.status || 'online';
mentionCandidates.push({
id: `agent:${dockerActionId}`,
- label: displayName,
+ label,
type: 'agent',
status: runtimeStatus,
});
@@ -515,14 +515,14 @@ export const AIChat: Component<AIChatProps> = (props) => {
// Add standalone agents
for (const agentResource of agentResources) {
const agentActionId = getAgentActionId(agentResource);
- const name = getPreferredResourceDisplayName(agentResource);
+ const label = getPreferredResourceDisplayName(agentResource);
const agentStatus =
agentResource.status === 'online' || agentResource.status === 'running'
? 'online'
: agentResource.status;
mentionCandidates.push({
id: `agent:${agentActionId}`,
- label: name,
+ label,
type: 'agent',
status: agentStatus,
});