Skip to content

Threads awaiting user interaction are invisible to CLI and block programmatic steering with HTTP 409 #1655

Closed

Description

@mattwyckhouse

When a provider agent (e.g. Claude Code) raises an interactive question card in a thread, orchestration from the CLI breaks down in three compounding ways:

  1. bb thread tell <id> and bb thread queue send <id> both fail with HTTP 409 "Thread is awaiting user interaction" — there is no programmatic way to answer or dismiss the pending interaction.
  2. The pending card is invisible to bb thread show and bb thread log — a coordinator polling thread state sees a thread that looks active/idle-normal. The only way to discover the wedge is a message send bouncing with the 409.
  3. The thread meanwhile makes no progress, so in multi-thread orchestration (coordinator + worker patterns) this reads as a healthy lane while being a silent stall.

Requests, in order of value:

  • Surface the pending interaction in bb thread show / bb thread log (status like awaiting-user-interaction, plus the question payload where available).
  • Provide a programmatic answer/dismiss path (e.g. bb thread respond <id> --choice N / --text "..." or at least bb thread interrupt clearing the card so a queued message can land).
  • Include the awaiting-interaction state in any machine-readable thread listing so watchdogs can detect the stall class cheaply without probe-messages.

Workaround today: bb thread fork --workspace reuse off the wedged thread and archive the original, which works but loses the in-flight turn.

Activity

  1. added
    threads
    cli
    ask-user-question
    on Aug 18, 2026
  2. ymichael commented on Oct 29, 2026

    @ymichael
    Collaborator

    Checked on bb 0.48.0 (macOS), Claude Code provider, with a thread waiting on a native AskUserQuestion. All three requests are now covered:

    1. Steering no longer fails with HTTP 409. bb thread tell queues the message and sends it once the question is answered:
      $ bb thread tell thr_wbcrby5qkb 'Also, after answering, say hi.'
      Thread thr_wbcrby5qkb message queued (waiting for a pending interaction); it dispatches when that clears
      $ bb thread queue list thr_wbcrby5qkb
      qmsg_yt2uupdwkq  thr_wbcrby5qkb  ...  waiting  waiting for a pending interaction
      
      After the answer, the queued message reached the agent as a steer and the queue was empty.
    2. The question can be seen and answered from the CLI. bb thread log shows ── Waiting for answer Pick a letter ──. bb thread interactions list/show returns the question payload, and bb thread interactions answer <id> <thread> --choice <questionId>=<value> answers it. respond and approve/deny/grant cover plugin forms and approvals.
    3. Machine-readable state. bb thread list --json includes hasPendingInteraction: true for the waiting thread.

    One gap remains: the human-readable bb thread show doesn't print the pending question. Use bb thread interactions list instead. Closing as resolved.

    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

    ask-user-questionclithreads

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions