fix(session-sharing): show participant presence in member terminals (#1504)

This commit is contained in:
ZacharyZcR authored and GitHub committed 2026-09-30 09:46:40 -05:00
1 parent 0f6e48a95c
commit 4ed9b69aab
6 files changed
+114 -5

No files matched your search

@@ -417,6 +417,14 @@ describe("TerminalSessionManager - multiplayer participants", () => {
expect(session?.detachTimeout).toBeNull();
expect(session?.participants.size).toBe(1);
expect(sessionManager.getParticipantForWs(session!, guestWs)).toBeNull();
expect(
JSON.parse(
(ownerWs.send as ReturnType<typeof vi.fn>).mock.lastCall![0] as string,
),
).toMatchObject({
type: "participants",
participants: [{ isOwner: true }],
});
sessionManager.destroySession(id);
});