Skip to content

Queued messages wait for turn start while interrupted or stalled threads show Working #4365

Closed as not planned

Description

@brsbl

Summary

Two threads show Working... while a user message remains queued as Waiting for turn to start for minutes or longer. In one, the last turn was already marked interrupted after host connection loss; in the other, a new turn never emitted turn/started and a 120-second watchdog warning had fired. The durable active status, actual turn events, and queue wait can disagree, so the user sees apparent work but no progress or delivery of the queued message.

Versions and environment

  • bb 0.43.4-nightly.35739502552.1, web UI through BB Connect; macOS 26.5.2 enrolled host (host_37m3sgpq59)
  • Claude Code CLI 2.1.282, provider claude-code, model Opus 5.5 Medium
  • Threads thr_uxg8nhnedz / environment env_fxan6jxik3 and thr_pspxvua656 / environment env_newh8g2nkn, project proj_khiw2za95v
  • Source inspection against main at ddb962879f5584604d37726024329a4b73c65c60

Steps to reproduce

Observed path A (interrupted turn):

  1. In thr_uxg8nhnedz, run a turn, then lose host heartbeat acknowledgements. At 2026-09-25 17:05:15 UTC BB records turn/completed status=interrupted, system/error, and system/thread/interrupted at sequences 4794–4796.
  2. After reconnect, the thread reports status=active and runtime.displayStatus=active, despite no later turn/started event in its log.
  3. Send slop cop. It remains as qmsg_2aqdtetxin, waitingOn.kind=turn-starting, created at 19:21:57 UTC.

Observed path B (turn never starts):

  1. In thr_pspxvua656, send continue. client/turn/requested is sequence 997 at 19:32:33 UTC.
  2. Wait for system/error code=provider_turn_start_timeout at sequence 998, 19:34:46 UTC, with no turn/started event.
  3. Send another continue. It remains as qmsg_x4yungsz9u, waitingOn.kind=turn-starting, created at 19:35:08 UTC, while the thread reports active.

These are captured incident paths, not isolated minimal reproductions. I did not interrupt another live thread merely to force the race.

Expected vs actual

Actual: each screenshot shows Working... alongside a queued message labeled Waiting for turn to start.

Interrupted turn still working with slop cop waiting for turn to start

Timed-out turn still working with continue waiting for turn to start

Expected: after an interrupted or definitively stalled start, BB should settle the active state and move queued input to an actionable retry or dispatch state. If a turn is genuinely pending, the UI should say that clearly and not imply ongoing agent work. Queued user text must remain preserved.

Evidence and suspected mechanism

queueInputForStartingTurn parks input as turn-starting whenever the durable thread is active and getActiveTurnId is null: thread-turn-starting.ts#L17-L54. The queue wakes those messages on turn-started: queued-message-dispatch.ts#L298-L335. If no start event ever comes, this wait has no visible completion path in the observed threads.

For path A, the server's reconnect reconciliation can apply run.started to an error thread reported active by the daemon: thread-lifecycle.ts#L2080-L2105. That is a plausible reason the thread became active again after run.failed, but the precise reconnection transition was not captured. For path B, the watchdog emits an error but does not settle its pending start: runtime.ts#L279-L305. The UI label for turn-starting is defined at queued-message-wait.ts#L121-L138.

Related incident reports: #4363 for the never-started provider turn, #4364 for host connection loss.

What I ruled out

  • These are persisted queue records from bb thread queue list, not just stale screenshot pixels.
  • Path A's log has no new turn-start event after the interrupted completion. Path B has no turn-start event after the new-turn request.
  • Composer submit greys out during host reconnects and stays disabled after the host is back #4353 is a disabled composer during host reconnect; here submission succeeded and the persisted message is stranded. Auto-restart thread after "host daemon restarted" #1592 asks for automatic restart after daemon restart, a different recovery choice. Searched open and closed issues for the exact queue text, active/interrupted state, and turn-starting wait.
  • I did not reproduce on a running main build; the implicated paths remain on main at the commit above.

Suggested priority and effort

High: queued user intent appears accepted but does not run, while the UI implies the agent is working. Manual stop/retry may recover, but could require checking partial workspace changes first. Effort is unknown until the state transition is traced.

Originating BB thread: thr_tcftpwzg3f.

AGENT GENERATED

Activity

  1. brsbl commented on Sep 25, 2026

    @brsbl
    CollaboratorAuthor

    Additional event ordering for path A (thr_uxg8nhnedz): the last provider item before the stranded queue was a valid AskUserQuestion call (event 4790 at 10:07:42 UTC). BB created pending interaction pint_nrz8h82hdx with the full prompt and two choices (event 4791), then marked it interrupted at 10:09:39 UTC because the host daemon disconnected (event 4792). The turn did not get its interrupted completion until 17:05:15 UTC (event 4794). The thread later showed active without any new turn/started, so slop cop was parked as turn-starting at 19:21:57 UTC. Only a manual stop at 21:07:38–39 UTC closed the lingering question tool call and turn (events 4797–4799); the queued message remained present when inspected afterward.

    The stored question payload is not empty. This strengthens the state-reconciliation concern: BB interrupted the user interaction hours before the provider turn/tool call settled, then showed Working and parked input waiting for a start event that never came. The user's report that a question/config panel appeared empty may be an additional rendering issue; its exact panel is still being identified.

  2. added theissue type on Sep 25, 2026
  3. added
    threads
    partial-repro
    on Sep 25, 2026
  4. bb-slop-cop commented on Sep 26, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Preserved Bug · High priority · Medium effort · threads. Added partial-repro.

    Reproduction and root-cause report: PARTIALLY REPRODUCED. High confidence in the runtime cause: the start watchdog warns without settling the pending request, so retries remain blocked by CompetingTurnError. The focused recovery test failed in two clean trusted-main runs; the normal-start control passed in both. Reconnect, persisted queue, and UI behavior remain unverified end to end.

    No PR: safe recovery requires a cancellation/late-start policy coordinated across runtime and server, outside the simple-fix criteria.

    AGENT GENERATED

  5. SawyerHood commented on Oct 19, 2026

    @SawyerHood
    Collaborator

    Consolidated into #4363 at the maintainer's request. Added the source context, evidence links and any distinct/unverified follow-up scope to the canonical tracker: #4363 (comment)

    Closing this report for tracking consolidation, not as fixed. Please continue investigation and updates in #4363; this report remains linked as original evidence.

    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

    partial-reprothreads

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions