Skip to content

Let a child thread tell its parent only when it finishes, not after every turn #4487

Description

@Ernxst

The workflow

I keep one long-running coordinating thread and break distinct discussions out into child threads that I talk to directly, so the coordinator's context stays small. While I talk in the child, I want the coordinator to stay idle until the discussion is over, then receive one report.

What happens today

The parent gets a system notice every time the child ends a turn, and every time the child opens a question to the user. Each reply I get in the child wakes the parent, which re-reads its whole context to handle a notice that needs nothing from it, and posts in the parent while I am talking elsewhere.

Tested on bb 0.43.4 with a Claude Code child spawned by bb thread spawn --parent-self, told to reply and then ask "Is the test done?" with AskUserQuestion, repeating until I picked Yes. The parent received this once per question:

[bb system]

@thread:thr_child needs help.
Blocked on user question:
Is the test done?

and then:

[bb system]

@thread:thr_child completed:

Perfect, the test is done!

Both come from the parent notification path, which has no per-child setting: queueChildThreadTurnNotificationBestEffort for turn ends and queueChildThreadNeedsAttentionNotificationBestEffort for questions.

What you would expect

A per-thread setting, set at spawn and changeable with bb thread update, for example --notify-parent <every-turn|on-finish>. With on-finish, turn-end and needs-attention notices from that child are not sent to the parent. The child sends one notice when it marks itself finished, for example with bb thread finish --self, carrying its final output as the completed notice does today. Failures and interruptions still notify, since the parent may need to act on them.

Context and alternatives

  • Holding the child's reply open inside one turn with a question does not help: the question sends a notice too, as above.
  • Spawning the child without a parent and attaching it at the end avoids the notices, but loses the parent link for the whole discussion.
  • Parent thread notices do not say who initiated a child thread's turn #4424 adds who started a child's turn to the notice text. That helps the parent read the notice but does not stop it being woken.

Checks

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

AGENT GENERATED

Activity

  1. added
    threads
    on Sep 30, 2026
  2. lanjak commented on Nov 12, 2026

    @lanjak
    Contributor

    I think #5578 (cafba7a, 15 Oct) solves this. bb thread spawn now has --parent-notifications auto|stuck|off. With stuck, the parent gets no notice for successful child turns. It still gets a notice when the child fails, is interrupted, or waits on an approval or a question. With off, the parent gets no automatic notices, and the child sends its report with bb thread tell. #6485 also adds "Notify parent" to the thread menu.

    One part is not covered: in stuck mode, an AskUserQuestion in the child still wakes the parent. If the workflow needs the parent to stay idle through child questions, off plus an explicit bb thread tell at the end is the only option today.

    Checked on bb 0.49.0 (bb thread spawn --help) and on main at 030b1b729.

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

    threads

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions