Reports

#5824 · Notification preview block filtering

BugPriority: LowEffort: LowremoteIssue

2026-10-20 · trusted origin/main: 7e4232ef241b5cdfb7d272cee044fe6f82702c70

Verdict: REPRODUCED · Root-cause confidence: high · reproduction label: confirmed-repro

1. TL;DR

The notification text builder can select app-only markup instead of a later readable sentence. Five synthetic cases fail against unchanged main: a leading directive, a leading table, a JSON object, a JSON array, and a directive-only reply that should allow the existing fallback. Three controls pass. The same eight cases produce the same five failures in a second clean checkout tested by the same agent. Existing notification tests all pass because their preview coverage does not exercise these block forms.

2. Claims vs findings

ClaimStatusEvidence
App directives can become the notification preview.Verified genericallyA registered inline-vis directive is returned verbatim. This test uses trusted repository syntax, not the issue script. The page plugin itself was not installed or invoked.
A leading Markdown table or raw JSON hides the subsequent summary.VerifiedTable, JSON object, and JSON array assertions fail at the text-building boundary.
Markup-only replies should leave the existing fallback available.Verified defectDirective-only input returns nonempty markup; the sender uses its fallback only for an empty preview.
Mobile, web, and desktop share the result.Verified in source, not live deliveryThe same sender body is published to the web/desktop channel and copied into Expo messages.
Production frequency and a particular phone notification appearance.UnverifiedNo user runtime data or devices were accessed.

3. Environment

4. Minimal reproduction

  1. Clone trusted main and verify the recorded commit.
  2. Save the entire Complete test block below as /tmp/5824-preview.test.mjs and run the Node command below from that checkout. The pure-module reproduction does not require dependency installation.
  3. Expect exit 1, five failing assertions, and three passing controls. Exit 1 here is the bug evidence, not a setup failure.
BB_REPRO_CHECKOUT="$PWD" node --experimental-strip-types --test --test-reporter=tap /tmp/5824-preview.test.mjs

The complete regression reproduction and captured output are inline in this self-contained report. No screenshots are supplied: this reproduction measures incorrect string selection, not layout, and does not pretend to capture a real device notification.

CaseExpected previewActual preview
leading app directive does not replace the readable summary"The service is ready.""::inline-vis{file=\"status.html\"}"
leading GFM table does not replace the readable summary"The queue is clear.""| Check | Status | | --- | --- | | Queue | Empty |"
leading JSON object does not replace the readable summary"No work remains.""{ \"pending\": 0 }"
leading JSON array does not replace the readable summary"Both workers are ready.""[\"ready\", \"idle\"]"
directive-only content leaves the sender fallback available"""::inline-vis{file=\"status.html\"}"
existing heading and code fence filtering remains intact"Everything is ready.""Everything is ready."
ordinary first-paragraph prose and inline formatting remain intact"The service is ready. All checks passed.""The service is ready. All checks passed."
empty input leaves the sender fallback available""""

Complete test

import assert from "node:assert/strict";
import path from "node:path";
import test from "node:test";
import { pathToFileURL } from "node:url";

const checkout = process.env.BB_REPRO_CHECKOUT;
assert.ok(checkout, "Set BB_REPRO_CHECKOUT to a trusted main checkout");
const moduleUrl = pathToFileURL(
  path.join(checkout, "plugins/push-notifications/notification-text.ts"),
);
const { notificationPreviewText } = await import(moduleUrl.href);

const cases = [
  {
    name: "leading app directive does not replace the readable summary",
    source: '::inline-vis{file="status.html"}\n\nThe service is ready.',
    expected: "The service is ready.",
  },
  {
    name: "leading GFM table does not replace the readable summary",
    source: "| Check | Status |\n| --- | --- |\n| Queue | Empty |\n\nThe queue is clear.",
    expected: "The queue is clear.",
  },
  {
    name: "leading JSON object does not replace the readable summary",
    source: '{\n  "pending": 0\n}\n\nNo work remains.',
    expected: "No work remains.",
  },
  {
    name: "leading JSON array does not replace the readable summary",
    source: '["ready", "idle"]\n\nBoth workers are ready.',
    expected: "Both workers are ready.",
  },
  {
    name: "directive-only content leaves the sender fallback available",
    source: '::inline-vis{file="status.html"}',
    expected: "",
  },
  {
    name: "existing heading and code fence filtering remains intact",
    source: "## Checks\n\n~~~json\n{\"pending\":0}\n~~~\n\nEverything is ready.",
    expected: "Everything is ready.",
  },
  {
    name: "ordinary first-paragraph prose and inline formatting remain intact",
    source: "The **service** is ready.\nAll checks passed.\n\nMore detail follows.",
    expected: "The service is ready. All checks passed.",
  },
  {
    name: "empty input leaves the sender fallback available",
    source: "",
    expected: "",
  },
];

