From aecc619bef5e6ebc1d34b117b6d044bfa6d5a959 Mon Sep 17 00:00:00 2001 From: matevip Date: Wed, 19 Aug 2026 22:42:12 -0400 Subject: [PATCH] fix(chat): clarify running and stopped states --- mateclaw-ui/src/components/chat/ChatInput.vue | 43 +++++- .../src/components/chat/MessageBubble.vue | 42 ++++-- .../__tests__/ChatInput.runningState.test.ts | 110 +++++++++++++++ .../MessageBubble.stopIndicator.test.ts | 132 ++++++++++++++++++ mateclaw-ui/src/i18n/locales/en-US.ts | 8 +- mateclaw-ui/src/i18n/locales/zh-CN.ts | 8 +- 6 files changed, 328 insertions(+), 15 deletions(-) create mode 100644 mateclaw-ui/src/components/chat/__tests__/ChatInput.runningState.test.ts create mode 100644 mateclaw-ui/src/components/chat/__tests__/MessageBubble.stopIndicator.test.ts diff --git a/mateclaw-ui/src/components/chat/ChatInput.vue b/mateclaw-ui/src/components/chat/ChatInput.vue index 47253025..b1221f3c 100644 --- a/mateclaw-ui/src/components/chat/ChatInput.vue +++ b/mateclaw-ui/src/components/chat/ChatInput.vue @@ -205,7 +205,7 @@ class="action-btn send-btn" :class="sendBtnClass" :disabled="props.streamPhase === 'interrupting' || (!canSend && !loading)" - :title="props.streamPhase === 'interrupting' ? t('chat.streamInterrupting') : undefined" + :title="sendButtonTitle" @click="handleSubmit" > @@ -222,7 +222,10 @@ - -
- - {{ status === 'interrupted' ? $t('chat.interrupted') : $t('chat.stopped') }} -
-
@@ -228,6 +222,18 @@ + +
+ + {{ status === 'interrupted' ? $t('chat.interrupted') : $t('chat.stopped') }} +
+