From f102228a79735ba7589ea24618b12a1e2235330a Mon Sep 17 00:00:00 2001 From: Rick Cheng Date: Wed, 24 Jun 2026 08:30:57 -0700 Subject: [PATCH] fix(core): keep latest streamInfo so lk.transcription_final updates for user STT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit setupTextStream dedupes transcription updates by lk.segment_id but only updated `text`, freezing `streamInfo` at the first interim stream seen for a segment. As a result mutable attributes — notably lk.transcription_final flipping "false" -> "true" on the final user STT result — were never surfaced through useTranscriptions. Carry the latest reader.info forward on update. Co-Authored-By: Claude Opus 4.8 (1M context) --- packages/core/src/components/textStream.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/core/src/components/textStream.ts b/packages/core/src/components/textStream.ts index ea3a0db03..736e6bdcf 100644 --- a/packages/core/src/components/textStream.ts +++ b/packages/core/src/components/textStream.ts @@ -87,6 +87,12 @@ export function setupTextStream(room: Room, topic: string): Observable "true" on the final user STT result. + streamInfo: reader.info, }; // Emit the updated array