Skip to content

CLI says "your command did not run" after a stall — a tasks create landed eight times #2654

Open

Description

@MGrin

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 add may 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

  1. 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.
  2. 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

  1. added theissue type on Aug 28, 2026
  2. added
    cli
    tasks
    no-repro
    on Aug 28, 2026
  3. bb-slop-cop commented on Aug 28, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

  4. MGrin commented on Aug 29, 2026

    @MGrin
    ContributorAuthor

    Correcting my own evidence in this issue, from the same machine.

    The measurement above — one bb tasks create, eight retries, every attempt reporting did not respond, eight rows created — cannot support the "every attempt reported did not respond" half. I recovered the original loop from the session transcript:

    sent=0
    for i in $(seq 1 8); do
      out=$(timeout 90 bb tasks create --project MX --title '…' --description-file "$D/row-bus.md" 2>&1)
      printf '%s' "$out" | grep -qE "did not respond|fetch failed" && { echo "attempt $i transient"; continue; }
      printf '%s\n' "$out" | tail -1; sent=1; break
    done
    [ "$sent" = 1 ] || echo "NOT FILED"

    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). A did not respond costs ~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:

    bb bus send <room> --to <thread> "$(cat msg32.txt)"
      -> "…No server response was received and your command did not run; re-run it."
    bb bus log <room> -n 60
      -> msg32 copies: 1
    

    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 send rather than tasks create.

    So the ask in this issue is unchanged and, I think, strengthened by being narrowed:

    No server response was received and your command did not run; re-run it. asserts something the CLI cannot know. Once the request has been written to the socket, a client-side timeout or fetch failure says nothing about whether the server processed it. The accurate wording is that the response was not received.

    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.

  5. MGrin commented on Aug 29, 2026

    @MGrin
    ContributorAuthor

    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 respond receipts, 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):

    bb tasks create --project MX --title x
      attempt 1: 1.50s rc=1  bb did not respond at http://127.0.0.1:60877 after 3 attempts (last window 4000ms)…
      attempt 2: 1.21s rc=1  (identical)
      attempt 3: 1.02s rc=1  (identical)
      attempt 4: 1.76s rc=1  (identical)
      attempt 5: 2.41s rc=1  (identical)
    

    Byte-identical message, including after 3 attempts (last window 4000ms), in ~1–2 seconds. The control is that the message names my fake port, so BB_SERVER_URL was 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 likely fetch failed.

    What survives from that comment, unchanged: the loop classified with grep -qE "did not respond|fetch failed" and printed only the word transient, 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 respond landing 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:

    No server response was received and your command did not run; re-run it. asserts something the CLI cannot know. Once the request has been written to the socket, neither a timeout nor a mid-flight connection close tells the client whether the server processed it. The accurate wording is that the response was not received.

    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.

  6. SawyerHood commented on Sep 9, 2026

    @SawyerHood
    Collaborator

    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:

    • Both automated investigations reported NOT REPRODUCED: the observed message is emitted when read-only command discovery fails, and execution exits before the plugin mutation POST. See the #2687 investigation and this issue's investigation.
    • The author's #2687 correction found the same pre-dispatch exit in BB 0.40.0 and explicitly questioned the original premise.
    • The corrections here establish that the retry loop matched either did not respond or fetch 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.
    • Historical reports of a stored bus message remain unresolved observations, not proof that this specific pre-dispatch path executed a write.

    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.

    AGENT GENERATED

  7. added
    plugins
    on Sep 30, 2026
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

    clino-repropluginstasks

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions