Skip to content

Plugin SDK: let plugins read and open the navigation rail entries #5376

Closed

Description

@katt-999

The workflow

We had a plugin, Sidebar Sections, built on the experimental_sidebarNavigation slot. It grouped the sidebar entries into collapsible sections (seeded from marketplace categories or made by the user), with favorites, search and drag and drop. We run 40+ plugins, so without grouping the list gets long fast.

0.46 removed that slot along with experimental_useSidebarNavigation, experimental_SidebarNavigationIcon and experimental_useSidebarNavigationSplit. We get why the rail is now owned by bb, and sidebar.pluginPanelOrder / sidebar.visiblePluginPanels are a good start. But there's no longer any way for a plugin to know what's in the rail, so we can't build a grouped view on top of it.

What happens today

  • A plugin can't list the rail entries (other plugins' panels or bb's own).
  • useBbNavigate().toPluginPanel() only opens the calling plugin's own panels, so a plugin can't open another plugin's panel.

What you would expect

In order of usefulness for us:

  1. A read-only hook such as experimental_useNavigationEntries() that returns each rail entry: key (<pluginId>/<panelId>), title, icon, plugin id, whether it's visible, and its badge/accessory state if there is one.
  2. A way to open any entry, e.g. useBbNavigate().toPanel(pluginId, panelId, { split }).
  3. Optionally, grouping built into the rail itself. With that, most people wouldn't need our plugin at all.

Context and alternatives

Our current workaround: for every plugin returned by plugins.list(), we import app.bundle.jsUrl and call its default.setup() with a fake builder that records the navPanel() calls. It's fast enough (about 25 ms for 45 plugins), but it depends on bundle internals (__bbPluginApp, setup) and re-runs other plugins' code, so we expect it to break at some point. To open a panel we push the URL with history.pushState + a popstate event, or click bb's hidden rail button.

Related: #5327 (accessories no longer shown in the rail). If the hook in point 1 exposed badge state, it would cover that case for us too. See also #1202 and #1852.

We can test a preview build if that helps.

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

  1. added
    plugins
    ui
    on Oct 12, 2026
  2. bb-slop-cop commented on Oct 12, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied and verified: Type: Feature · Priority: Medium · Effort: High. Added area labels: plugins, ui. No existing classifications were replaced.

    The current SDK explicitly limits panel navigation to the calling plugin. Rail enumeration and cross-plugin navigation add public capabilities rather than repair a violated contract. Medium priority reflects a meaningful workflow limitation with workarounds; High effort reflects the new SDK contract and shared navigation design.

    No reproduction report or pull request: this is a feature request requiring API/product design, not a safe simple bug fix.

  3. SawyerHood commented on Oct 19, 2026

    @SawyerHood
    Collaborator

    Addressed by merged PR #5584: the supported sidebar navigation plugin API is restored, including navigation entries, visibility, badges, activation and split opening. Plugins can again implement the grouped navigation workflow described here without importing other plugins’ bundles or manipulating browser history. The implementation was confirmed on main during the backlog sweep. Closing at the maintainer’s request.

    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

    pluginsui

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions