From de9a2bac7ff00df681bca03bf069112eee0e2523 Mon Sep 17 00:00:00 2001 From: RainbowBird Date: Mon, 29 Jun 2026 03:38:45 +0800 Subject: [PATCH] feat(stage-tamagotchi): add assistant label to ChatHistory component --- .../src/renderer/components/InteractiveArea.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/stage-tamagotchi/src/renderer/components/InteractiveArea.vue b/apps/stage-tamagotchi/src/renderer/components/InteractiveArea.vue index 6536b9af0..4ddb9bb92 100644 --- a/apps/stage-tamagotchi/src/renderer/components/InteractiveArea.vue +++ b/apps/stage-tamagotchi/src/renderer/components/InteractiveArea.vue @@ -40,7 +40,7 @@ const airiCardStore = useAiriCardStore() const { messages } = storeToRefs(chatSession) const { streamingMessage } = storeToRefs(chatStream) const { sending } = storeToRefs(chatOrchestrator) -const { activeCardId } = storeToRefs(airiCardStore) +const { activeCard, activeCardId } = storeToRefs(airiCardStore) const { t } = useI18n() const { openImagePreview } = journalPreviewStore const isComposing = ref(false) @@ -203,6 +203,7 @@ watch(sendMode, () => { }) const historyMessages = computed(() => messages.value as unknown as ChatHistoryItem[]) +const assistantLabel = computed(() => activeCard.value?.name?.trim() || undefined) async function handleDeleteMessage(index: number) { const message = messages.value[index] @@ -267,6 +268,7 @@ async function handleCleanupMessages() {