experiments in a post-browser web
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(window-open): skip URL-reuse when caller provides explicit key

+5 -1
+5 -1
backend/electron/ipc.ts
··· 635 635 // This catches duplicate windows even when no key was provided. 636 636 // Skip this check for reopen-last-closed (trackingSource: 'reopen') — the user 637 637 // explicitly wants a new window for the URL they previously closed. 638 - if ((url.startsWith('http://') || url.startsWith('https://')) && options.trackingSource !== 'reopen') { 638 + // Skip when the caller passed an explicit `key` — a key signals "I manage 639 + // window identity by key, not by URL." Otherwise a slide (key=address:edge) 640 + // whose window was just transient-closed will fall through here and get 641 + // attached to whatever unrelated http window happens to share its URL. 642 + if ((url.startsWith('http://') || url.startsWith('https://')) && options.trackingSource !== 'reopen' && !options.key) { 639 643 const existingByUrl = findWindowByUrl(url); 640 644 if (existingByUrl) { 641 645 DEBUG && console.log('Reusing existing window with same URL:', url);