From e662cce91a7345342222f3c5a45ab1e2903ee9d3 Mon Sep 17 00:00:00 2001 From: matevip Date: Sat, 11 Apr 2026 17:09:25 +0800 Subject: [PATCH] fix(chat): improve thinking segment display and message bubble rendering --- mateclaw-ui/src/components/chat/MessageBubble.vue | 2 +- mateclaw-ui/src/components/chat/ThinkingSegment.vue | 7 +++++-- mateclaw-ui/src/i18n/locales/en-US.ts | 2 ++ mateclaw-ui/src/i18n/locales/zh-CN.ts | 2 ++ 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/mateclaw-ui/src/components/chat/MessageBubble.vue b/mateclaw-ui/src/components/chat/MessageBubble.vue index f203fff0..258d1c8b 100644 --- a/mateclaw-ui/src/components/chat/MessageBubble.vue +++ b/mateclaw-ui/src/components/chat/MessageBubble.vue @@ -132,7 +132,7 @@
- {{ status === 'interrupted' ? ($t('chat.interrupted') || '已中断') : $t('chat.stopped') }} + {{ status === 'interrupted' ? $t('chat.interrupted') : $t('chat.stopped') }}
diff --git a/mateclaw-ui/src/components/chat/ThinkingSegment.vue b/mateclaw-ui/src/components/chat/ThinkingSegment.vue index a76c0d67..dd3e0c87 100644 --- a/mateclaw-ui/src/components/chat/ThinkingSegment.vue +++ b/mateclaw-ui/src/components/chat/ThinkingSegment.vue @@ -1,9 +1,12 @@ @@ -32,7 +35,7 @@ const lengthHint = computed(() => { - {{ isRunning ? '思考中...' : '深度思考' }} + {{ isRunning ? t('chat.thinkingInProgress') : t('chat.thinking') }} {{ lengthHint }} diff --git a/mateclaw-ui/src/i18n/locales/en-US.ts b/mateclaw-ui/src/i18n/locales/en-US.ts index 877779c6..a978f1b9 100644 --- a/mateclaw-ui/src/i18n/locales/en-US.ts +++ b/mateclaw-ui/src/i18n/locales/en-US.ts @@ -40,7 +40,9 @@ export default { error: 'Disconnected', }, thinking: 'Thinking', + thinkingInProgress: 'Thinking...', stopped: 'Generation stopped', + interrupted: 'Interrupted', failed: 'Generation failed', retry: 'Retry', errorCode: 'Error code', diff --git a/mateclaw-ui/src/i18n/locales/zh-CN.ts b/mateclaw-ui/src/i18n/locales/zh-CN.ts index d49af249..daa6a1e4 100644 --- a/mateclaw-ui/src/i18n/locales/zh-CN.ts +++ b/mateclaw-ui/src/i18n/locales/zh-CN.ts @@ -40,7 +40,9 @@ export default { error: '连接断开', }, thinking: '深度思考', + thinkingInProgress: '思考中...', stopped: '已停止生成', + interrupted: '已中断', failed: '生成失败', retry: '重试', errorCode: '错误码',