Repository navigation
Closed
Copy link
Description
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
mainat5d820f0f7ae7bdc0acf5348305b6d604c59e651c - macOS
Steps to reproduce
- Open any thread in the desktop app.
- In the right panel, click + (or press the new-tab shortcut) to open an empty new-tab page.
- 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)
- The thread-view new-tab handler activates the new tab and then calls
openBrowserTabAndReveal(), which opens a new Browser tab and never closes the new tab: ThreadDetailView.tsx#L2652-L2655, openBrowserTabAndReveal - For comparison, Start terminal closes the new tab after the terminal is created: handleStartTerminal → closeTab(newTab.id)
- The same pattern (activate the new tab, then open the browser without replacing it) shows up on the other new-tab surfaces too:
- root compose panel: RootComposePanelTabContent.tsx#L199-L206
- plugin-page right panel: PluginPanelRightPanelHost.tsx#L873-L880
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
SawyerHood commentedon Sep 30, 2026
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.
brsbl commentedon Oct 1, 2026
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: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
b5604001a05c0de72b4a6ad4406029d86474e631The fix has not merged or shipped yet.
Replace New tab when opening Browser or plugin actions (#4593)