Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(transcript): tolerate runtimes without liveSessionTranscripts in the settled-read guard

liuzixiang99b5b2fe0d2e
diff --git a/apps/desktop/src/stores/slices/transcript-slice.ts b/apps/desktop/src/stores/slices/transcript-slice.ts
index a4220130b..3caaaf5f7 100644
--- a/apps/desktop/src/stores/slices/transcript-slice.ts
+++ b/apps/desktop/src/stores/slices/transcript-slice.ts
@@ -504,7 +504,7 @@ export function createTranscriptSlice({
const stateAfterRead = get();
const turnOwnsTranscript =
stateAfterRead.runningSessions[sessionId] === true ||
- runtime.liveSessionTranscripts.has(sessionId) ||
+ runtime.liveSessionTranscripts?.has(sessionId) === true ||
(stateAfterRead.activeSessionId === sessionId &&
stateAfterRead.isRunning === true);
if (turnOwnsTranscript) return;