Repository navigation
Description
Summary
When the CLI cannot get a response from the daemon it prints:
No server response was received and your command did not run; re-run it.
That last clause is an assertion about state, and on at least one write verb it was false: one bb tasks create, retried eight times with every attempt reporting the failure, created eight tasks.
Measurement
bb 0.39.0, macOS, 15-minute load average 44 (the machine was heavily oversubscribed, which is the condition that produces the stall).
Eight byte-identical tasks, 3766-character descriptions, created 2026-08-27T04:36:45.834Z – 04:36:51.610Z. The retry loop was following the CLI's own instruction to re-run.
The reason this is worth reporting rather than shrugging at: the sensible operating advice for this message is to retry it, because it genuinely is the transient worth retrying (as opposed to bb is not running, or unknown command, which are not). A retry budget combined with a false did not run is a duplicate factory, and it is pointed precisely at the verbs that mutate state.
Nothing on the client side can compensate. A second create returns the same success line as the first — there is no idempotency key, no dedupe, and no warning — so the receipt cannot distinguish "this is the first one" from "this is the eighth".
What I am NOT claiming, because I went looking and it did not hold
This is not "bb write verbs land during a stall". Measured the same night on the same machine:
bb tasks comment, blind-retried ~26 times across four tickets, produced 35 comments with 35 distinct bodies and zero duplicates. Those loops break on rc=0, so an attempt that reported failure but had landed would leave a pair — there are none.- A memory-writing wrapper grew one record by 1986 then 1735 characters, exactly matching the two inputs it was handed.
- The memory store, audited across the same window: 105 records written in 24h straight through the stall windows, 0 live duplicate pairs, and no duplicate in the store's history attributable to a retry.
So one verb duplicated and three did not, on one machine, on one night.
What is not established
Whether the write lands on every such failure, or only when the daemon stalled after accepting the request. Both readings fit the evidence and I cannot separate them from outside:
- The eight rows span 5.776 seconds. Eight genuine attempts at the documented ~11s budget would span ~88 seconds. That is as consistent with requests queueing and being processed in a burst on recovery as with eight independently accepted writes.
- One caveat against reading the clean verbs as a negative result: bare
bb memory addmay simply never have been blind-retried through a stall on this machine, since nearly all memory writes here go through a wrapper that verifies its own read-back. That could be an untyped null rather than evidence of safety.
The ask, in preference order
- Do not assert that the command did not run, unless the CLI knows it. The failure is "no response was received", which is true and sufficient; the second clause is an inference that the client is not positioned to make. Changing the wording alone removes the trap, costs nothing, and needs no protocol change.
- If it is worth more: an idempotency key on the mutating verbs would make the advised retry actually safe rather than merely honest about its risk.
Related, same family of failure modes: #2382 (an errored plugin wearing the transient's message). Happy to supply the raw rows or re-run anything specific.
Activity
bb-slop-cop commentedon Aug 28, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotcli,tasks,no-reprono-reproMGrin commentedon Aug 29, 2026
Correcting my own evidence in this issue, from the same machine.
The measurement above — one
bb tasks create, eight retries, every attempt reportingdid not respond, eight rows created — cannot support the "every attempt reporteddid not respond" half. I recovered the original loop from the session transcript:The classifier is an alternation over two different failure shapes, and it printed only the word
transient— the raw output of every attempt was discarded. So the eight rows establish that eight write attempts landed while the CLI reported a failure; they do not establish which failure.The wall clock points away from the shape I named. The tool call ran
04:36:43.674Z -> 04:36:51.668Z— 7.994 seconds for all eight attempts, one synchronous shell loop, ~1.0s each (row deltas agree: 0.9, 0.6, 0.4, 2.1, 1.3, 0.5s). Adid not respondcosts ~10.9s on this machine (three probe attempts at 2s/4s/4s). Eight of those cannot occur in under 8 seconds.This also removes the alternative reading I offered — requests queued and processed in a burst on recovery — because the 7.994s is the caller's elapsed time, not the rows' creation span.
The likelier shape is
fetch failed: fast, matches the same grep, and separately documented on this machine as stored-then-wake-failed, where a retry duplicates.What still stands, on independent and cleaner evidence. A second thread here routed a single instance with no retry at all:
Two commands, nothing between them, no retry. The message was on the room. That is an existence proof that the sentence can be false — n=1, not a rate, and on
bb bus sendrather thantasks create.So the ask in this issue is unchanged and, I think, strengthened by being narrowed:
I would drop my claim about which transient shape produces it — that was never measured — and keep the request: do not tell the caller the command did not run when the client cannot know that. An idempotency key on write verbs would settle the practical half regardless of wording.
Apologies for the noise; the original framing was more confident than my instrument allowed.
MGrin commentedon Aug 29, 2026
Retracting the timing half of my previous comment. I tested the premise it rested on and it is false.
I argued that eight attempts in 7.994s could not be eight
did not respondreceipts, because that message costs ~10.9s. That figure is specific to one failure mode — a daemon that accepts the connection and never answers — and it is not a property of the message.Measured just now, pointing the real CLI at a server that accepts each connection and closes it immediately with no bytes (
BB_SERVER_URL, same technique as the ~10.9s reading):Byte-identical message, including
after 3 attempts (last window 4000ms), in ~1–2 seconds. The control is that the message names my fake port, soBB_SERVER_URLwas honoured.The ~10.9s is the timeout path: three attempts at 2s/4s/4s only cost that if each burns its full window. When the connection fails fast — closed rather than refused — all three attempts fail immediately, the CLI still reports "3 attempts (last window 4000ms)", and the whole thing is over in about a second.
So the observed ~1.0s per attempt in the eight-row incident is entirely consistent with
did not respond. My elimination was wrong, and with it the inference that the shape was more likelyfetch failed.What survives from that comment, unchanged: the loop classified with
grep -qE "did not respond|fetch failed"and printed only the wordtransient, so the raw output of every attempt was discarded and the evidence genuinely cannot say which shape occurred. That was always the stronger half. The timing was me trying to break a tie that the data cannot break.Net effect on this issue: the original report is in better shape than my correction suggested. The eight rows remain consistent with
did not respondlanding writes; they simply do not prove it, because the receipts were not kept.The ask is unchanged and I would now put it slightly more strongly, since a fast-failing connection reaches this message without the client ever waiting:
An idempotency key on write verbs would settle the practical half regardless of wording.
Apologies for the churn — two corrections on one issue in an hour is worse than one. The first was right about the instrument and wrong to go further than the instrument allowed; this one is the measurement I should have taken before posting.
SawyerHood commentedon Sep 9, 2026
Consolidating #2687 into this issue because both reports cite the same eight-task incident and request the same CLI timeout-wording change. The underlying defect remains disputed; consolidation is not confirmation.
Evidence corrections that must travel with the duplicate:
did not respondorfetch failed, while discarding raw per-attempt output. The eight stored tasks therefore do not establish which message accompanied the failures. The subsequent timing correction does not recover those missing receipts.Retain this issue for resolving that evidentiary discrepancy. A supported bug claim needs exact receipt/dispatch evidence from the affected version; a wording or idempotency proposal can be considered separately on its own merits. No new reproduction was performed for this consolidation.