Skip to content

A child thread's AskUserQuestion does not notify the parent thread (parent notifications miss non-blocking questions) #7457

Closed

Description

@evstigneew

The workflow

Environment

  • bb 0.49.0, built-in plugin [email protected]
  • Child thread: ACP provider (GLM), spawned with --parent-thread; Parent notifications: auto
  • Parent thread: Claude Code, acting as an orchestrator for several child threads

What happens today

  1. The parent (orchestrator) spawned a child thread for a coding task and ended its turn. It relies on parent notifications to hear back.
  2. Mid-turn, the child called AskUserQuestion with 3 questions.
  3. The tool returned immediately to the child: "The request is shown to the user. A successful result will arrive separately. Do not ask again or assume an answer. Continue independent work…". The child's turn kept running.
  4. The question appeared only in the child thread's UI (system/interaction/lifecycle, status pending).
  5. The parent received nothing. Its event log shows no incoming message for the whole time the interaction was pending, about 10 minutes.
  6. A human noticed the question by chance and answered it manually in the child thread. The answer was delivered to the child as a tool-result-delivered message. The parent still has no record that a decision was made.

What you would expect

A pending question or approval in a child thread should reach the parent, the same way blockers do. Per bb guide threads, auto reports "every finished, failed, or interrupted turn and every blocker", and stuck keeps "blockers on an approval or question". Because AskUserQuestion is now non-blocking, it never counts as a blocker, so neither mode reports it.

Context and alternatives

Why it matters
For multi-agent setups (an orchestrator thread plus worker threads), this breaks the control loop:

  • Decisions get made by the human in a worker thread, bypassing the orchestrator, which keeps planning on stale assumptions.
  • The worker keeps going on its own assumptions while the question is open.
  • In unattended or overnight runs, the question hangs unanswered while the orchestrator is idle and waiting for a notification that never comes.

Suggested fix (any of these)

  1. Treat a pending interaction (question or approval) in a child thread as a parent notification event under auto and stuck, even when the provider turn is not blocked. Include the interaction id and the question text, or a pointer to bb thread interactions show.
  2. Alternatively, add an explicit option, e.g. --parent-notifications questions, or a per-spawn flag that routes a child's AskUserQuestion to the parent instead of the human.
  3. Optionally, let the parent answer through the existing bb thread interactions answer <interaction-id> <child-thread>. Mentioning that command in the notification text would make the loop self-explanatory for agents.

Workarounds we are applying meanwhile

  • Worker prompts now say: do not ask the human; ask the parent via bb thread tell and end the turn.
  • The orchestrator polls bb thread interactions list <child> --json while waiting.
  • Our plugin forwards interaction.pending events of managed threads to the orchestrator thread.

Checks

  • I searched open and closed issues for the same request.
  • If an agent wrote this, the body ends with > AGENT GENERATED.

Activity

  1. added
    threads
    ask-user-question
    on Nov 12, 2026
  2. added theissue type on Nov 12, 2026
  3. added
    confirmed-repro
    on Nov 12, 2026
  4. bb-slop-cop commented on Nov 12, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority: Medium · Effort: Medium. Applied threads, ask-user-question, and confirmed-repro; no existing classifications were replaced.
    • Reproduction report: REPRODUCED, high root-cause confidence. The same regression fails in two clean trusted-main checkouts for both auto and stuck.
    • Root cause: provider interaction registration dispatches parent attention notices, but server-owned plugin interaction creation omits that dispatch. The question persists without a parent notification.
    • Fix: PR #7458, ready for review, not merged. Reuses the existing notification path without blocking the child; 208 changed text lines across four files. The regression and relevant suites pass: 81 tests, plus server lint/typecheck and git diff --check.
    • Verification exercises the real migrated-SQLite server lifecycle and captured host delivery, not live ACP/Claude sessions. Answer/resolution notifications remain separate scope in A parent told child-needs-attention has no way to learn the child was unblocked #3614.

    AGENT GENERATED

  5. added 2 commits that reference this issue on Nov 17, 2026
    1da4ed9
    72ea1dc
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

    ask-user-questionconfirmed-reprothreads

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions