fixed double diagnostic message

This commit is contained in:
duffyduck 2026-03-29 16:12:24 +02:00
parent 11de9a01b9
commit b86c4a0d1a
1 changed files with 2 additions and 0 deletions

View File

@ -562,6 +562,8 @@ function sendToRVS(text, isPipeline) {
const resp = JSON.parse(raw.toString());
if (resp.type === "chat" && resp.payload) {
const sender = resp.payload.sender || "?";
// Eigene Nachrichten nicht nochmal anzeigen (Echo von RVS)
if (sender === "diagnostic") return;
log("info", "rvs", `Chat von ${sender}: "${(resp.payload.text || "").slice(0, 100)}"`);
if (pipelineActive && sender !== "diagnostic") {
pipelineEnd(true, `Antwort via RVS von ${sender}: "${(resp.payload.text || "").slice(0, 120)}"`);