Skip to content

Open browser from a right-panel new tab leaves the empty new-tab page open #4411

Closed

Description

@brsbl

Summary

In the right panel, open a new tab (the empty new-tab page), then click Open browser. The browser opens in an additional tab, and the empty new-tab page stays open next to it. Expected: the browser takes over the new-tab page, the same way Start terminal already does.

Versions and environment

  • bb desktop app (the in-app Browser action only shows when the desktop browser is available)
  • Tested against main at 5d820f0f7ae7bdc0acf5348305b6d604c59e651c
  • macOS

Steps to reproduce

  1. Open any thread in the desktop app.
  2. In the right panel, click + (or press the new-tab shortcut) to open an empty new-tab page.
  3. Under Actions, click Open browser.

Expected vs actual

  • Expected: The new-tab page is replaced by the Browser tab, leaving one tab.
  • Actual: A Browser tab opens in addition to the new-tab page, and the empty new-tab page stays in the tab strip until it's closed by hand.

Evidence (observed in code)

What I ruled out

  • Not a duplicate: searched open and closed issues for browser/new-tab/right-panel. In-app browser: list live local servers on the empty new-tab page #3192 (list local servers on the empty new-tab page) is a different request.
  • Unverified live: this report comes from the user's description and the code path above. I didn't reproduce it in a running desktop dev app.

Suggested priority and effort

Low priority, small effort. It affects everyone who opens the browser from a new tab, and the workaround is to close the leftover tab by hand. No data is lost. The fix is probably to close or replace the originating new tab in each onOpenBrowser handler, like the terminal path does.

BB-Thread-ID: thr_mcgxqhbcyg

AGENT GENERATED

Activity

  1. added
    desktop
    ui
    on Sep 26, 2026
  2. added theissue type on Sep 30, 2026
  3. added
    no-repro
    on Sep 30, 2026
  4. SawyerHood commented on Sep 30, 2026

    @SawyerHood
    Collaborator

    Verified report: https://get-bb.github.io/reports/issues/4411.html

    NOT REPRODUCED in two clean current-main panel-action fixtures: Open browser replaces an explicit New tab and preserves existing Browser tabs. Both runs passed 21 component tests and browser state checks; six genuine screenshots included. Native desktop, full thread-view and server-synchronization conditions remain unverified; this does not establish that the issue is fixed.

  5. brsbl commented on Oct 1, 2026

    @brsbl
    CollaboratorAuthor

    Confirmed in the native desktop path; the fix is implemented in #4593, which is still open and awaiting user QA.

    Reproduction

    Against 1e2cee69ade40d437e169f712bd6599dfa1d58db, use an isolated macOS desktop development app with a connected local daemon and a thread whose environment is ready:

    1. Open an explicit New tab in the thread's right panel.
    2. Click Open browser.
    3. Observe the tab strip after the saved tab list reconciles with the server. When native registration wins the race described below, Browser opens but New tab remains.
    4. Also exercise this with an existing Browser tab: that tab should remain, and only the originating New tab should be consumed.

    This is a timing-dependent persistence race. The earlier “NOT REPRODUCED” report exercised component/panel fixtures without the full native registration and server-synchronization path, so it did not cover the failing condition.

    Cause and fix

    The desktop app registers each newly created Browser in the server's thread-tab list, including the identity of the native desktop instance that owns it. That registration can advance the tab-list revision before the renderer saves its replacement of New tab. The renderer then receives 409 thread_tabs_conflict; the old implementation dropped that replacement and reloaded the server list, which still contained New tab.

    #4593 refreshes the server list after a conflict, reapplies the original local change, and retries with the new revision (at most three save attempts). It preserves the registered Browser's native metadata and existing Browser tabs, while placing the new Browser where New tab was.

    A separate case is also fixed in the same PR: New tab → an already-open plugin action, such as Workflow run, previously only focused the existing panel. It now consumes New tab while retaining the existing panel ID.

    Verification at b5604001a05c0de72b4a6ad4406029d86474e631

    • Native Electron 44.3.0: 3/3 clean Browser attempts and 3/3 attempts with existing Browsers passed. New tab disappeared from both the UI and saved server state; existing Browser IDs and native metadata survived.
    • Saved state remained stable at three and six seconds. A native hard reload restored all four Browser tabs and zero New tabs.
    • Chrome for Testing 151.0.7922.71: reopening Workflow run retained its panel ID, selected it, and removed New tab.
    • Regression tests failed before the fixes (Browser, plugin); all applicable CI checks passed on the fix.
    • Matching before/after screenshots are included in PR #4593.

    The fix has not merged or shipped yet.

  6. added a commit that references this issue on Oct 14, 2026
    ee17a2c
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

    desktopno-reproui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions