Skip to content

[Bug]: Closing a Browser tab can make it reappear #44811

Backlog

Description

@rzv-me

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

  1. In the macOS desktop app, open a thread in the local environment. Open seven Browser tabs and let their pages load.
  2. Click the × on each tab in quick succession, moving immediately to the next tab until you've closed all seven.
  3. 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 completes

Screenshots, recordings, or supporting files

No response

Workaround

No response

Activity

  1. added
    bug
    needs-triage
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions