Repository navigation
Closed
Copy link
Description
Summary
In a thread, a plugin that creates a terminal and calls experimental_openTerminal gets the terminal tab added, but on a desktop-width window the right panel stays closed if it was closed. The user sees nothing happen until they open the panel themselves. The SDK contract says the call should "select its tab, adding one when needed, and reveal the panel".
Versions and environment
- bb from source, a branch based on
mainat82e14ef0d4; the code path below is unchanged onmainatdccef1db1a. - bb desktop-width browser window (not the compact viewport), right panel closed.
- Any provider; no agent involvement needed.
Steps to reproduce
- Create a plugin with a header thread action (
app.slots.experimental_threadAction({ placement: "header", ... })) whose handler runs:const { id } = await sdk.terminals.create({ cols: 80, rows: 24, scope: { kind: "thread", threadId }, start: { mode: "command", command: "python3 -m http.server" }, }); await navigate.experimental_openTerminal({ terminalId: id });
- Install it, open a thread in a wide window, and close the right panel.
- Press the header button.
Expected vs actual
- Expected: the right panel opens with the new terminal tab selected.
- Actual:
experimental_openTerminalresolvestrueand the terminal runs (the server responds), but the right panel stays closed. Opening the panel by hand shows the new tab selected.
Evidence
- The SDK contract promises the reveal: app-contract.ts#L5296-L5297.
experimental_openTerminalcalls the surface'sopenTerminal: plugin-navigation-hooks.ts#L202.usePanelTerminals.openselects the tab and callsreveal(): usePanelTerminals.ts#L89-L94.- Likely cause (inferred from code): the thread view passes
reveal: openCompactDrawer: ThreadDetailView.tsx#L967. That only opens the compact drawer. The desktop panel opens throughopenPersistedPanel, whichopenPanelcalls butopenCompactDrawerdoesn't: useThreadSecondaryPanelVisibility.ts#L151-L156.
What I ruled out
- Not a duplicate of Plugin API to open persistent terminals in the native panel #1132, which asks for a detach-on-close terminal API; this is the shipped
experimental_openTerminalnot revealing the panel. - The terminal itself starts correctly; only the panel reveal is missing.
- I didn't check the compact (phone-width) drawer, the New thread screen, or plugin pages, which pass their own
reveal.
Suggested priority
Low to medium: affects any plugin that opens terminals (for example a "Run" button). The workaround is opening the panel by hand, and no data is lost.
Found while testing a migration guide prompt in BB-Thread-ID: thr_tbjvi849h4.
AGENT GENERATED
Activity
bb-slop-cop commentedon Nov 4, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotui,pluginslabels preserved.no-reproapplied.f3ccc8b071. Terminal selection already writesisOpen: truebefore the compact-drawer callback; desktop visibility reads that state.Make plugin surfaces prove they use core's path and delete four plugi…
Make plugin surfaces prove they use core's path and delete four plugi…
Make plugin surfaces prove they use core's path and delete four plugi…
Make plugin surfaces prove they use core's path and delete four plugi…
Make plugin surfaces prove they use core's path and delete four plugi…