fix(diagnostic): ARIA-Textantworten landen jetzt im Chat (Gateway-Dedup raus)

Symptom: Diagnostic-Chat zeigt nur ARIA-Dateien (file_from_aria), Text-
Antworten kamen nicht an. STT-Eintraege + User-Messages waren sichtbar.

Ursache: Im rvs_chat-Handler stand
  if (sender === 'aria') return;
Die alte Begruendung war "ARIA-Antworten kommen schon via Gateway (chat:final)".
Das galt zu OpenClaw-Zeit, wo Diagnostic eine direkte WS zum aria-core hatte.
Gateway ist seit dem Abriss weg, ARIA-Antworten kommen jetzt ausschliesslich
via RVS → der return blockte sie still.

Fix: chatType + label je nach sender:
  - aria  → received-Bubble, Label "ARIA"
  - stt   → sent-Bubble, Label "🎤 Spracheingabe" (wie vorher)
  - sonst → sent-Bubble, Label "via RVS (<sender>)"

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-12 00:21:10 +02:00
parent eb4059a887
commit 87cb687610
+14 -4
View File
@@ -1282,10 +1282,20 @@
if (msg.type === 'rvs_chat') {
const p = msg.msg.payload || {};
const sender = p.sender || '?';
// ARIA-Antworten kommen schon via Gateway (chat:final) — nicht nochmal via RVS anzeigen
if (sender === 'aria') return;
const chatType = 'sent';
const label = sender === 'stt' ? '\uD83C\uDFA4 Spracheingabe' : `via RVS (${sender})`;
// Frueher: 'aria' kam parallel via OpenClaw-Gateway (chat:final) UND via RVS,
// RVS wurde dedupliziert. Gateway ist raus — ARIA-Antworten kommen jetzt
// ausschliesslich via RVS, also nicht mehr blocken.
let chatType, label;
if (sender === 'aria') {
chatType = 'received';
label = 'ARIA';
} else if (sender === 'stt') {
chatType = 'sent';
label = '\uD83C\uDFA4 Spracheingabe';
} else {
chatType = 'sent';
label = `via RVS (${sender})`;
}
addChat(chatType, p.text || '?', label, { location: p.location });
return;
}