Skip to content

Plugin prompts created with bb.ui.requestInput do not emit interaction.pending #3397

Closed

Description

@erwinkn

On BB 0.42.1, plugin-origin prompts created through bb.ui.requestInput appear in the pending-interactions API and UI but do not emit bb.events.on("interaction.pending") notifications in the same way provider-origin prompts do.

This repository already observed the difference with a Plans review prompt: the prompt remained pending and the sidebar showed Needs Attention, while the push-notifications plugin did not receive its subscribed event. The current MCP integration therefore reconciles threads.interactions.list on reads instead of relying solely on lifecycle events.

Reproduction:

  1. Register an observer with bb.events.on("interaction.pending", ...) in a test plugin.
  2. Create a prompt with another plugin's bb.ui.requestInput (for example, submit a plan for review).
  3. Verify threads.interactions.list({ threadId }) contains the prompt.
  4. Compare observer delivery with a provider-origin question/approval.

Expected: after a pending interaction is committed, emit the event for both origins with consistent thread/interaction identity. A positive test should assert one event per newly pending row and no duplicate event from read/reconciliation.

Also consider updating attention/unread timestamps when an interaction becomes pending on an already-idle thread. The sidebar can currently show Needs Attention without a corresponding new unread timestamp.

Activity

  1. added theissue type on Sep 10, 2026
  2. added
    plugins
    confirmed-repro
    on Sep 10, 2026
  3. bb-slop-cop commented on Sep 10, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Classified as Bug · Priority: Medium · Effort: Medium; applied plugins and confirmed-repro. No existing classifications were replaced.

    Reproduction report: REPRODUCED, high root-cause confidence. The plugin creation path commits pending prompts but omits the event emitter used by provider prompts. The regression failed in two clean trusted-main checkouts: one expected event, zero received.

    Opened ready PR #3398: #3398. The fix changes 38 lines across two files; 47 focused tests, server typecheck and diff checks pass. Unread timestamp behavior remains unverified and outside this fix.

    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

    confirmed-reproplugins

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions