Skip to content

Render plugin composer actions in compact layouts #3358

Description

@iamhenry

Problem

Plugins can register composer actions through the public ComposerCustomization.actions API, but BB does not render those actions when the composer uses its compact layout. This prevents plugins from keeping important controls inside the composer on mobile and narrow layouts.

Plugins must instead place the control in a banner above the composer or depend on private host markup. The banner consumes additional vertical space, while DOM-based placement is unsupported and brittle.

The OpenCode plugin exposes an agent selector through this API. On desktop it appears beside the native composer controls; on compact mobile layouts it cannot appear there.

Outcome

Plugin composer actions render inside compact composers through the same public API used by expanded composers. BB continues to own ordering, spacing, overflow, accessibility, and interaction with native controls.

Acceptance

  • Actions registered through ComposerCustomization.actions render in compact composers.
  • Plugin actions appear before native voice, stop, and submit controls.
  • Long editor text and multiple actions do not overlap or overflow the composer.
  • Existing scope filtering and customization suppression still apply.
  • Expanded composer behavior remains unchanged.
  • Plugin authoring documentation describes compact action support.
  • A focused test covers action placement inside the compact composer.

Out of scope

  • Exposing BB's internal voice-input hooks to plugins.
  • Moving composer banners into the action row.
  • Provider-specific agent selector behavior.

Activity

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

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied and verified: Type: Feature · Priority: Medium · Effort: Low. Labels: ui, plugins. No existing classifications needed preservation.

    The current composer explicitly limits plugin action contributions to expanded layouts. Compact support extends that existing behavior; the affected controls have a workaround and the change appears contained. Final Type is Feature, so this rule skips reproduction reporting and a fix PR.

    AGENT GENERATED

  3. SawyerHood commented on Sep 14, 2026

    @SawyerHood
    Collaborator

    Consolidating #3359 into this earlier tracker at the owner’s request during the past-week duplicate review.

    Identical compact-composer plugin actions request and acceptance criteria. Related mobile capability discussion #3524 should refer to this canonical tracker.

    The original issue and its comments remain available through the link. Closing the duplicate does not mean this work is fixed or complete.

    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