fix(webui): isolate transcript replay from live observers (#6306)

* fix(webui): isolate transcript replay from live observers

* docs(webui): shorten chat subscription ownership notes
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-19 17:13:12 +08:00
1 parent dca49c258a
commit 0f3b47bc3a
9 files changed
+193 -43

No files matched your search

+3
View File
@@ -159,6 +159,9 @@ function makeClient() {
completedTurnIdsByChatId.set(chatId, fences);
},
getGoalState: (chatId: string) => goalStateByChatId.get(chatId),
onTranscript(chatId: string, handler: (ev: import("@/lib/types").InboundEvent) => void) {
return this.onChat(chatId, handler);
},
onChat: (chatId: string, handler: (ev: import("@/lib/types").InboundEvent) => void) => {
let handlers = chatHandlers.get(chatId);
if (!handlers) {