Repository navigation
Description
The workflow
Focus Board (a third-party board over bb threads) gives each card an open-in-browser
action. Its intent, and the intent behind the same destination on many plugin surfaces,
is: hand me a real second bb application window with that thread in it, the way
File > New Window behaves, so the board stays where it is and the thread gets its own
detached, native surface.
We renamed the entry "Open in browser" precisely because a native window is out of the
plugin's reach on bb 0.46.0 — the label now under-promises, but the surface it replaced
was what users actually reach for. This issue asks for a plugin-reachable way to open a
thread in a new native app window, with a targeting story for which window receives the
open.
What happens today
bb 0.46.0, desktop app (apps/desktop/src/main.ts), macOS 15. A plugin cannot create or
target an application window at all, from either surface of the plugin SDK:
createApplicationWindow({ initialUrl, stateKey })exists inapps/desktop/src/main.ts,
but its only three callers are the File > New Window menu handler, the macOS
"activate"reopen-when-all-closed path, and the"second-instance"path that otherwise
falls back tofocusFirstWindow(). None is registered as an IPC handler; nothing in
dist/preload.cjsexposes a window-creating method (the desktop context exposed to the
renderer hasopenExternalUrl,focusWindow,getWindowState,
onWindowStateChange, zoom/find/state channels — no window creation).- The menu path cannot be repurposed for threads:
currentWindowUrl, the menu's
initialUrl, is only ever assigned inloadWindowUrlfrom the server root URL
(loadBbApp(serverUrl)), so File > New Window always lands on the app home, never a
thread route. There is no deep link either: noCFBundleURLTypesin Info.plist, no
app.setAsDefaultProtocolClient, noopen-urlhandler (see also Register a bb:// URL handler so other apps can open a thread or project #2199, which requests
the OS-level scheme for external integrators; this issue is about the plugin SDK
surface on top of the same gap). - A renderer
window.openis denied by the main processsetWindowOpenHandler, which
funnels everyhttp:/https:/mailto:URL (apparently including bb's own
127.0.0.1origin, perapps/desktop/src/desktop-external-url.ts) to
openExternalUrl→ the system browser. Sowindow.openfrom a plugin frontend can
produce a browser tab, never an app window. - The plugin frontend bridge (
useBbNavigate, apps/app/src/lib/url-open-routing.tsx)
offerstoThread(id)(same-window SPA navigation, current window swaps its panel for
the thread),openThreadPanel(only the calling plugin's own panel tabs),
experimental_openFixedTab(explicitlysurface: { kind: "current" }), andopenUrl
(routed into the desktop's in-app browser tab or the external browser per
bb.openLinksInAppBrowser). None can address another window. - The server SDK (
packages/sdk/src/areas/threads.ts,
packages/server-contract/src/api/threads.ts) has
sdk.threads.open({ threadId, split?, file? }), the contract behind
bb thread open. Itssplitplacements (right/left/down/top/replace) create
panes inside whichever windows are connected, with no window parameter. A real run
returns{ "delivered": 4 }— the event reaches every connected client (two desktop
windows plus two web tabs in our test), so even "open it just where I am looking" is
not expressible. - The built-in desktop browser has window-level targeting
(bb browser create --instance <id>addresses "connected desktop windows"), but it
creates a tab inside an existing window; instances are only enumerated, never created,
by anything a plugin can reach. - 0.46's Cmd/Ctrl-click "open links in a split" is the native product answer today, and
it is panes in the current window — the same ceiling.
What we ship meanwhile (workaround, not a fix): the entry now reads "Open in browser"
and hands the thread URL to a raw window.open. On the desktop client that is exactly
what the deny → openExternalUrl guard turns into a system-browser open, so the
destination is real — the user's own browser, not an in-app webview. But a browser tab
is not a window of bb itself, and that gap is this issue.
What you would expect
One of these shapes (they compose; either alone is enough to unblock plugins):
- Window placement on the server contract: an extended
sdk.threads.open({ threadId, placement: "window", instance? })where
placement: "window"opens (or focuses) a native application window whose initial
route is the thread, and the optionalinstance(or"focused") restricts delivery
to one connected window — mirroring the instance targeting
bb browser create --instancealready uses for tabs. Window opens should respect the
pane rules (focus instead of duplicate when the thread is already open somewhere). - A frontend bridge method:
useBbNavigate().toThread(id, { target: "new-window" })
backed by a main-process call intocreateApplicationWindowwith a thread-targeted
initialUrl.initialUrlalready exists as the mechanism; the missing parts are
letting it carry a real SPA route for one call, and exposing the capability to the
plugin host bridge.
Prior art for the main-process side: the desktop already spawns popups for in-app
browser guests (createPopupWindow), so window creation from a targeted request is
established; it is only the plugin-side request path that is missing.
Context and alternatives
Searched open and closed issues: "window", "new window", "second window"/"multi window",
"File > New Window", "window.new", "deep link"/"URL scheme", "pop out thread", plugin-API
queries. Closest matches and how this differs:
- Register a bb:// URL handler so other apps can open a thread or project #2199 registers
bb://so external apps can hand bb a thread/project. That helps
Raycast/Linear-style integrators but does not give an in-process plugin a
window-placed open, and the desktop app would need URL-argument routing on the
second-instance path for it to carry a thread id at all (today argv is ignored there). - Cmd-W with a plugin's inner pane focused closes the whole bb window: plugins have no way to join the close-window-or-side-tab arbitration #4590 (Cmd-W window-vs-side-tab arbitration for plugins) and Plugin API: restore a complete split-pane layout without reloading #3891 (restoring complete
split layouts) show adjacent plugin/window workstreams.
Ruled out, one line each: no argv URL handling on the second desktop instance path; no
protocol handler or open-url event; no renderer-reachable IPC creates windows; no
SDK placement beyond split panes; bb browser create makes tabs, not windows; an
osascript System Events menu click cannot help because the new window lands on the
server root (currentWindowUrl) and threads.open cannot target that new window.
Reach: any plugin that wants to hand a thread a detached surface (boards, pipelines,
task views, dashboards). The raw window.open workaround delivers the thread to the
system browser, which is a real destination but not a bb window — users still ask for
the second-window feel.
I can prototype option 2 against a fork after sign-off, per the issue-first rule.
Checks
- I searched open and closed issues for the same request.
- If an agent wrote this, the body ends with
> AGENT GENERATED.
AGENT GENERATED
Activity
bb-slop-cop commentedon Oct 10, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotApplied Type: Feature, Priority: Medium, Effort: High, and labels plugins, desktop. No existing classifications were present; all applied values were verified.
This adds native-window creation and targeting to the plugin navigation API, rather than correcting unexpected behavior in an existing supported operation. Medium priority reflects the available browser and split-pane workarounds; High effort reflects new cross-window behavior and SDK/desktop integration.
No reproduction report or pull request: the final Type is Feature, so the bug-report and simple-fix steps do not apply.
cristoslc commentedon Oct 15, 2026
Triage verdict (glm-5.3-flash-level (ollama-cloud/glm-5.3-flash:cloud)): ADOPT
Verified against current
get-bb/bbmain via the GitHub API:createApplicationWindow(apps/desktop/src/main.ts:2282) still has exactly three non-IPC callers (line 838, 2862, 2875),currentWindowUrlis only ever set from the server root inloadWindowUrl(line 2220) so File > New Window cannot carry a thread route, and the preload (apps/desktop/src/preload.ts) exposes onlyopenExternalUrlandopenWindowFindto the renderer, so no plugin-reachable path creates or targets a native window. The server contract (packages/server-contract/src/api/threads.ts) still has onlysplitonthreads.openwith noplacement/window/instanceparameter, and the plugin SDK bridge (packages/plugin-sdk/src/app-contract.ts:3517) still typestoThread(threadId, options?: { split?: boolean })with no window target. The last 30 commits on main touch browser tabs, updates, and Settings but nothing lands window placement or cross-window thread targeting, so the gap is unfixed and un-owned. The issue is a well-scoped Feature with two concrete, composable implementation options and prior art increatePopupWindow, and it directly unblocks third-party boards like the Focus Board plugin whose open-in-browser entry exists only because this capability is missing; adopting it for scheduling.cristoslc commentedon Oct 15, 2026
Triage verdict (gemma-level (ollama-cloud/gemma4:31b-cloud)): ADOPT
Verified against current
get-bb/bbmain:createApplicationWindow(apps/desktop/src/main.ts) is called only by internal app handlers (menu, activate, second-instance) and is not exposed via IPC.currentWindowUrlis only set from the server root inloadWindowUrl, preventing File > New Window from targeting specific threads. The preload script (apps/desktop/src/preload.ts) exposes onlyopenExternalUrland others to the renderer, leaving no plugin-reachable path to create native windows.toThreadin the plugin SDK (packages/plugin-sdk/src/app-contract.ts) only supportssplitplacement, confirming the reported gap is unfixed.