Repository navigation
Description
Summary
A long-running Claude Code turn was interrupted after the execution host stopped receiving server heartbeat acknowledgements. BB displayed Thread interrupted because the connection to the host was lost and Please retry the thread to continue; the screenshot shows nearly seven hours of prior work. The transport failure is confirmed, but the reason acknowledgements stopped is not yet known.
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, providerclaude-code, model Opus 5.5 Medium - BB thread
thr_uxg8nhnedz, projectproj_khiw2za95v, environmentenv_fxan6jxik3(project checkout) - Source inspection against
mainatddb962879f5584604d37726024329a4b73c65c60
Steps to reproduce
These describe the observed incident; the initiating network/server condition has not been reproduced independently:
- Run a Claude Code turn on an enrolled host for several hours. The affected turn started at 2026-09-25 10:07:12 UTC.
- At 17:04:09 UTC, the host daemon logs
Server heartbeat acknowledgements stopped; reconnecting, thenDisconnected from serverwithreason=heartbeat-ack-timeout, close code1013. - The connection continues to drop/reconnect. At 17:05:15 UTC, inspect the thread timeline: it records an interrupted turn and the host-connection error shown below.
No preview action or daemon restart was established as the initiating event in this case.
Expected vs actual
Actual thread events, in order:
seq 4794 turn/completed status=interrupted
seq 4795 system/error code=thread_command_failed
Thread interrupted because the connection to the host was lost
Please retry the thread to continue.
seq 4796 system/thread/interrupted reason=host-daemon-restarted cause=host-connection-lost
Actual host log excerpt:
2026-09-25 17:04:09 UTC Server heartbeat acknowledgements stopped; reconnecting
2026-09-25 17:04:09 UTC Disconnected from server reason=heartbeat-ack-timeout code=1013
The screenshot shows the error and the interrupted long-running turn:
Expected: a transient heartbeat failure should be diagnosed and, where possible, preserve or recover in-flight work. If interruption is unavoidable, the error should expose the observed heartbeat timeout and leave the thread in an accurate retryable state. This report does not assume retrying the turn automatically is safe after possible workspace mutations.
Evidence and why this error is sent
When the daemon connection remains absent past the active-work disconnect grace period, the server interrupts active host threads with reason=host-daemon-restarted and cause=host-connection-lost: session-owner-side-effects.ts#L267-L285. That cause maps to the exact user-facing message and retry detail: thread-lifecycle.ts#L413-L445. The server appends the interrupted completion, system/error, and thread-interrupted event: thread-lifecycle.ts#L1734-L1837.
This explains why BB sends the error. It does not prove why heartbeat acknowledgements stopped; the available daemon log identifies the immediate transport timeout only.
What I ruled out
- The observed error is not a provider model error: the server generated
thread_command_failedafter host transport loss. - Agents die with the daemon: run bridge workers over a reconnectable transport so updates don't interrupt in-flight work #3143 concerns daemon restarts/self-updates killing agents; this incident's first recorded trigger was
heartbeat-ack-timeout, with no restart established. Remote previews return 504 and the host repeatedly reconnects #3407 also observed repeated heartbeat timeouts, but on a different host/deployment amid preview failures; no preview trigger is established here. A child interrupted by a host daemon disconnect never notifies its parent #3956 concerns missing parent notification for interrupted child threads. - I did not reproduce the transport failure on a running
mainbuild. The interruption path remains onmainat the commit above.
Suggested priority and effort
High impact when it occurs: one long-running turn stopped and required retry; any partially completed workspace mutations need inspection before retry. Cause and repair effort remain unknown.
Originating BB thread: thr_tcftpwzg3f.
AGENT GENERATED

Activity
brsbl commentedon Sep 25, 2026
Additional evidence from the same thread after the user stopped it:
AskUserQuestion(event 4790). The call contains a complete prompt about whether to override the one-review limit for PR Let users choose which quick actions thread rows show #4265 and two options,Run it (override)andSkip it. BB created pending interactionpint_nrz8h82hdx(event 4791).Server heartbeat acknowledgements stopped; reconnecting, thenDisconnected from serverwithreason=heartbeat-ack-timeout, code1013.interruptedwithHost daemon disconnected while awaiting user interaction; retry the thread to continue(event 4792).turn/completed status=interrupteduntil 17:05:15 UTC, after the later heartbeat timeout already described in the issue. The question tool call received its terminalitem/completed status=interruptedonly when the user manually stopped the thread at 21:07:39 UTC (events 4797–4799).This is a second confirmed heartbeat timeout in the same turn, occurring while Claude was awaiting an answer. It does not establish why heartbeat acknowledgements stopped. The question payload was stored correctly; any empty question/config display is downstream of that storage and still needs UI evidence.
bb-slop-cop commentedon Sep 25, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotPreserved Bug · High priority · Medium effort,
threads, andhost; addedpartial-repro.Reproduction report: PARTIALLY REPRODUCED, with low root-cause confidence. Existing trusted-main tests passed in two clean checkouts (29 tests each), exercising timeout-triggered reconnect and the subsequent connection-lost interruption events. The server interrupts active work after its disconnect grace expires; why acknowledgements stopped in the incident remains unknown.
No PR: the initiating failure was not reproduced, so no failing regression supports a safe contained fix. The report includes commands, test sources, logs, and the next diagnostic experiment.
Mark silent hosts offline without cancelling their work (get-bb#4271)