for (const scenario of cases) {
  test(scenario.name, async () => {
    const actual = await notificationPreviewText(scenario.source, async () => null);
    console.log(JSON.stringify({ name: scenario.name, expected: scenario.expected, actual }));
    assert.equal(actual, scenario.expected);
  });
}

5. Root cause

firstParagraph, lines 13–35, recognizes fences, headings, horizontal rules, and blank lines but treats all other nonempty lines as prose. It joins those lines and returns the first such paragraph, so later prose is never considered. Inline Markdown cleanup and notificationPreviewText do not recognize structured blocks either.

const text = line.replace(BLOCK_MARKER_PATTERN, "").trim();
...
lines.push(text);
...
return lines.join(" ");

The app recognizes the leaf marker separately in markdown-message-directives.tsx; registered inline-vis syntax is exercised in the trusted inline-vis tests. The notification path does not use that block interpretation.

Sender lines 349–380 compute one body using preview || FALLBACK_BODIES[resolved.kind], then reuse it for both delivery paths. A directive-only preview is truthy, so the existing turn-finished fallback cannot apply.

The trusted existing preview test at server.test.ts lines 492–525 covers headings, inline formatting, and thread references, not these block forms.

6. Proposed fix

Keep the change inside the notification text subsystem: skip standalone app directives and recognized table blocks, ignore complete valid JSON object/array paragraphs, and continue looking for readable prose. Return an empty string if none remains, preserving the existing sender fallback. Preserve prose, thread references, fences, and inline formatting. Avoid treating every pipe-prefixed prose line as a table or discarding malformed JSON-like prose.

No production fix was made here: GitHub metadata confirms ready, open PR #5825 already closes this issue. The duplicate-PR guard therefore stops fix work before creating a branch.

7. Linked PR review — static only

PR #5825 at head bcce0a6b90358730e9bc653575d40629adb6d45f was read as untrusted metadata and diff only. Its branch, patch, and tests were never checked out, applied, or executed. The diff replaces the first-paragraph collector with a paragraph iterator, adds directive/table exclusion, parses JSON container candidates, and adds a sender regression test.

Verdict: statically aligned with the verified root cause for the observed inputs, but not runtime-verified or approved by this report. Review caveat: its pipe-prefix table heuristic is broader than valid GFM tables and narrower than optional-leading-pipe table syntax. That is a static coverage consideration, not a separately reproduced PR regression.

8. Verification — second clean checkout

The same agent created a second, non-hardlinked clone at the exact trusted base commit, confirmed empty git status --porcelain, and reran the same newly authored test against that clone's untouched module. No dependency installation, shared generated outputs, ports, or runtime data were needed. Result: exit 1; 8 tests; 3 pass; 5 fail, matching the first run. Both production trees remain clean. No report correction was required. This is a repeated clean reproduction, not independent verification.

