Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/desktop
Steps to reproduce
- In the macOS desktop app, open a thread in the local environment. Open seven Browser tabs and let their pages load.
- Click the × on each tab in quick succession, moving immediately to the next tab until you've closed all seven.
- Watch the tab strip as you close the tabs and for a few seconds afterward.
Expected behavior
Once I close a Browser tab, it should stay closed.
Actual behavior
After I close a Browser tab, it disappears from the tab strip and sometimes comes back shortly afterward.
The local trace captures the webview lifecycle. Electron destroyed the original webview 132 ms into preview.close and identified a replacement under the same tab ID at 423 ms. The close finished at 5 seconds.
The close action removes the tab from the strip first. The desktop keeps the webview mounted while the server waits up to 5 seconds for the page to unload. If Electron clears the guest's webContentsId during that wait, the recovery handler schedules a replacement after 250 ms. A session update before the close finishes can put the still-listed tab back in the strip. Server unload · Webview recovery
I observed this on Nightly 5372. The same close and recovery code is present in 5359. The first affected build is unknown.
Impact
Minor bug or occasional failure
Version or commit
0.1.14-nightly.20261128.5372
Environment
macOS 27.0.1, T3 Code Nightly desktop (local environment)
Logs or stack traces
Representative close from the local server and desktop renderer traces. Times are relative to the start of the close.
+0 ms preview.close starts
+132 ms Original webview destroyed
+423 ms Replacement webview identified for the same tab ID
+5000 ms preview.close completesScreenshots, recordings, or supporting files
No response
Workaround
No response
Activity