Skip to content

Claude turn-start timeout leaves thread working and follow-up waiting #4363

Closed

Description

@brsbl

Summary

A Claude Code thread accepted a new continue turn but never emitted turn/started. After 120 seconds BB showed The provider accepted a turn but did not start it within 120s, kept the thread at Working..., and left a later continue queued as Waiting for turn to start. The message warns that the request may be stalled but provides no resolution; the turn and its queued follow-up remained pending when inspected.

Versions and environment

  • bb 0.43.4-nightly.35739502552.1, web UI through BB Connect, macOS 26.5.2 execution host (host_37m3sgpq59, Bersabel’s MacBook Air)
  • Claude Code CLI 2.1.282, provider claude-code, model Opus 5.5 Medium
  • BB thread thr_pspxvua656, environment env_newh8g2nkn, project proj_khiw2za95v
  • Source inspection against main at ddb962879f5584604d37726024329a4b73c65c60

Steps to reproduce

These are the exact observed incident steps, not a deterministic minimal reproduction:

  1. In thr_pspxvua656, an earlier provider turn fails. In this case its final provider error was API Error: Request rejected (429) · No Account Pooler account is currently eligible.
  2. Send continue as a new turn. The recorded client/turn/requested event is sequence 997 at 2026-09-25 19:32:33 UTC.
  3. Wait more than 120 seconds. No turn/started follows. BB emits system/error sequence 998 at 19:34:46 UTC.
  4. Send another continue while the UI still shows Working.... The message becomes queued with waitingOn.kind = turn-starting and does not dispatch.

The prior 429 and the missing start are correlated in this incident; I have not shown that the 429 causes the subsequent stall.

Expected vs actual

Actual event:

system/error code=provider_turn_start_timeout
The provider accepted a turn but did not start it within 120s. The request may be stalled; stopping the thread interrupts it.

Actual queued item: qmsg_x4yungsz9u, text continue, waitingOn.kind=turn-starting; the thread still reports status=active and runtime.displayStatus=active. Screenshot of that state:

Turn start timeout, Working label, and queued continue waiting for turn to start

Expected: BB should resolve or clearly fail a turn that never starts, preserve the queued message for an explicit retry, and show an accurate thread state. The error should identify the failed boundary where possible.

Evidence and why this error is sent

The agent runtime records a pending start when it sends turn/start to the provider bridge. Its watchdog emits this error once the pending entry is at least 120 seconds old. That entry is cleared by turn/started, turn/completed, or a non-retrying provider/error, but the watchdog itself does not clear or fail it: runtime.ts#L279-L305, runtime.ts#L2037-L2082, runtime.ts#L839-L856.

This establishes why BB sends the warning, not why Claude Code did not start the turn. The provider/bridge stall needs separate tracing. A queued follow-up is parked as turn-starting when the durable thread is active but has no active turn event: thread-turn-starting.ts#L17-L54.

What I ruled out

Suggested priority and effort

High user impact: the thread appears to work indefinitely while queued input cannot run. Manual stop/retry is the current workaround. Root-cause effort is unknown until the provider bridge stall is traced.

Originating BB thread: thr_tcftpwzg3f.

AGENT GENERATED

Activity

  1. added theissue type on Sep 25, 2026
  2. added
    providers
    threads
    provider-claude-code
    partial-repro
    on Sep 25, 2026
  3. bb-slop-cop commented on Sep 26, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Classification (preserved): Bug · High priority · Medium effort. Labels: providers, threads, provider-claude-code, partial-repro.

    Reproduction and root-cause report: PARTIALLY REPRODUCED, medium root-cause confidence. Two clean origin/main checkouts confirmed that the watchdog emits a warning without terminating a pending turn. The Claude bridge stall and live queued follow-up remain unverified. Reproduction label: partial-repro.

    No PR: safe recovery needs a decision about cancellation and late starts, beyond the simple-fix scope.

  4. SawyerHood commented on Oct 19, 2026

    @SawyerHood
    Collaborator

    Consolidated stalled-start report with reconnect recovery scope

    Consolidating #4365 into this canonical tracker at the maintainer's request following the open-issue duplicate sweep.

    #4365 path B is the same incident as this issue: requested turn at event 997, watchdog warning at 998, no turn/started, then follow-up input stranded waiting for turn-starting. Use this issue for the common timeout/recovery implementation.

    Preserve the distinct path A from #4365 as outstanding investigation:

    • Reproduce reconciliation after host heartbeat loss: interaction interrupted first, turn completed as interrupted later, then thread shown active without a new turn/started.
    • Check the queued message remains preserved and reaches an actionable retry/dispatch state instead of waiting forever.
    • Check the lingering question/tool call and Working indicator settle consistently. The source comment records interaction events 4790–4792, interrupted completion at 4794, and manual-stop cleanup at 4797–4799.
    • Verify reconnect, durable queue and UI behavior end to end. The watchdog failure is reproduced; the precise reconnect transition is suspected, not established.

    Original event ordering and screenshots: #4365. Reproduction report: https://get-bb.github.io/reports/issues/4365.html. Prior linked work #4392 is not by itself proof that these remaining cases are fixed. Source closure means tracking consolidation only.

    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-reproprovider-claude-codeprovidersthreads

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions