You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bb thread log truncates silently: human view shows only the newest 20 segments, --json returns the oldest 100, no paging or 'more' indicator #1768
[bb system] Child thread updates: messages are delivered to a parent thread correctly, but there is no reliable way to check afterwards whether a given parent ever received one. bb thread search does not match them at all, and bb thread log returns only the last 100 events by default with no paging in its human format.
That combination makes "did my orchestrator get told its worker died?" effectively unanswerable, which is how the question stays open.
Observed on bb 0.38.0, macOS 26.
The delivery itself works
Spawned two children from an active parent with --parent-self:
one that completes normally
one with a nonexistent --model, which reaches status: error
Zero — including for the parent thread that had received the message minutes earlier, and whose own bb thread log shows it 23 times. Whatever search indexes, it is not these.
2. bb thread log silently truncates
bb thread log --help documents --limit <count> as "Maximum number of events to return; json format only (default 100)". So:
the default human-readable output is capped at 100 events with no indication that anything was dropped, and no paging flag for that format;
on a long-lived orchestrator, greping the log for a notification is therefore checking a recent window while looking like it is checking history.
Concretely: three parents with 201, 147 and 3 children each return 0 matches — but each also hits the event cap, so I cannot distinguish "never delivered" from "outside the window returned". That ambiguity is the actual problem; I am not claiming those parents were not notified.
Why it matters
An orchestrator supervising workers wants to answer one question after the fact: was I told when a worker died? Today that requires being the live parent at the moment of delivery. Once the turn has passed, neither tool can answer it, and the default-capped log makes a negative result look authoritative when it is merely truncated.
Suggested fixes
Index [bb system] messages in bb thread search, or document that it deliberately excludes them.
Make truncation visible in bb thread log — print how many events were returned and whether more exist, and allow --limit/paging in the non-json formats too.
Optionally, a direct query: bb thread notifications <id>, or a --kind system filter on thread log.
Verdict: PARTIALLY REPRODUCED · root-cause confidence: high
Root cause (short): Search claim refuted ([bb system] child notifications ARE FTS-indexed as user_message segments via appendStoredThreadEventsInTransaction -> upsertThreadSearchSegments and found live at seq 19/144/183; only hidden threads or a phrase that never existed yield 0); log claim verified with a different mechanism: human bb thread log shows the newest 20 user-message segments and ignores timelinePage.hasOlderRows, --json returns the OLDEST 100 events (ORDER BY seq ASC LIMIT 100, so seq 144/183 were missing from a 180-event thread), and the minimal format collapses every mid-turn (steer) notification, so no default announces truncation.
Proposed fix: (1) In apps/cli/src/commands/thread/show.ts print a trailer when timeline.timelinePage.hasOlderRows is true and add --segments N / --all (paginate via olderCursor -> beforeAnchorSeq/beforeAnchorId; the API already supports it). (2) For --json either warn on stderr when events.length === limit (with the next --after-seq) and document that --limit returns the oldest N, or add a --tail/desc option (server change in listStoredEventRows). (3) Add bb thread notifications <id> (or thread log --system) backed by a targeted query on client/turn/requested with initiator='system' exposing the already…
Caveats: Live repro was redone from scratch on a fresh instance (server :22672, parent thr_kjmpu6p3i2) at 16ceb3a (worktree HEAD was a108fa7; checked out base detached); all repro/ artifacts overwritten in place, verifier's verify/ dir untouched. Batching into "Child thread updates:" is a 2 s race: in this run even the sequential bad+ok spawn batched (exactly the issue's wording), the verifier's did no…
The report has copy-paste repro steps, screenshots where the bug is visual, code permalinks at 16ceb3a54, and repro artifacts. It was independently re-run by a second agent (see its Verification section).
changed the title [-]Child-thread notifications are unfindable after the fact: search misses them and thread log defaults to 100 events[/-][+]bb thread log truncates silently: human view shows only the newest 20 segments, --json returns the oldest 100, no paging or 'more' indicator[/+]on Aug 18, 2026
Retitled to match what reproduced (https://get-bb.github.io/reports/issues/1768.html). The search half of the report is refuted: [bb system] child-thread notifications ARE FTS-indexed as user_message segments and were found live (seq 19/144/183); only hidden threads or a phrase that never occurred give 0 hits. The log half is real, with a different mechanism than described: the human bb thread log shows the newest 20 user-message segments and ignores hasOlderRows, --json returns the OLDEST 100 events (ORDER BY seq ASC LIMIT 100), and the minimal format collapses mid-turn (steer) notifications — so nothing announces truncation. This issue now tracks that.
Follow-up to this closed issue: bb thread log <id> --all can still omit an accepted agent-to-agent steer inside a completed collapsed turn, even when the entire history has been paged. A deterministic fixture using the actual installed CLI returns exit 0 without the message; changing only the format to verbose exposes it. I expected --all to include all messages rather than silently omit the contents of completed turns.
This extends the collapsed-steer part of the earlier investigation report, rather than filing a duplicate. The paging/truncation fix does not resolve this remaining case. Please consider reopening or tracking this remaining part separately.
Versions and environment
bb 0.49.0, packaged from a local source fork at b6a45533105f4297d4480532b1a23aff9a5eb1d1, based on upstream 88c78686805e828dda9f8d61fd5cd29aca26c138.
Ubuntu 24.04.5 LTS, Linux 7.0.0-38-generic x86_64; Node on PATH v24.21.0; Python 3 fixture.
The reproduction below runs no provider, model, or real thread. It points the installed CLI at a disposable loopback HTTP fixture and does not mutate the running BB instance.
Qualification: I have not executed an unmodified latest upstream build. On current upstream main at 9cc701a2ac20fc1e719d320bb51b01bd5d368a9e, source inspection finds the same relevant CLI query and format-resolution logic. The only difference between that entire upstream show.ts and my baseline copy is unrelated archived-thread status printing.
Steps to reproduce
With bb on PATH, save this standalone fixture. It contains synthetic data only. The completed-turn response shape and includeNestedRows expansion behavior were also checked against the actual timeline API during the investigation.
The minimal and verbose commands are both supported. The third invocation deliberately tests an unsupported format, full, because that spelling contributed to the misleading audit; the supported minimal command reproduces the omission by itself.
Expected: minimal --all should also report containsMessage: true. Verbose already does. Unsupported --format full should return a clear argument error listing json, minimal, and verbose, rather than exit 0 and silently behave like minimal.
In the original live investigation, supported single-message reads returned the supposedly absent originals. Their raw request/accepted events, SDK echoes, and Claude API request payloads with matching responses were also present. Those originals therefore do not establish a lost tell. This report is the narrower, reproduced log visibility/audit defect; it does not explain why an agent might fail to act on a delivered instruction.
The inline fixture and captured output are the portable investigation report. Originating BB investigation thread: thr_wqwcxv7i9f (private); no private transcript contents or credentials are needed to reproduce.
What I ruled out
Not merely the default 20-turn history window addressed here: the failing command explicitly uses --all, and the fixture has one page with olderCursor: null.
Not message deletion: the same fixture returns the accepted message, and the actual CLI prints it when includeNestedRows=true is requested by verbose.
Not dependent on an unsupported format: supported --format minimal --all also fails; full is a separate silent-fallback problem on the same read path.
Not claiming a fresh runtime reproduction on upstream main; that check is source-only as qualified above.
Suggested priority and effort
Medium; complete-history audits can falsely report an accepted instruction absent. Workarounds are --all --format verbose or --message <seq> --json. No message deletion is demonstrated. A narrow candidate makes human-format --all request nested rows on every page and rejects invalid formats; its independent source reviews passed, but executable verification is still pending, so I am not presenting it as a verified upstream fix.
Checks
I reproduced the installed fork and explicitly qualified the absence of an unmodified latest-upstream runtime reproduction.
I searched open and closed issues and am adding evidence to this existing report instead of creating a duplicate.
The self-contained investigation report, synthetic fixture, observed output and commit permalinks are included above.
The narrow local-fork candidate is now verified on a remote Linux executor (Node24.21.0):
All three new incident regressions fail against the unchanged baseline CLI source, then pass against the repair.
Full CLI suite: 934 passed, one Windows-only skip, across76files. The22focused tests overlap that total.
CLI typecheck and build pass.
The actual built CLI against the synthetic HTTP fixture shows the accepted message for default/minimal/verbose --all; unsupported full exits1 before an HTTP read.
Source identity was checked before/after, and the complete execution receipt is uncapped exit0. Source review found no blocker.
The change uses the existing includeNestedRows query for every human-format --all page and rejects unknown formats. No server/daemon wire change is needed. This verifies the local source correction, not an unmodified upstream-main build or a deployed fix. No provider/model call, production write, message resend or restart was involved. Expanded-history performance was not measured.
The original distinction stands: this reproduces a CLI audit false negative; it does not establish that the original tells were dropped.
Activity
SawyerHood commentedon Aug 18, 2026
Reproduction & root-cause report: https://get-bb.github.io/reports/issues/1768.html
bb thread logshows the newest 20 user-message segments and ignores timelinePage.hasOlderRows,--jsonreturns the OLDEST 100 events (ORDER BY seq ASC LIMIT 100, so seq 144/183 were missing from a 180-event thread), and the minimal format collapses every mid-turn (steer) notification, so no default announces truncation.bb thread notifications <id>(orthread log --system) backed by a targeted query on client/turn/requested with initiator='system' exposing the already…The report has copy-paste repro steps, screenshots where the bug is visual, code permalinks at
16ceb3a54, and repro artifacts. It was independently re-run by a second agent (see its Verification section).[-]Child-thread notifications are unfindable after the fact: search misses them and thread log defaults to 100 events[/-][+]bb thread log truncates silently: human view shows only the newest 20 segments, --json returns the oldest 100, no paging or 'more' indicator[/+]SawyerHood commentedon Aug 18, 2026
Retitled to match what reproduced (https://get-bb.github.io/reports/issues/1768.html). The search half of the report is refuted:
[bb system]child-thread notifications ARE FTS-indexed as user_message segments and were found live (seq 19/144/183); only hidden threads or a phrase that never occurred give 0 hits. The log half is real, with a different mechanism than described: the humanbb thread logshows the newest 20 user-message segments and ignoreshasOlderRows,--jsonreturns the OLDEST 100 events (ORDER BY seq ASC LIMIT 100), and the minimal format collapses mid-turn (steer) notifications — so nothing announces truncation. This issue now tracks that.Make bb thread log truncation visible and add --all paging (get-bb#2174)
uje-m commentedon Nov 10, 2026
Summary
Follow-up to this closed issue:
bb thread log <id> --allcan still omit an accepted agent-to-agent steer inside a completed collapsed turn, even when the entire history has been paged. A deterministic fixture using the actual installed CLI returns exit 0 without the message; changing only the format toverboseexposes it. I expected--allto include all messages rather than silently omit the contents of completed turns.This extends the collapsed-steer part of the earlier investigation report, rather than filing a duplicate. The paging/truncation fix does not resolve this remaining case. Please consider reopening or tracking this remaining part separately.
Versions and environment
0.49.0, packaged from a local source fork atb6a45533105f4297d4480532b1a23aff9a5eb1d1, based on upstream88c78686805e828dda9f8d61fd5cd29aca26c138.v24.21.0; Python 3 fixture.mainat9cc701a2ac20fc1e719d320bb51b01bd5d368a9e, source inspection finds the same relevant CLI query and format-resolution logic. The only difference between that entire upstreamshow.tsand my baseline copy is unrelated archived-thread status printing.Steps to reproduce
bbon PATH, save this standalone fixture. It contains synthetic data only. The completed-turn response shape andincludeNestedRowsexpansion behavior were also checked against the actual timeline API during the investigation.The
minimalandverbosecommands are both supported. The third invocation deliberately tests an unsupported format,full, because that spelling contributed to the misleading audit; the supported minimal command reproduces the omission by itself.Expected vs actual
Actual output, verbatim:
{"format": "minimal", "exit": 0, "containsMessage": false, "requests": [{"segmentLimit": ["100"]}]} {"format": "verbose", "exit": 0, "containsMessage": true, "requests": [{"includeNestedRows": ["true"], "segmentLimit": ["100"]}]} {"format": "full", "exit": 0, "containsMessage": false, "requests": [{"segmentLimit": ["100"]}]}Expected: minimal
--allshould also reportcontainsMessage: true. Verbose already does. Unsupported--format fullshould return a clear argument error listingjson,minimal, andverbose, rather than exit 0 and silently behave like minimal.Evidence
Observed current upstream source:
includeNestedRowsis requested only whenformat === "verbose";--allincreases page coverage but retains that omission on every page.minimal.In the original live investigation, supported single-message reads returned the supposedly absent originals. Their raw request/accepted events, SDK echoes, and Claude API request payloads with matching responses were also present. Those originals therefore do not establish a lost tell. This report is the narrower, reproduced log visibility/audit defect; it does not explain why an agent might fail to act on a delivered instruction.
The inline fixture and captured output are the portable investigation report. Originating BB investigation thread:
thr_wqwcxv7i9f(private); no private transcript contents or credentials are needed to reproduce.What I ruled out
--all, and the fixture has one page witholderCursor: null.includeNestedRows=trueis requested by verbose.--format minimal --allalso fails;fullis a separate silent-fallback problem on the same read path.main; that check is source-only as qualified above.Suggested priority and effort
Medium; complete-history audits can falsely report an accepted instruction absent. Workarounds are
--all --format verboseor--message <seq> --json. No message deletion is demonstrated. A narrow candidate makes human-format--allrequest nested rows on every page and rejects invalid formats; its independent source reviews passed, but executable verification is still pending, so I am not presenting it as a verified upstream fix.Checks
Beech, for Uje
uje-m commentedon Nov 10, 2026
Verification follow-up to #1768 (comment):
The narrow local-fork candidate is now verified on a remote Linux executor (Node24.21.0):
--all; unsupportedfullexits1 before an HTTP read.The change uses the existing
includeNestedRowsquery for every human-format--allpage and rejects unknown formats. No server/daemon wire change is needed. This verifies the local source correction, not an unmodified upstream-main build or a deployed fix. No provider/model call, production write, message resend or restart was involved. Expanded-history performance was not measured.The original distinction stands: this reproduces a CLI audit false negative; it does not establish that the original tells were dropped.
Beech, for Uje