From 8f4626158d7304b071e2bd77715c6d1fa4d7f8c5 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Thu, 21 May 2026 10:55:13 +0800 Subject: [PATCH] fix(chat): improve history rendering stability --- frontend/src/i18n/index.ts | 4 +++ frontend/src/views/chat/index.vue | 45 ++++++++++++++++++++++++------- 2 files changed, 40 insertions(+), 9 deletions(-) diff --git a/frontend/src/i18n/index.ts b/frontend/src/i18n/index.ts index 0a874f61..b7698d86 100755 --- a/frontend/src/i18n/index.ts +++ b/frontend/src/i18n/index.ts @@ -20,6 +20,10 @@ const i18n = createI18n({ locale: savedLocale, fallbackLocale: 'zh-CN', globalInjection: true, + // Some translations intentionally embed `` markup (e.g. agent step summaries). + // We render them via v-html with our own sanitization, so silence vue-i18n's HTML warning + // to avoid flooding the console and slowing renders during history loads. + warnHtmlMessage: false, messages }) diff --git a/frontend/src/views/chat/index.vue b/frontend/src/views/chat/index.vue index c0d7b84d..41234654 100644 --- a/frontend/src/views/chat/index.vue +++ b/frontend/src/views/chat/index.vue @@ -45,7 +45,20 @@ -
+ +
+
@@ -92,7 +105,7 @@