Skip to content

Pi provider: show extension setStatus/setWidget state above the composer #8476

Backlog

Description

@gaodes

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:

const FIRE_AND_FORGET_METHODS = new Set([
"notify",
"setStatus",
"setWidget",
"setTitle",
"set_editor_text",
]);

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

  1. The provider-pi bridge keeps the latest setStatus (statusKey → statusText) and setWidget (widgetKey → widgetLines, widgetPlacement) values per thread, as described in Pi's docs/rpc-extension-ui.md. An undefined value clears the key.
  2. It emits them as thread extension state, for example a pi-ui-status extension kind.
  3. bb shows them in a slim row above the composer, like the Pi TUI footer: statuses joined with ·, and aboveEditor widgets as a collapsible block. experimental_CollapsibleStackCard already fits this.
  4. 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

AGENT GENERATED

Activity

  1. added
    providers
    ui
    provider-pi
    on Dec 1, 2026
  2. bb-slop-cop commented on Dec 1, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied classification:

    • Type: Feature
    • Priority: Medium
    • Effort: Medium
    • Labels: providers, ui, provider-pi

    Current main explicitly documents dropping fire-and-forget extension requests in plugins/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.

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

    provider-piprovidersui

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions