Repository navigation
Description
The workflow
I run Pi threads in bb. My Pi extensions report live state with ctx.ui.setStatus() and ctx.ui.setWidget(): the active LSP servers, the package count, a session timer, the AgentMemory connection. In the Pi TUI this shows as a status line above the editor. T3 Code, which also drives Pi over RPC, shows the same line above its composer (for example Pi · LSP Active: typescript · 16 pkgs · 1 hour · agentmemory).
In bb this state is lost. I cannot see it in the thread, and a plugin cannot show it either.
What happens today
The provider-pi bridge accepts these requests and drops them:
bb/plugins/provider-pi/src/bridge/extension-ui.ts
Lines 20 to 26 in 864cff5
| const FIRE_AND_FORGET_METHODS = new Set([ | |
| "notify", | |
| "setStatus", | |
| "setWidget", | |
| "setTitle", | |
| "set_editor_text", | |
| ]); |
bb/plugins/provider-pi/README.md
Lines 26 to 27 in 864cff5
| Fire-and-forget requests (`notify`, `setStatus`, `setWidget`, `setTitle`, | |
| `set_editor_text`) are accepted and dropped. A dialog left pending when the |
#1668 / #3228 made the dialog methods (select, confirm, input, editor) work. The fire-and-forget methods are still discarded. A third-party plugin cannot work around this: a composer banner (app.composer.customize({ banners })) can draw the line, but no API gives it the data. experimental_useThreadExtensionState reads only the provider plugin's own extension kinds.
Seen on bb-app 0.50.1 (npm install, Linux), Pi 1.7.0, and on main at 864cff5.
What you would expect
- The provider-pi bridge keeps the latest
setStatus(statusKey→statusText) andsetWidget(widgetKey→widgetLines,widgetPlacement) values per thread, as described in Pi'sdocs/rpc-extension-ui.md. An undefined value clears the key. - It emits them as thread extension state, for example a
pi-ui-statusextension kind. - bb shows them in a slim row above the composer, like the Pi TUI footer: statuses joined with
·, andaboveEditorwidgets as a collapsible block.experimental_CollapsibleStackCardalready fits this. - Optional: let other plugins read this state, so a user can restyle or filter the row.
setTitle could map to the thread title, and notify to a toast. Both are out of scope for this request.
Context and alternatives
- Workaround considered: a Pi extension that writes statuses to a file, plus a bb plugin that reads the file. A Pi extension sees only its own statuses, so every extension would need a wrapper. That is fragile.
- Forking provider-pi only to keep these events is heavy for a small change. The events already reach the host.
- Related: Pi SDK bridge does not expose standard extension UI requests to BB #1668 (closed by fix(provider-pi): surface Pi extension dialogs as answerable bb interactions #3228), Allow plugins to contribute session-scoped Pi extensions without a global Pi install #7187.
AGENT GENERATED
Activity
bb-slop-cop commentedon Dec 1, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotApplied classification:
providers,ui,provider-piCurrent
mainexplicitly documents dropping fire-and-forget extension requests inplugins/provider-pi/README.md, consistent with the bridge implementation. Persisting and rendering their state adds currently unsupported functionality rather than repairing a regression. Priority reflects limited provider-specific impact without blocking thread execution; effort spans bridge state handling and composer presentation using existing extension surfaces.No existing classification values needed preservation. No bug report or pull request: this is a feature request, so the bug reproduction and simple-fix stages do not apply.