#5739 · Sidebar modifier-click navigation
Verdict: REPRODUCED at the component boundary. Root-cause confidence: high.
1. TL;DR
Ctrl-click does not preserve the browser's native new-tab behavior on the tested sidebar destinations. The navigation rail renders buttons, and its handler turns Ctrl/Meta into an in-app split request; the host's Plugins destination instead navigates the current app route. Thread rows already have real links, but explicitly cancel modified clicks when splitting is available and open an in-app pane. These are two related mechanisms, not a single missing anchor tag. Three browser-expectation tests fail on unchanged production code in each clean checkout; existing tests explicitly protect the current split behavior.
2. Claims vs findings
| Claim | Finding | Evidence |
|---|---|---|
| Ctrl-click does not open sidebar destinations in a browser tab. | Reproduced at component boundary | Rail Ctrl-click invokes host activation with openInSplit: true. Thread Ctrl-click returns false from event dispatch and invokes split navigation. |
| Sidebar destinations are not normal links. | Partly correct | Home and rail navigation destinations are buttons. Thread rows already contain <a href={thread.href}>. |
| Every click opens in the same tab. | Needs qualification | Plugins routes within the existing app. A split-capable thread opens an in-app split, not a new browser tab. The thread interception is conditional on split availability. |
| Specific Vivaldi nightly and Windows behavior. | Not directly verified | Tests run under Linux/jsdom against trusted main. Browser Automation could not open because Chrome/Chromium was unavailable; no browser download or new dependency was added. |
3. Environment and scope
- Linux x64; Node v22.19.0; pnpm 9.15.0; repository Vitest 4.1.1 and jsdom environment.
- Both checkouts started clean at the full main commit above; only the diagnostic test patch below was applied. Production files remained unchanged.
- Frozen installs and
pnpm exec turbo run buildsucceeded in both checkouts: 67/67 tasks. - No app server, provider, daemon, ports, or runtime data directory was needed or started. The tests render the real registered navigation slot and real ThreadRow with the repository's SDK test runtime.
- This is an input/navigation behavior defect, not an appearance defect. No screenshots are claimed. Real browser tab creation, Vivaldi, Windows, mobile, and split-disabled thread behavior were not exercised.
4. Minimal reproduction
Use two separate clean checkouts of the trusted repository. The first command sequence is:
git clone https://github.com/get-bb/bb.git /tmp/bb-5739-base cd /tmp/bb-5739-base git switch --detach 9937c46f5c7e369de3563eb864c8cbc4c3b9c231 pnpm install --frozen-lockfile --prefer-offline pnpm exec turbo run build pnpm exec turbo run test --filter=bb-plugin-navigation --filter=bb-plugin-thread-list -- app.test.tsx app/rows/ThreadRow.test.tsx
Baseline: navigation has 14 passing tests; thread-list has 95 passing tests in the selected files. Save the following diagnostic patch as /tmp/browser-navigation.patch. It extends existing repository harnesses, without replacing production components or adding test-only production exports.
diff --git a/plugins/navigation/app.test.tsx b/plugins/navigation/app.test.tsx
--- a/plugins/navigation/app.test.tsx
+++ b/plugins/navigation/app.test.tsx
@@ -133,6 +133,18 @@
afterEach(cleanup);
describe("Rail", () => {
+ it("issue 5739: Ctrl-click preserves browser navigation instead of activating in place", () => {
+ const view = renderRail([PLUGINS]);
+ const destination = screen.getByRole("button", { name: "Plugins" });
+ fireEvent.click(destination, { ctrlKey: true });
+ expect(view.inspection.sidebarNavigationCalls).toEqual([]);
+ });
+
+ it("issue 5739: Home exposes a native browser link", () => {
+ renderRail([PLUGINS]);
+ expect(screen.queryByRole("link", { name: "Home" })).not.toBeNull();
+ });
+
it("draws Home and the visible destinations, leaving New thread to the header and hidden ones to More", () => {
renderRail([NEW_THREAD, SEARCH, PLUGINS, DOCS]);
diff --git a/plugins/thread-list/app/rows/ThreadRow.test.tsx b/plugins/thread-list/app/rows/ThreadRow.test.tsx
--- a/plugins/thread-list/app/rows/ThreadRow.test.tsx
+++ b/plugins/thread-list/app/rows/ThreadRow.test.tsx
@@ -430,6 +430,14 @@
]);
});
+ it("issue 5739: Ctrl-click leaves a thread link default action uncancelled", () => {
+ const slot = renderThreadRow();
+ const link = screen.getByRole("link", { name: "Open Thread" });
+ const allowed = fireEvent.click(link, { ctrlKey: true });
+ console.log(JSON.stringify({ allowed, calls: slot.inspection.navigateCalls }));
+ expect(allowed).toBe(true);
+ });
+
it("keeps desktop restore available, hides it on mobile, and blocks row event propagation", async () => {
const thread = createThread({ archivedAt: 1, isArchived: true });
const rowEvent = vi.fn();
git apply /tmp/browser-navigation.patch pnpm exec turbo run test --continue=always --force --filter=bb-plugin-navigation --filter=bb-plugin-thread-list -- app.test.tsx app/rows/ThreadRow.test.tsx -t 'issue 5739'
Expected native-browser contract: Ctrl-click does not call current-page activation; Home exposes link semantics; a modified thread link click remains uncancelled. Actual selected output, reproduced twice:
Rail > issue 5739: Ctrl-click preserves browser navigation instead of activating in place
- Expected: []
+ Received: [{"itemId":"__bb__/extensions","method":"activate","openInSplit":true}]
Rail > issue 5739: Home exposes a native browser link
AssertionError: expected null not to be null
{"allowed":false,"calls":[{"method":"toThread","threadId":"thr_test","options":{"split":true}}]}
ThreadRow > issue 5739: Ctrl-click leaves a thread link default action uncancelled
AssertionError: expected false to be true
navigation: Tests 2 failed | 14 skipped (16)
thread-list: Tests 1 failed | 95 skipped (96)
The first rail excerpt condenses Vitest's multiline diff without changing its values. The thread diagnostic JSON and assertion text are verbatim. These failures are the intended reproduction result, not broken setup. Event dispatch returning false means the real React click handler called preventDefault(); jsdom is not being used to claim that a real browser tab opened.
5. Root cause
- No native rail destination links. RailButton renders Button; RailItem sends modified clicks to host activation:
onClick={(event) =>
actions.activate(item.id, {
openInSplit: event.metaKey || event.ctrlKey,
})
}
The TopList renderer uses the same button/activation pattern (source inspection only, not an added TopList reproduction). For Plugins and Skills, the host navigates the current route regardless of the split option; plugin panels can instead open a split.
Thread links are present but their native action is cancelled. The ThreadRow anchor handler contains:
<a href={thread.href}
onClick={(event) => {
...
if (splitAvailable && (event.metaKey || event.ctrlKey)) {
event.preventDefault();
openInSplit();
return;
}
...
}}
/>
The split action calls openThreadInSplit. This is intentional existing behavior: the navigation test asserts modifier-click splitting, and the thread test explicitly asserts Ctrl/Meta cancellation and split navigation. That explains why the ordinary test suite passes despite the browser expectation failing.
6. Proposed fix and simple-fix decision
First decide how browser new-tab gestures should coexist with the existing Ctrl/Meta split shortcut. Then give true navigation destinations host-resolved URLs, render native anchors, and intercept only unmodified primary clicks for app navigation. Retain buttons for commands such as creating or searching threads. Keep splitting accessible through the existing menu/drag path or an explicitly chosen non-conflicting shortcut.
No automatic fix or pull request. Replacing an existing, explicitly tested shortcut requires a product decision. In addition, the public sidebar navigation item contract has no host-resolved destination URL; fixing the complete rail/list/thread report without duplicating route policy needs coordinated routing/SDK and renderer work. This fails the rule's no-product-decision and single-subsystem simple-fix conditions. Only 20 diagnostic test lines across two files were written locally; no production patch, branch, commit, or push to bb was made.
No open pull request linked to this issue was found in its GitHub timeline or the open-PR search on 2026-10-19. No linked pull request code was checked out or executed.
7. Verification
The same agent repeated the reproduction in a second newly created, initially clean temporary checkout at the exact recorded commit. Checkout aliases are base and verify; private temporary directory identifiers are omitted. Each had a separate frozen install and successful 67-task build. The exact diagnostic patch was applied to the second checkout; --force prevented Turbo from substituting cached test results.
pnpm exec turbo run test --continue=always --force --filter=bb-plugin-navigation --filter=bb-plugin-thread-list -- app.test.tsx app/rows/ThreadRow.test.tsx -t 'issue 5739'
Second result: the same three intended assertion failures.
Thread diagnostic: {"allowed":false,"calls":[{"method":"toThread","threadId":"thr_test","options":{"split":true}}]}
git diff --check: passed in both checkouts.
git diff --numstat origin/main: 12 additions in navigation tests; 8 in ThreadRow tests; zero deletions.
This is a second clean run by the same agent, not independent verification. No report correction was required. Each root-cause source link is pinned to the tested commit. Browser Automation setup failed with “Install Chrome/Chromium on this host or link its executable at the plugin data runtime/chrome path.” Browser-specific confirmation remains a follow-up; no dependencies were installed to bypass that constraint.
8. Related issues
#2288 also concerns modified-click browser behavior, but concerns the macOS external-browser versus embedded-browser boundary. Its metadata was read; it is not evidence of a duplicate sidebar fix.
9. Evidence and trust notes
Raw logs and the exact patch are retained locally, not published as separate files. The complete diagnostic patch, commands, expected behavior, observed values, and second-run result are embedded above. Issue content was treated only as untrusted claims; no issue-provided links, attachments, scripts, or branches were fetched or executed. Only trusted main code and the locally authored test patch ran. No workflow, investigation agent, account session, production runtime data, or secret was used.
> AGENT GENERATED