Skip to content

Provider bridge: host-service channel so bridges can serve browser, automation and UI requests #6008

Description

@dpolishuk

The workflow

I maintain bb-zcode, a community provider plugin that runs the ZCode coding CLI inside bb through the provider bridge (SDK 0.6.49, bb 0.46.1). The CLI delegates several host features to whoever launched it via reverse RPCs: when a user asks the agent to drive a browser, schedule work, or use an interactive app surface, the CLI sends a host request to its host process and expects it to execute.

What happens today

The provider bridge protocol has no channel for this. Verified against SDK 0.6.49:

  • BRIDGE_REQUEST_METHODS is the complete bb→bridge surface (18 methods: initialize, model/list, provider/health|usage|installation/*, thread/*, turn/*, skills/configure) — there is no host-service category.
  • The bridge→bb direction carries thread deltas and tool-call payloads (item/tool/call via decodeToolCallResponsePayload), which serve dynamic tools, not host services.
  • The main SDK does ship a desktop browser host (ExperimentalDesktopBrowsersArea, BrowserCommandSchema, browser.find/reload/focusLocation, …), but those APIs are reachable only from plugin UI/webview contexts, not from a provider bridge worker.

So the plugin must reject the CLI's host requests. The concrete ports (names from the CLI's public protocol):

  • interaction/browserList / interaction/browserExecute — full browser automation commands.
  • automation/* (5 methods) and offPeak/* — scheduling and off-peak work.
  • bot/channel/reply — topic/channel resources.
  • mcp/ui* (16 methods) — MCP Apps / generated UI (sampling, app instances, page tools).

We currently fail these with an actionable error pointing at the vendor's desktop app (bb-zcode v0.9.1): the features work there, but not in bb.

What you would expect

A host-service channel in the provider bridge protocol, negotiated in the initialize handshake, so a bridge worker can forward the CLI's host requests to bb and return results. Two shapes that would work for us:

  1. A bridge→bb request family (e.g. host/service carrying {service, method, params}) plus handshake capabilities advertising which services the host provides (browser, scheduler, ui), or
  2. An extension point where the plugin server (full BbPluginApi access) can register host handlers that the bridge worker reaches through existing plumbing, similar to how skills/configure flows.

For browser control specifically, exposing the existing desktop browser host through such a channel would let any provider bridge drive browsers inside bb threads. We are happy to pilot an experimental design with bb-zcode and report back with fixture tests.

Context and alternatives

  • Workaround today: users run these features in the vendor's desktop app; the plugin rejects the ports with a clear message (see our capability audit and roadmap note).
  • Alternative we ruled out for now: the plugin launching and driving its own browser via CDP. It bypasses bb entirely, duplicates the desktop browser host, and raises permission/lifecycle questions that are better solved once inside bb.
  • This affects every provider bridge wrapping an agent CLI with host-delegated features (browser use, schedulers, app UI), which is increasingly common.

Checks

  • I searched open and closed issues for the same request.

Activity

  1. added
    providers
    plugins
    on Oct 21, 2026
  2. bb-slop-cop commented on Oct 21, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied missing classifications:

    • Type: Feature
    • Priority: Medium
    • Effort: High
    • Labels: providers, plugins

    This requests a new provider-bridge capability rather than a defect in existing behavior. Priority is Medium because the reported limitation has a workaround and affects a subset of integrations; effort is High because it requires protocol/API design and host-service lifecycle and permission decisions. Comparable provider-extension requests use the same classification pattern.

    No existing classifications were present; all applied values were verified, including the final Type. No reproduction report or pull request: this is a feature requiring architecture decisions, not a simple bug fix.

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

    pluginsproviders

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions