fixed double message the second, fixed no own message from diagnotic to aria

This commit is contained in:
2026-03-29 14:24:13 +02:00
parent 6c7b631cb7
commit b7cecb2a8b
3 changed files with 30 additions and 5 deletions
+9
View File
@@ -412,6 +412,15 @@ function sendToGateway(text, isPipeline) {
gatewayWs.send(payload);
log("info", "gateway", `chat.send [${reqId}]: "${text}"`);
if (isPipeline) plog(`chat.send [${reqId}] an Gateway gesendet — warte auf ACK...`);
// Nachricht auch an RVS senden damit die App sie sieht
if (rvsWs && rvsWs.readyState === WebSocket.OPEN) {
rvsWs.send(JSON.stringify({
type: "chat",
payload: { text, sender: "diagnostic" },
timestamp: Date.now(),
}));
}
return true;
}