You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"chat.handover response is missing the X-Trigger-Chat-Access-Token header. chat.agent's handover endpoint must echo the session PAT so the transport can hydrate."
683
+
);
684
684
}
685
+
conststate: ChatSessionState={
686
+
publicAccessToken: accessToken,
687
+
isStreaming: true,
688
+
};
689
+
this.sessions.set(chatId,state);
690
+
this.notifySessionChange(chatId,state);
685
691
686
692
// Filter the parsed UIMessage stream:
687
693
// - Drop control chunks (`trigger:turn-complete`,
@@ -953,6 +959,14 @@ export class TriggerChatTransport implements ChatTransport<UIMessage> {
953
959
this.coordinator?.removeMessagesListener(fn);
954
960
}
955
961
dispose(): void{
962
+
// Tear down any open session.out subscriptions before the coordinator
963
+
// goes away. Otherwise controllers in `activeStreams` keep reading
964
+
// until they time out, leaking network and memory on every
0 commit comments