Skip to content

Commit 3733b43

Browse files
authored
fix: stop chat response first when close tab (#1292)
1 parent 7de86f0 commit 3733b43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

chat-client/src/client/mynahUi.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ export const createMynahUi = (
269269
messager.onTabAdd(tabId)
270270
},
271271
onTabRemove: (tabId: string) => {
272+
messager.onStopChatResponse(tabId)
272273
messager.onTabRemove(tabId)
273274
},
274275
onTabChange: (tabId: string) => {

0 commit comments

Comments
 (0)