This commit is contained in:
seb
2026-10-08 12:49:31 +02:00
parent 32325eb4aa
commit 3658d76c43
5 changed files with 293 additions and 8 deletions

View File

@@ -25,8 +25,9 @@ import ManageSearchIcon from '@mui/icons-material/ManageSearch';
import LensBlurIcon from '@mui/icons-material/LensBlur';
import CalculateIcon from '@mui/icons-material/Calculate';
import QrCodeScannerIcon from '@mui/icons-material/QrCodeScanner';
import DirectionsIcon from '@mui/icons-material/Directions';
import HealingMarkdown from './HealingMarkdown';
import { VfsAttachmentLink, parseAttachmentsFromText } from './ChatAttachmentItems';
import { VfsAttachmentLink, parseAttachmentsFromText, stripUserEnv } from './ChatAttachmentItems';
import {
CHROMA,
SHADOW_BUBBLE_ASSISTANT,
@@ -86,6 +87,8 @@ const TOOL_ICON_MAP = {
edit_image: LensBlurIcon,
net_gross_calc: CalculateIcon,
ean_checksum: QrCodeScannerIcon,
'set-user-route': DirectionsIcon,
set_user_route: DirectionsIcon,
};
function formatMessageTime(isoString) {
@@ -875,7 +878,8 @@ function MessageRow({ msg, showTime = true }) {
} catch { }
}
const { attachments: vfsAttachments, cleanText } = parseAttachmentsFromText(textContent);
const { attachments: vfsAttachments, cleanText: rawCleanText } = parseAttachmentsFromText(textContent);
const cleanText = stripUserEnv(rawCleanText);
if (msg.role === 'system') {
return (