First run: captured TAP output
TAP version 13
# {"name":"leading app directive does not replace the readable summary","expected":"The service is ready.","actual":"::inline-vis{file=\\"status.html\\"}"}
# {"name":"leading GFM table does not replace the readable summary","expected":"The queue is clear.","actual":"| Check | Status | | --- | --- | | Queue | Empty |"}
# {"name":"leading JSON object does not replace the readable summary","expected":"No work remains.","actual":"{ \\"pending\\": 0 }"}
# {"name":"leading JSON array does not replace the readable summary","expected":"Both workers are ready.","actual":"[\\"ready\\", \\"idle\\"]"}
# {"name":"directive-only content leaves the sender fallback available","expected":"","actual":"::inline-vis{file=\\"status.html\\"}"}
# {"name":"existing heading and code fence filtering remains intact","expected":"Everything is ready.","actual":"Everything is ready."}
# {"name":"ordinary first-paragraph prose and inline formatting remain intact","expected":"The service is ready. All checks passed.","actual":"The service is ready. All checks passed."}
# {"name":"empty input leaves the sender fallback available","expected":"","actual":""}
# Subtest: leading app directive does not replace the readable summary
not ok 1 - leading app directive does not replace the readable summary
  ---
  duration_ms: 2.594169
  type: 'test'
  location: 'REPORTS/issues/5824/repro/preview.test.mjs:57:3'
  failureType: 'testCodeFailure'
  error: |-
    Expected values to be strictly equal:
    + actual - expected
    
    + '::inline-vis{file="status.html"}'
    - 'The service is ready.'
    
  code: 'ERR_ASSERTION'
  name: 'AssertionError'
  expected: 'The service is ready.'
  actual: '::inline-vis{file="status.html"}'
  operator: 'strictEqual'
  stack: |-
    TestContext.<anonymous> (file://REPORTS/issues/5824/repro/preview.test.mjs:60:12)
    async Test.run (node:internal/test_runner/test:1054:7)
    async startSubtestAfterBootstrap (node:internal/test_runner/harness:296:3)
  ...
# Subtest: leading GFM table does not replace the readable summary
not ok 2 - leading GFM table does not replace the readable summary
  ---
  duration_ms: 0.429509
  type: 'test'
  location: 'REPORTS/issues/5824/repro/preview.test.mjs:57:3'
  failureType: 'testCodeFailure'
  error: |-
    Expected values to be strictly equal:
    + actual - expected
    
    + '| Check | Status | | --- | --- | | Queue | Empty |'
    - 'The queue is clear.'
    
  code: 'ERR_ASSERTION'
  name: 'AssertionError'
  expected: 'The queue is clear.'
  actual: '| Check | Status | | --- | --- | | Queue | Empty |'
  operator: 'strictEqual'
  stack: |-
    TestContext.<anonymous> (file://REPORTS/issues/5824/repro/preview.test.mjs:60:12)
    async Test.run (node:internal/test_runner/test:1054:7)
    async Test.processPendingSubtests (node:internal/test_runner/test:744:7)
  ...
# Subtest: leading JSON object does not replace the readable summary
not ok 3 - leading JSON object does not replace the readable summary
  ---
  duration_ms: 0.263839
  type: 'test'
  location: 'REPORTS/issues/5824/repro/preview.test.mjs:57:3'
  failureType: 'testCodeFailure'
  error: |-
    Expected values to be strictly equal:
    + actual - expected
    
    + '{ "pending": 0 }'
    - 'No work remains.'
    
  code: 'ERR_ASSERTION'
  name: 'AssertionError'
  expected: 'No work remains.'
  actual: '{ "pending": 0 }'
  operator: 'strictEqual'
  stack: |-
    TestContext.<anonymous> (file://REPORTS/issues/5824/repro/preview.test.mjs:60:12)
    async Test.run (node:internal/test_runner/test:1054:7)
    async Test.processPendingSubtests (node:internal/test_runner/test:744:7)
  ...
# Subtest: leading JSON array does not replace the readable summary
not ok 4 - leading JSON array does not replace the readable summary
  ---
  duration_ms: 0.281789
  type: 'test'
  location: 'REPORTS/issues/5824/repro/preview.test.mjs:57:3'
  failureType: 'testCodeFailure'
  error: |-
    Expected values to be strictly equal:
    + actual - expected
    
    + '["ready", "idle"]'
    - 'Both workers are ready.'
    
  code: 'ERR_ASSERTION'
  name: 'AssertionError'
  expected: 'Both workers are ready.'
  actual: '["ready", "idle"]'
  operator: 'strictEqual'
  stack: |-
    TestContext.<anonymous> (file://REPORTS/issues/5824/repro/preview.test.mjs:60:12)
    async Test.run (node:internal/test_runner/test:1054:7)
    async Test.processPendingSubtests (node:internal/test_runner/test:744:7)
  ...
# Subtest: directive-only content leaves the sender fallback available
not ok 5 - directive-only content leaves the sender fallback available
  ---
  duration_ms: 0.226199
  type: 'test'
  location: 'REPORTS/issues/5824/repro/preview.test.mjs:57:3'
  failureType: 'testCodeFailure'
  error: |-
    Expected values to be strictly equal:
    + actual - expected
    
    + '::inline-vis{file="status.html"}'
    - ''
    
  code: 'ERR_ASSERTION'
  name: 'AssertionError'
  expected: ''
  actual: '::inline-vis{file="status.html"}'
  operator: 'strictEqual'
  stack: |-
    TestContext.<anonymous> (file://REPORTS/issues/5824/repro/preview.test.mjs:60:12)
    async Test.run (node:internal/test_runner/test:1054:7)
    async Test.processPendingSubtests (node:internal/test_runner/test:744:7)
  ...
# Subtest: existing heading and code fence filtering remains intact
ok 6 - existing heading and code fence filtering remains intact
  ---
  duration_ms: 0.192039
  type: 'test'
  ...
# Subtest: ordinary first-paragraph prose and inline formatting remain intact
ok 7 - ordinary first-paragraph prose and inline formatting remain intact
  ---
  duration_ms: 0.14744
  type: 'test'
  ...
# Subtest: empty input leaves the sender fallback available
ok 8 - empty input leaves the sender fallback available
  ---
  duration_ms: 0.130059
  type: 'test'
  ...
1..8
# tests 8
# suites 0
# pass 3
# fail 5
# cancelled 0
# skipped 0
# todo 0
# duration_ms 143.346258
Second clean run: captured TAP output
TAP version 13
# {"name":"leading app directive does not replace the readable summary","expected":"The service is ready.","actual":"::inline-vis{file=\\"status.html\\"}"}
# {"name":"leading GFM table does not replace the readable summary","expected":"The queue is clear.","actual":"| Check | Status | | --- | --- | | Queue | Empty |"}
# {"name":"leading JSON object does not replace the readable summary","expected":"No work remains.","actual":"{ \\"pending\\": 0 }"}
# {"name":"leading JSON array does not replace the readable summary","expected":"Both workers are ready.","actual":"[\\"ready\\", \\"idle\\"]"}
# {"name":"directive-only content leaves the sender fallback available","expected":"","actual":"::inline-vis{file=\\"status.html\\"}"}
# {"name":"existing heading and code fence filtering remains intact","expected":"Everything is ready.","actual":"Everything is ready."}
# {"name":"ordinary first-paragraph prose and inline formatting remain intact","expected":"The service is ready. All checks passed.","actual":"The service is ready. All checks passed."}
# {"name":"empty input leaves the sender fallback available","expected":"","actual":""}
# Subtest: leading app directive does not replace the readable summary
not ok 1 - leading app directive does not replace the readable summary
  ---
  duration_ms: 2.59196
  type: 'test'
  location: 'REPORTS/issues/5824/repro/preview.test.mjs:57:3'
  failureType: 'testCodeFailure'
  error: |-
    Expected values to be strictly equal:
    + actual - expected
    
    + '::inline-vis{file="status.html"}'
    - 'The service is ready.'
    
  code: 'ERR_ASSERTION'
  name: 'AssertionError'
  expected: 'The service is ready.'
  actual: '::inline-vis{file="status.html"}'
  operator: 'strictEqual'
  stack: |-
    TestContext.<anonymous> (file://REPORTS/issues/5824/repro/preview.test.mjs:60:12)
    async Test.run (node:internal/test_runner/test:1054:7)
    async startSubtestAfterBootstrap (node:internal/test_runner/harness:296:3)
  ...
# Subtest: leading GFM table does not replace the readable summary
not ok 2 - leading GFM table does not replace the readable summary
  ---
  duration_ms: 0.435558
  type: 'test'
  location: 'REPORTS/issues/5824/repro/preview.test.mjs:57:3'
  failureType: 'testCodeFailure'
  error: |-
    Expected values to be strictly equal:
    + actual - expected
    
    + '| Check | Status | | --- | --- | | Queue | Empty |'
    - 'The queue is clear.'
    
  code: 'ERR_ASSERTION'
  name: 'AssertionError'
  expected: 'The queue is clear.'
  actual: '| Check | Status | | --- | --- | | Queue | Empty |'
  operator: 'strictEqual'
  stack: |-
    TestContext.<anonymous> (file://REPORTS/issues/5824/repro/preview.test.mjs:60:12)
    async Test.run (node:internal/test_runner/test:1054:7)
    async Test.processPendingSubtests (node:internal/test_runner/test:744:7)
  ...
# Subtest: leading JSON object does not replace the readable summary
not ok 3 - leading JSON object does not replace the readable summary
  ---
  duration_ms: 0.239469
  type: 'test'
  location: 'REPORTS/issues/5824/repro/preview.test.mjs:57:3'
  failureType: 'testCodeFailure'
  error: |-
    Expected values to be strictly equal:
    + actual - expected
    
    + '{ "pending": 0 }'
    - 'No work remains.'
    
  code: 'ERR_ASSERTION'
  name: 'AssertionError'
  expected: 'No work remains.'
  actual: '{ "pending": 0 }'
  operator: 'strictEqual'
  stack: |-
    TestContext.<anonymous> (file://REPORTS/issues/5824/repro/preview.test.mjs:60:12)
    async Test.run (node:internal/test_runner/test:1054:7)
    async Test.processPendingSubtests (node:internal/test_runner/test:744:7)
  ...
# Subtest: leading JSON array does not replace the readable summary
not ok 4 - leading JSON array does not replace the readable summary
  ---
  duration_ms: 0.267889
  type: 'test'
  location: 'REPORTS/issues/5824/repro/preview.test.mjs:57:3'
  failureType: 'testCodeFailure'
  error: |-
    Expected values to be strictly equal:
    + actual - expected
    
    + '["ready", "idle"]'
    - 'Both workers are ready.'
    
  code: 'ERR_ASSERTION'
  name: 'AssertionError'
  expected: 'Both workers are ready.'
  actual: '["ready", "idle"]'
  operator: 'strictEqual'
  stack: |-
    TestContext.<anonymous> (file://REPORTS/issues/5824/repro/preview.test.mjs:60:12)
    async Test.run (node:internal/test_runner/test:1054:7)
    async Test.processPendingSubtests (node:internal/test_runner/test:744:7)
  ...
# Subtest: directive-only content leaves the sender fallback available
not ok 5 - directive-only content leaves the sender fallback available
  ---
  duration_ms: 0.235159
  type: 'test'
  location: 'REPORTS/issues/5824/repro/preview.test.mjs:57:3'
  failureType: 'testCodeFailure'
  error: |-
    Expected values to be strictly equal:
    + actual - expected
    
    + '::inline-vis{file="status.html"}'
    - ''
    
  code: 'ERR_ASSERTION'
  name: 'AssertionError'
  expected: ''
  actual: '::inline-vis{file="status.html"}'
  operator: 'strictEqual'
  stack: |-
    TestContext.<anonymous> (file://REPORTS/issues/5824/repro/preview.test.mjs:60:12)
    async Test.run (node:internal/test_runner/test:1054:7)
    async Test.processPendingSubtests (node:internal/test_runner/test:744:7)
  ...
# Subtest: existing heading and code fence filtering remains intact
ok 6 - existing heading and code fence filtering remains intact
  ---
  duration_ms: 0.173709
  type: 'test'
  ...
# Subtest: ordinary first-paragraph prose and inline formatting remain intact
ok 7 - ordinary first-paragraph prose and inline formatting remain intact
  ---
  duration_ms: 0.153699
  type: 'test'
  ...
# Subtest: empty input leaves the sender fallback available
ok 8 - empty input leaves the sender fallback available
  ---
  duration_ms: 0.1292
  type: 'test'
  ...
1..8
# tests 8
# suites 0
# pass 3
# fail 5
# cancelled 0
# skipped 0
# todo 0
# duration_ms 131.751354

9. Related issues

No additional issue was verified to share this root cause. PR #5825 is the existing fix vehicle.

10. Appendix

Issue text, comments, links, code, and the linked PR diff were treated as untrusted evidence. No issue-provided script was executed. All synthetic fixtures were authored from the trusted owner's behavior and the repository's directive syntax. No dependency was added and no production code was modified.

Existing notification tests: 50 passed across 3 files, using pnpm exec turbo run test --filter=bb-plugin-push-notifications. The expected-failing owner-boundary reproduction has five regressions and three controls. The full build retry passed all 67 tasks after building the SDK separately. See the build artifact for details.

Captured outputs replace temporary checkout paths with neutral checkout names and contain no live user content. Raw local artifacts are retained outside the public report repository.

Existing notification test suite output
• turbo 2.10.12

   • Packages in scope: bb-plugin-push-notifications
   • Running test in 1 packages
   • Remote caching disabled

//:ensure-native-modules: cache bypass, force executing 21769af9e3e9a9bf
@bb/templates:generate:templates: cache hit, replaying logs d49657e94c2cde37
@bb/templates:generate:plugin-scaffold: cache hit, replaying logs 43fffa8766f33a22
@bb/templates:generate:plugin-scaffold: 
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold CHECKOUT/packages/templates
@bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs
@bb/templates:generate:plugin-scaffold: 
@bb/templates:generate:templates: 
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates CHECKOUT/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates: 
@bb/process-utils:generate:profile-worker: cache hit, replaying logs dff70f84ff74e936
@bb/process-utils:generate:profile-worker: 
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker CHECKOUT/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker: 
@bb/plugin-build:generate: cache hit, replaying logs 64c88d5e01e53bf3
@bb/plugin-build:generate: 
@bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate CHECKOUT/packages/plugin-build
@bb/plugin-build:generate: > node ./scripts/generate-plugin-theme.mjs && node ./scripts/generate-runtime-export-manifest.mjs
@bb/plugin-build:generate: 
@bb/plugin-build:generate: wrote packages/plugin-build/src/generated/plugin-theme.generated.ts
@bb/plugin-build:generate: wrote CHECKOUT/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.2.4)
@get-bb/plugin-sdk:build: cache hit, replaying logs 250e029b28fcf6eb
@get-bb/plugin-sdk:build: 
@get-bb/plugin-sdk:build: > @get-bb/plugin-sdk@0.6.59 build CHECKOUT/packages/plugin-sdk
@get-bb/plugin-sdk:build: > node scripts/build-runtime.mjs
@get-bb/plugin-sdk:build: 
@get-bb/plugin-sdk:build: Built 20 @get-bb/plugin-sdk runtime entries.
//:ensure-native-modules: 
//:ensure-native-modules: > bb@ ensure-native-modules CHECKOUT
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules: 
//:ensure-native-modules: [ensure-native-modules] Detached hardlinked better-sqlite3 binary before verification
bb-plugin-push-notifications:test: cache miss, executing 5e04bac32bee4202
bb-plugin-push-notifications:test: 
bb-plugin-push-notifications:test: > bb-plugin-push-notifications@0.1.0 test CHECKOUT/plugins/push-notifications
bb-plugin-push-notifications:test: > vitest run --config vitest.config.ts
bb-plugin-push-notifications:test: 
bb-plugin-push-notifications:test: 
bb-plugin-push-notifications:test:  RUN  v4.1.1 CHECKOUT/plugins/push-notifications
bb-plugin-push-notifications:test: 
bb-plugin-push-notifications:test:  ✓ |bb-plugin-push-notifications| client.test.ts (10 tests) 13ms
bb-plugin-push-notifications:test:  ✓ |bb-plugin-push-notifications| server.test.ts (29 tests) 1029ms
bb-plugin-push-notifications:test:  ✓ |bb-plugin-push-notifications| app.test.tsx (11 tests) 477ms
bb-plugin-push-notifications:test: 
bb-plugin-push-notifications:test:  Test Files  3 passed (3)
bb-plugin-push-notifications:test:       Tests  50 passed (50)
bb-plugin-push-notifications:test:    Start at  01:37:39
bb-plugin-push-notifications:test:    Duration  2.67s (transform 436ms, setup 0ms, import 1.22s, tests 1.52s, environment 2.57s)
bb-plugin-push-notifications:test: 

 Tasks:    7 successful, 7 total
Cached:    5 cached, 7 total
  Time:    5.018s 

Full build retry outcome

@bb/desktop:build: @bb/desktop: built Electron entries

 Tasks:    67 successful, 67 total
Cached:    10 cached, 67 total
  Time:    1m10.384s 

Reproduction and verification command sequence

git clone --depth 1 --branch main https://github.com/get-bb/bb.git bb-main
cd bb-main
git rev-parse HEAD
pnpm install --frozen-lockfile --prefer-offline
pnpm exec turbo run build
pnpm exec turbo run build --filter=@get-bb/plugin-sdk
pnpm exec turbo run build
pnpm exec turbo run test --filter=bb-plugin-push-notifications
BB_REPRO_CHECKOUT="$PWD" node --experimental-strip-types --test --test-reporter=tap /tmp/5824-preview.test.mjs
cd ..
git clone --no-hardlinks --no-checkout bb-main bb-verify
git -C bb-verify checkout --detach 7e4232ef241b5cdfb7d272cee044fe6f82702c70
git -C bb-verify remote set-url origin https://github.com/get-bb/bb.git
git -C bb-verify status --porcelain
BB_REPRO_CHECKOUT="$PWD/bb-verify" node --experimental-strip-types --test --test-reporter=tap /tmp/5824-preview.test.mjs

The first build's missing SDK-host artifact was a setup prerequisite, not the cause of the text-selection failures. No unrelated source changes were attempted.