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:
1 parent
dca49c258a
commit
0f3b47bc3a
9 files changed
+193
-43
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user