Skip to content

experimental_openTerminal doesn't reveal a closed right panel in a thread on desktop #7065

Closed

Description

@brsbl

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 main at 82e14ef0d4; the code path below is unchanged on main at dccef1db1a.
  • bb desktop-width browser window (not the compact viewport), right panel closed.
  • Any provider; no agent involvement needed.

Steps to reproduce

  1. 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 });
  2. Install it, open a thread in a wide window, and close the right panel.
  3. Press the header button.

Expected vs actual

  • Expected: the right panel opens with the new terminal tab selected.
  • Actual: experimental_openTerminal resolves true and the terminal runs (the server responds), but the right panel stays closed. Opening the panel by hand shows the new tab selected.

Evidence

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_openTerminal not 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

  1. added
    ui
    plugins
    on Nov 4, 2026
  2. added theissue type on Nov 4, 2026
  3. added
    no-repro
    on Nov 4, 2026
  4. bb-slop-cop commented on Nov 4, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority Medium · Effort Low (applied); existing ui, plugins labels preserved.
    • Reproduction and root-cause report: NOT REPRODUCED · confidence medium · reproduction label no-repro applied.
    • Root-cause assessment: no defect established on trusted main f3ccc8b071. Terminal selection already writes isOpen: true before the compact-drawer callback; desktop visibility reads that state.
    • Evidence: the real thread-view/plugin-navigation component test passes with unchanged production code in both clean checkouts; the second run passes all 44 relevant tests. Live browser verification was blocked by missing Chrome on the isolated host, so visual behavior remains unverified.
    • No PR: trusted main did not reproduce the bug, so there is no failing-before-fix regression to justify a safe production change. The report includes the complete test and the next browser experiment.

    AGENT GENERATED

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

    no-repropluginsui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions