fix(extension): clear stale target after room exit

This commit is contained in:
Timo
2026-08-31 23:43:41 +02:00
parent 1bd9da6bc5
commit 0dd6f5bba5
6 changed files with 198 additions and 56 deletions
+2 -1
View File
@@ -81,7 +81,8 @@ describe('async room-session guards', () => {
for (const [start, end] of [
["message.type === 'CONNECT'", "message.type === 'RETRY_CONNECT'"],
["message.type === 'RETRY_CONNECT'", "message.type === 'GET_STATUS'"],
["message.type === 'WEB_JOIN_REQUEST'", "message.type === 'REGENERATE_ID'"]
["message.type === 'WEB_JOIN_REQUEST'", "message.type === 'REGENERATE_ID'"],
["message.type === 'SET_TARGET_TAB'", "message.type === 'LOG'"]
]) {
expect(sourceBetween(start, end)).toContain('await waitForRoomTeardown()');
}