From c8dee4c416d8faa176b6b64e5ebcd04456751d1c Mon Sep 17 00:00:00 2001 From: duffyduck Date: Sun, 10 May 2026 18:26:35 +0200 Subject: [PATCH] fix(diagnostic): [FILE: ...]-Marker aus chat_final rausfiltern Co-Authored-By: Claude Opus 4.7 (1M context) --- diagnostic/index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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') {