From fcc4cd6a9f29a94818e481b3a604f44ce51c55e2 Mon Sep 17 00:00:00 2001 From: lyingbug <[email> Date: Tue, 4 Aug 2026 04:35:23 +0000 Subject: [PATCH] fix(frontend): announce RAG wait status from a persistent live region role="status" lived on the wait row itself, so the live region was inserted together with its own text and screen readers had nothing to announce. Move the announcement to an sr-only region that stays mounted for the whole turn, which also covers the pre-pipeline wait row that had no announcement at all. Co-authored-by: lyingbug --- .../RagPipelineProgress.style.test.mjs | 8 +++++++ .../chat/components/RagPipelineProgress.vue | 22 +++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/frontend/src/views/chat/components/RagPipelineProgress.style.test.mjs b/frontend/src/views/chat/components/RagPipelineProgress.style.test.mjs index de591cb7..b29b837e 100644 --- a/frontend/src/views/chat/components/RagPipelineProgress.style.test.mjs +++ b/frontend/src/views/chat/components/RagPipelineProgress.style.test.mjs @@ -69,6 +69,14 @@ test('rag pipeline shows a pending model-answer step after retrieval completes', assert.match(source, /waitController\.dispose\(\)/) }) +test('rag pipeline announces wait status from a region that outlives each row', () => { + const template = source.split(' { assert.match(source, /const showDoneRow = computed\(\(\) => \{[\s\S]*hasAnswer\.value/) }) diff --git a/frontend/src/views/chat/components/RagPipelineProgress.vue b/frontend/src/views/chat/components/RagPipelineProgress.vue index 0773e252..7e75ef52 100644 --- a/frontend/src/views/chat/components/RagPipelineProgress.vue +++ b/frontend/src/views/chat/components/RagPipelineProgress.vue @@ -1,5 +1,9 @@