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;