Skip to content

Messages to a thread blocked on AskUserQuestion are dropped, and only the sender is told #1650

Closed

Description

@MGrin

A thread blocked on AskUserQuestion rejects incoming messages with 409. The refusal itself is defensible — the problem is that only the sender learns about it, so the recipient's inbox silently loses messages it will never know existed.

Verbatim, both directions

Sending to a blocked thread:

thr_xaisx58uif: HTTP 409: Thread is awaiting user interaction.
Resolve the pending interaction before sending another prompt.

Receiving while blocked — the damaging direction. An orchestrator held an AskUserQuestion open; a worker sent it three substantive reports:

wake failures: thr_xqcw2v38e4: HTTP 409: Thread is awaiting user interaction.

All three were stored in the bus room (#2780, #2781, #2783). None was delivered.

The consequence was not hypothetical:

  • the worker believed it had reported
  • the orchestrator believed the worker had gone silent for 3.5 hours, and accused it of stalling

On recovery, a local watchdog reconstructed what had happened:

3 bus message(s) addressed to you were never delivered
(sent while you were blocked - the sender saw success)

The defect is the asymmetry, not the refusal

The system knows the delivery did not land. It tells the sender and says nothing to the recipient. An unreachable inbox is therefore indistinguishable from a peer that simply had nothing to say — which is exactly the wrong inference for an orchestrator to be forced into.

The ask is not "make 409 go away"

Either would fix it:

  1. Queue the message and deliver it when the pending interaction resolves, or
  2. Let the blocked thread see that something was addressed to it — even a count on unblock would have prevented the 3.5-hour misread

Note on how this was gathered

Every record above is incidental, from real multi-agent work. Deliberately manufacturing the blocked state to test it parks a thread in a human's attention queue and rings their machine, so it was not done.

Separately and more narrowly: threads that end in status=error appear to produce no completion notification at all. That is a different gap and not part of this report. Threads that complete normally do notify — an earlier version of this claim said otherwise and was wrong; three controlled trials on 0.37.0 produced a completed notification every time.

Activity

  1. added theissue type on Aug 17, 2026
  2. added
    threads
    ask-user-question
    on Aug 18, 2026
  3. SawyerHood commented on Aug 18, 2026

    @SawyerHood
    Collaborator

    Reproduction & root-cause report: https://get-bb.github.io/reports/issues/1650.html

    • Verdict: REPRODUCED · root-cause confidence: high
    • Root cause (short): Two guards keyed on hasPendingThreadInteraction drop inbound traffic to a blocked thread with no persistence: the /send route (all bb thread tell modes, incl. queue-if-active per PR Fix pending interaction queue send guard #112) throws 409 before anything is stored, and queueParentSystemMessage silently returns false for child-completed/failed notices with no log or retry.
    • Linked PR review: Queue messages sent to a thread that awaits user interaction #1699 → REQUEST CHANGES — Right design (queues sends, persists deferred parent notices) and my repro test passes on it, but it is 26 commits behind main and collides with main's migration idx 99 (0099_flawless_maximus vs 0099_deferred_parent_system_messages) plus 8 other conflicts (plugin SDK version 0.4.7 vs main 0.4.8, sna; Surface pending interactions in the CLI and add thread wait --until-input #1698 → REQUEST CHANGES — Targets Threads awaiting user interaction are invisible to CLI and block programmatic steering with HTTP 409 #1655, not this issue (only rewrites the 409 text and adds CLI visibility/wait --until-input); tests pass, but it is stale (plugin SDK bump 0.4.7 conflicts with main's 0.4.8, bundled d.ts/templates conflicts) and edits the same 409 assertions/guide/SDK files as Queue messages sent to a thread that awaits user interaction #1699, so it needs a rebase an
    • Proposed fix: Server: (1) in the /send route, when the target has a pending interaction and mode != start, persist via createQueuedMessageForThread and return 200 {ok, delivery:"queued", queuedReason:"awaiting_user_interaction"} instead of calling ensureThreadIsNotAwaitingUserInteraction (delete the Fix pending interaction queue send guard #112 guard call at routes/threads/actions.ts:326 and flip its regression test); keep 409 only for mode start. (2) In queueParentSystemMessage, never return false silently for a blocked parent: persist the notice durably, log at info, flush on a PendingInteractionLifecycle settle hook and from the periodic sweep,…
    • Caveats: The reporter's 'bus room', 'wake failures' and watchdog are external tooling; only bb's 409 and bb's own parent-notification drop were verified. Live repro used claude-code (haiku) with native AskUserQuestion; codex/pi plugin AskUserQuestion path not exercised live but goes through the same pending-interaction guards. Screenshots are of the web app timeline (before/after), the CLI evidence is text…

    The report has copy-paste repro steps, screenshots where the bug is visual, code permalinks at 16ceb3a54, and repro artifacts. It was independently re-run by a second agent (see its Verification section).

    AGENT GENERATED: by Claude Opus 5

  4. added
    confirmed-repro
    on Aug 18, 2026
  5. self-assigned this
    on Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ask-user-questionconfirmed-reprothreads

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions