Skip to content

Plugin-declared icons cannot be used for sidebar thread row marks (experimental_setThreadRowStatus.icon takes host glyph names only) #3204

Description

@jjanousek

Summary

experimental_setThreadRowStatus is the only plugin-facing icon surface that cannot draw a plugin's own declared icon. Its icon is a host glyph name and nothing else, so a plugin that paints sidebar row marks must either use bb's stock icon set or paint no mark.

bb already has the mechanism this needs: bb.branding.experimental_icons declares plugin-owned SVGs, referenced by the namespaced glyph "<pluginId>/<name>", validated at load and drawn as a currentColor mask. The ask is to accept that same reference here.

What the surface accepts today

@get-bb/[email protected], bb-plugin-sdk-app.d.ts:1656:

interface PluginComposerThreadRowStatus {
    /** BB icon-name hint; unknown names fall back to the generic plugin icon. */
    icon: string;
    /** Accessible label for the status glyph. */
    label: string;
    tone?: "default" | "error" | "running" | "success";
}

There is no field for an SVG, a data URI, or a plugin-relative path, and the host validator (bb 0.42.0, app/dist/assets/index-*.js) only checks that icon is a non-blank string before trimming it. So passing "my-plugin/worker" is accepted by the setter and then falls back to the generic plugin icon at draw time, per that doc comment. There is no failure to report, just the wrong glyph.

Where the namespaced glyph is already accepted

From references/quickstart.md, the declared-icon entry enumerates exactly three sites:

Reference an entry by its namespaced glyph "<pluginId>/<name>" — in a bridge's presentation.icon, in bb.agents.registerTool's presentation.icon, or as a bb.providers.register icon.

Thread row status is not one of them, and it is the surface most visible to a user: the sidebar, on every row, all day.

Suggested shape

Let PluginComposerThreadRowStatus.icon take either a host glyph name (unchanged) or "<pluginId>/<name>" naming an entry of the calling plugin's bb.branding.experimental_icons, resolved the way bridge rows already resolve it. Backwards compatible; no new field and no new asset pipeline, since the files are already served hashed from /api/v1/plugins/<id>/assets/icons/<name>.svg and already pass the reject-only SVG validator at plugin load.

Two details worth deciding rather than leaving implicit:

  • Foreign plugin ids. The other three sites refuse a glyph naming another plugin. The setter is already scoped to the calling plugin, so refusing there too (warn and ignore, as the setter does for a malformed status) would match.
  • Undeclared name. Today an unknown string silently becomes the generic plugin icon. For a namespaced glyph a warning would be more useful than a silent fallback, because the shape is unambiguous about intent.

An alternative shape is a plugin-relative path ("./icons/worker.svg"), matching bb.branding.icon. I would not pick it: the declared-icon vocabulary already exists, already has the security validator, and already has the ingest-time refusal semantics, so widening to it is the smaller change.

Why it matters

We paint three sidebar marks from a Chief of Staff plugin: a standing agent, a worker you delegate to, and a thread kept visible as a do-not-reuse warning. Every other glyph in that plugin is hand-traced, because the owner has a standing rule against stock icon sets in plugin UIs. These three are the only place we cannot honour it, so they are now a documented exception in the plugin's source rather than a fix. The distinction is worth more than the consistency, so we kept the marks, but that is a trade we would rather not have had to make.

Measured on bb 0.42.0 with @get-bb/[email protected].

Activity

  1. added
    plugins
    ui
    on Sep 7, 2026
  2. bb-slop-cop commented on Sep 7, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Classification applied:

    • Type: Feature
    • Priority: Low
    • Effort: Low
    • Labels: plugins, ui

    No pull request was opened because this is an additive capability request, and the rule only reproduces and fixes issues classified as Bug.

  3. self-assigned this
    on Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

pluginsui

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions