From 86ebb44be484a3473a6522034bd6484db5141e31 Mon Sep 17 00:00:00 2001 From: Bifang <915779419@qq.com> Date: Sat, 10 Oct 2026 11:24:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=B5=8B=E8=AF=95=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E5=AE=9E=E6=97=B6=E6=B0=94=E6=B3=A1=EF=BC=9A?= =?UTF-8?q?=E5=90=8C=E4=B8=80=E6=AE=B5=20partial=20=E5=8F=AA=E5=9C=A8?= =?UTF-8?q?=E8=AF=86=E5=88=AB=E6=96=87=E6=9C=AC=E5=A2=9E=E9=95=BF=E6=97=B6?= =?UTF-8?q?=E5=90=91=E5=90=8E=E5=BB=B6=E4=BC=B8=EF=BC=8C=E9=81=87=E5=88=B0?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E5=9B=9E=E9=80=80=E6=88=96=E9=87=8D=E5=86=99?= =?UTF-8?q?=E6=97=B6=E4=BF=9D=E7=95=99=E5=BD=93=E5=89=8D=E5=86=85=E5=AE=B9?= =?UTF-8?q?=EF=BC=9B=E5=AF=B9=E5=BA=94=E5=AE=9A=E7=A8=BF=E5=88=B0=E8=BE=BE?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E5=86=8D=E7=94=A8=E5=AE=9A=E7=A8=BF=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E6=9B=BF=E6=8D=A2=E4=B8=B4=E6=97=B6=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_web/index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test_web/index.html b/test_web/index.html index e8db14e..0d57715 100644 --- a/test_web/index.html +++ b/test_web/index.html @@ -4283,7 +4283,12 @@ ${transcript} if (existingPartialIndex >= 0) { const existingPartial = state.liveTranscript[existingPartialIndex]; existingPartial.label = label; - existingPartial.text = safeText; + // The server sends a full, revisable partial snapshot. Only expose its + // newly appended suffix while streaming; keep the visible draft intact + // on rollback/revision, then let the final sentence replace it below. + if (safeText.startsWith(existingPartial.text)) { + existingPartial.text = safeText; + } existingPartial.speaker = speaker; existingPartial.speakerPending = speakerPending; existingPartial.segmentIndex = segmentIndex;