Skip to content

CLI asserts "your command did not run" on a timeout it cannot verify, and recommends re-running write verbs #2687

Closed as not planned

Description

@MGrin

bb <verb> reports this when the daemon accepts a connection and does not answer in time:

bb did not respond at <url> after N attempts (last window 4000ms) - it may be busy or
temporarily unreachable. No server response was received and your command did not run;
re-run it.

The sentence asserts two things and only the first is knowable at that point.

  • "No server response was received" - true by construction; the caller timed out.
  • "your command did not run" - a claim about server-side effect, made from the client, on the one code path where the client cannot know.

The composing function is reached from the transport error handler and has only the connection state (bb 0.40.0, host-daemon/dist/bb-chunks/chunk-65QXXV5S.js, the n||i branch). Whether the daemon accepted and processed the request before failing to reply is not in scope there.

Why it matters: it points a retry budget at write verbs

The message ends re-run it. For an idempotent read that is fine. For tasks create / bus send / memory add, a caller that believes "did not run" re-runs, and bb has no idempotency key, no dedupe, and no warning - a second create returns the same success line as the first.

Measured instance, 2026-08-27T04:36:45.834Z-04:36:51.610Z, bb 0.39.0, load average 44: one bb tasks create, eight retries, every one reporting did not respond - and eight tasks on the board, with byte-identical 3766-character descriptions. The eight rows span 5.776 seconds, where eight genuine ~11s attempts would span ~88s, so the requests appear to have queued and been processed in a burst on recovery.

It is not every failure - which is why the wording, not the behaviour, is the ask

Measured on the same machine 2026-08-29 03:0x-03:17Z under load, each verified by reading the stored artifact rather than the receipt:

verb failures reported actually stored
bb tasks comment 1 0
bb bus send --to 3 0
bb bus send --to 1 1

Same verb in both bus cases, opposite outcomes. That is consistent with two distinct failure points - never accepted vs accepted-then-lost-the-response - and inconsistent with any rule keyed on the verb. So the client genuinely cannot tell, which is exactly why it should not assert.

Suggested change

Drop the unknowable clause:

bb did not respond at <url> after N attempts (last window 4000ms) - it may be busy or
temporarily unreachable. No server response was received, so the command MAY OR MAY NOT
have run; check before re-running.

That is true in all five cases above and in the eight-task instance. It costs nothing when the command did not run, and it stops the message actively recommending the action that duplicates state.

An idempotency key on write verbs would be the stronger fix, but the wording is independently worth having and is a one-line change.

Verification

  • Sentence present in the shipped 0.40.0 bundle: grep -c 'your command did not run' against the chunk above returns 1.
  • Measurements are from a single macOS machine running agent sessions against a heavily loaded daemon (10 cores, load 44 at the time of the eight-task instance); the duplicate rows are still on that board.
  • Not re-measured on 0.40.0 - only the wording was confirmed unchanged there.

Related: #1218 and #1313 classify and retry the probe; this is about the sentence emitted once classification has already concluded the daemon is unreachable.

Activity

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

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

  4. MGrin commented on Aug 29, 2026

    @MGrin
    ContributorAuthor

    Correcting my own report: I read the 0.40.0 control flow and it appears to contradict the premise I filed this under. Posting before anyone spends time on it.

    In the shipped 0.40.0 bundle (host-daemon/dist/bb), the CLI dispatch path is:

    const i = await e.fetchPluginCliContributions(t());              // 1. contributions PROBE
    if (i.outcome === "unreachable") {
      console.error(e.describeUnreachableServer(t(), i.cause, i.lastTimeoutMs, i.attempts));
      process.exit(1);                                                // 2. message, then EXIT
    }
    if (i.outcome === "invalid") return;
    const n = e.findPluginCliCommand(i.contributions, o);
    ...
    process.exit(await e.runPluginCliCommand(t(), n.pluginId, process.argv.slice(3)));  // 3. DISPATCH

    describeUnreachableServer has one call site, it is reached only on outcome === "unreachable" from the probe, and it is followed immediately by process.exit(1). runPluginCliCommand — the only thing that POSTs /plugins/:id/cli — is not reachable from that branch.

    I also checked the two obvious escapes:

    • the literal sentence appears in exactly one file in the whole app (bb-chunks/chunk-65QXXV5S.js);
    • the other importer of runPluginCliCommand is bb plugin run <id>, which dispatches without probing and so cannot emit this message.

    If that reading is right, then when bb <command> prints this, the POST was never sent, and "your command did not run" is TRUE — which is the opposite of what I filed.

    What I cannot reconcile, and am not going to paper over. The observations behind the report are real and were taken on 0.39.0, not 0.40.0: one bb tasks create retried 8 times, every attempt reporting this message, and 8 tasks on the board with byte-identical descriptions. The rows exist. A separate session also measured a bb bus send that reported the message and did store.

    So either the control flow differed on 0.39.0, or something in those runs was not what it looked like. I have no 0.39.0 to test and will not claim which.

    Two things that may still be worth having regardless of how that resolves:

    1. The dispatch fetch passes no AbortSignal and uses a dedicated agent with PLUGIN_CLI_HEADERS_TIMEOUT_MS = 3_900_000 (65 min), while the server handler does ctx.signal = context.req.raw.signal and awaits the plugin before serialising the response. So a client that gives up mid-dispatch has no bounded, self-describing failure — that is a different gap from the one I filed, and I mention it only as an observation, not a second ask.
    2. If 0.40.0 genuinely restructured this, the fix may already have shipped and this issue can be closed as resolved rather than accepted. I would rather it be closed for the right reason than left open on a premise I can no longer support.

    Happy to run any specific check against 0.40.0 locally if that would help settle it.

  5. SawyerHood commented on Sep 9, 2026

    @SawyerHood
    Collaborator

    Duplicate of #2654.

    Consolidating tracking into #2654. The underlying timeout claim remains disputed; the canonical consolidation comment preserves the negative reproductions and author corrections.

    Closing this duplicate does not indicate that the underlying work is completed.

    AGENT GENERATED

  6. added
    duplicate
    on Sep 9, 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

    cliduplicateno-repro

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions