From 390322d5a58f970b47e785a9ee142771c093c398 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 7 Dec 2025 18:43:51 +0000 Subject: [PATCH 1/2] Initial plan From 910af900ecfb066bcc70fd247947737acdf502f6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 7 Dec 2025 18:47:44 +0000 Subject: [PATCH 2/2] fix: add explicit pendingRooms.delete before cleanupRoom in reject handler Co-authored-by: zxch3n <18425020+zxch3n@users.noreply.github.com> --- packages/loro-websocket/src/client/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/loro-websocket/src/client/index.ts b/packages/loro-websocket/src/client/index.ts index 289b3cf..18d763d 100644 --- a/packages/loro-websocket/src/client/index.ts +++ b/packages/loro-websocket/src/client/index.ts @@ -613,6 +613,7 @@ export class LoroWebsocketClient { }, reject: (error: Error) => { console.error("Rejoin failed:", error); + this.pendingRooms.delete(id); this.cleanupRoom(roomId, adaptor.crdtType); this.emitRoomStatus(id, RoomJoinStatus.Error); },