From 720939d0ba694a9eea8f0eedb66a2bed8af92722 Mon Sep 17 00:00:00 2001 From: Jean-Marc SEVIN Date: Fri, 5 Jun 2026 12:00:36 +0200 Subject: [PATCH 1/8] Stream agent answer, with processing steps --- src/components/ChatArea.vue | 1 + src/components/ChatComponent.vue | 3 +- src/components/LoadingComponent.vue | 38 +++- src/localisation/en.ts | 6 + src/localisation/fr.ts | 6 + src/stores/chat.ts | 295 +++++++++++++++++++++++++++- src/types/index.ts | 6 + src/utils/fetch.ts | 42 ++-- tsconfig.app.json | 1 - 9 files changed, 359 insertions(+), 39 deletions(-) diff --git a/src/components/ChatArea.vue b/src/components/ChatArea.vue index 8cb5ca0..75a2ac2 100644 --- a/src/components/ChatArea.vue +++ b/src/components/ChatArea.vue @@ -11,6 +11,7 @@ defineProps({ onUpdated(() => { setState(); + scrollToBottom(); }); onMounted(() => { diff --git a/src/components/ChatComponent.vue b/src/components/ChatComponent.vue index 20ec695..061bcb2 100644 --- a/src/components/ChatComponent.vue +++ b/src/components/ChatComponent.vue @@ -31,7 +31,7 @@ const computedStatus = computed(() => store.chatStatus); />
store.chatStatus); CHAT_STATUS.FORMULATING_ANSWER ].includes(computedStatus) " + :label="store.processingStatusLabel" />