diff --git a/diagnostic/index.html b/diagnostic/index.html
index 0f900cb..e331c91 100644
--- a/diagnostic/index.html
+++ b/diagnostic/index.html
@@ -993,7 +993,12 @@
}
if (msg.type === 'chat_final') {
- addChat('received', msg.text, 'chat:final');
+ // [FILE: /shared/uploads/aria_xxx.ext]-Marker aus dem Antworttext
+ // entfernen — die Datei kommt separat via file_from_aria.
+ // (Diagnostic empfaengt chat_final direkt vom Gateway, Bridge
+ // hat darum nicht filtern koennen.)
+ const cleaned = (msg.text || '').replace(/\[FILE:\s*\/shared\/uploads\/[^\]]+\]/gi, '').replace(/\n{3,}/g, '\n\n').trim();
+ addChat('received', cleaned, 'chat:final');
return;
}
if (msg.type === 'file_from_aria') {