#6015 · Desktop notification activation and renderer lifecycle
PARTIALLY REPRODUCED · Root-cause confidence: medium
1. TL;DR
The reported problem is a Windows notification-history click that no longer opens its thread after the banner expires. This investigation could not exercise Windows Notification Center: the available host runs Linux. Trusted main does use a renderer-owned web Notification and its JavaScript click callback, rather than a durable notification activation route. A related lifecycle defect is reproduced: changing the navigation object's identity disposes delivery, closes outstanding notifications, and makes their retained click callbacks return without navigating. That defect repeats in two clean trusted checkouts; it does not establish the separate Windows timeout/COM mechanism.
2. Claims vs findings
| Claim | Finding | Evidence |
|---|---|---|
| Desktop notification delivery uses the renderer web Notification API. | Verified | Real plugin overlay and real client delivery instantiate the Notification boundary in the test; client.ts lines 40–66 contain the click path. |
| A supplied Windows renderer click opens the target thread. | Verified at the renderer boundary | First control test passes and records toThread(thr_repro) plus window.focus(). This does not demonstrate OS window foregrounding. |
| Windows banner timeout makes later Notification Center activation disappear. | Unverified | No Windows host, WinRT history, Electron timeout trace, or native Notification Center click was available. No upstream issue links or binaries were fetched. |
| bb's close handler itself removes or disables the click callback. | Not supported by the isolated application path | Second control test calls onclose and then onclick; thread navigation still occurs. Any lost callback after a real Windows timeout therefore needs an OS/Electron/Chromium trace, not an invented mock timeout. |
| In-app route changes can close pending notifications and suppress their clicks. | Reproduced at the plugin boundary | Third test changes only navigation identity. React effect cleanup closes the notification once; a retained click records no navigation. Source inspection separately confirms pathname-dependent navigation identity. |
| Native toast XML lacks launch metadata, or a local workaround resolves it. | Unverified | No affected Windows machine or workaround was executed. Neither claim is used as reproduction evidence. |
3. Environment
- Target repository is public: get-bb/bb. Trusted base:
b143a22860944a96bf183605dfb0ffe58b1de283, fetched from main and verified against the target repository. - Execution host: Linux x86_64; Node v22.19.0; pnpm 9.15.0; Vitest 4.1.1; jsdom. Platform metadata is set to windows only at the renderer boundary.
- Two distinct temporary detached worktrees, named
baseandverify, both at the same base commit. Only the investigator-authored reproduction test is added; production source is unchanged. - Normal frozen installs completed in both checkouts. The first complete Turbo build passed all 67 tasks. Existing client/app tests passed all 16 cases.
- No app server, host daemon, browser, provider turn, user runtime data, port, or database was needed. Electron itself and Windows shell behavior were not exercised.
- No screenshot was captured because there was no native Windows session. This is a behavioral unit-boundary report, not a visual reproduction.
4. Minimal reproduction
- Make a clean checkout of get-bb/bb and detach at
b143a22860944a96bf183605dfb0ffe58b1de283. Run its normal frozen install and build:pnpm install --frozen-lockfile --prefer-offline pnpm exec turbo run build
- Copy the complete investigator-authored test below into
plugins/push-notifications/issue-6015.repro.test.tsx. This test was designed from trusted source, not copied from issue content. - Run the exact plugin boundary reproduction:
pnpm exec turbo run test --filter=bb-plugin-push-notifications --force -- issue-6015.repro.test.tsx
- Run the adjacent baseline controls separately:
pnpm exec turbo run test --filter=bb-plugin-push-notifications -- client.test.ts app.test.tsx
Expected: an unrelated change in navigation identity must not close an outstanding notification, and its click must still navigate to its target. The two click controls should pass.
Actual: both controls pass, but the lifecycle case closes the notification and ignores the click. Verbatim failure excerpts from both runs:
AssertionError: expected "vi.fn()" to not be called at all, but actually been called 1 times
AssertionError: expected [] to deeply equal [ { method: 'toThread', …(1) } ]
Test Files 1 failed (1)
Tests 1 failed | 2 passed (3)
The Notification boundary records constructor, close, and callback interactions; it does not emulate Windows or decide whether a callback is delivered. The real SDK app loader, slot harness, realtime delivery, plugin component, and client delivery execute. Only useBbNavigate is wrapped to vary returned object identity, modeling the source-confirmed pathname dependency without mounting the entire app router. This is deliberately a reproduction of the related delivery lifecycle, not proof of an OS timeout.
Complete reproduction test
// @vitest-environment jsdom
import { act, cleanup } from "@testing-library/react";
import { useMemo } from "react";
import { loadPluginApp, renderSlot } from "@get-bb/plugin-sdk/testing/app";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { CLIENT_NOTIFICATION_CHANNEL } from "./contract.js";
const route = vi.hoisted(() => ({ revision: 0 }));
vi.mock("@get-bb/plugin-sdk/app", async (importOriginal) => {
const actual = await importOriginal<typeof import("@get-bb/plugin-sdk/app")>();
return {
...actual,
useBbNavigate() {
const navigation = actual.useBbNavigate();
return useMemo(() => ({ ...navigation }), [navigation, route.revision]);
},
};
});
class NotificationProbe {
static permission = "granted";
static instances: NotificationProbe[] = [];
onclick: (() => void) | null = null;
onclose: (() => void) | null = null;
close = vi.fn();
constructor(
readonly title: string,
readonly options: NotificationOptions,
) {
NotificationProbe.instances.push(this);
}
}
const app = await loadPluginApp(() => import("./app.js"));
const message = {
id: "repro-event-1",
title: "Turn complete",
body: "Ready to read",
threadId: "thr_repro",
channels: ["desktop"],
};
beforeEach(() => {
route.revision = 0;
NotificationProbe.instances = [];
localStorage.clear();
vi.stubGlobal("Notification", NotificationProbe);
vi.stubGlobal("isSecureContext", true);
vi.stubGlobal("bbDesktop", { platform: "windows" });
vi.spyOn(window, "focus").mockImplementation(() => undefined);
});
afterEach(() => {
cleanup();
vi.unstubAllGlobals();
vi.restoreAllMocks();
});
async function mountDelivery() {
const overlay = app.appOverlays[0]!;
const view = renderSlot(overlay, {}, { settings: { desktopEnabled: true } });
await view.behavior.emitRealtime(CLIENT_NOTIFICATION_CHANNEL, message);
expect(NotificationProbe.instances).toHaveLength(1);
return { view, overlay, notification: NotificationProbe.instances[0]! };
}
describe("issue 6015 renderer boundary", () => {
it("opens the target when Windows delivers the renderer click callback", async () => {
const { view, notification } = await mountDelivery();
act(() => notification.onclick?.());
expect(view.inspection.navigateCalls).toEqual([
{ method: "toThread", threadId: "thr_repro" },
]);
expect(window.focus).toHaveBeenCalledOnce();
});
it("does not itself invalidate the click callback on an OS close event", async () => {
const { view, notification } = await mountDelivery();
act(() => notification.onclose?.());
act(() => notification.onclick?.());
expect(view.inspection.navigateCalls).toEqual([
{ method: "toThread", threadId: "thr_repro" },
]);
});
it("preserves an outstanding notification across navigation identity changes", async () => {
const { view, overlay, notification } = await mountDelivery();
const Overlay = overlay.component;
route.revision += 1;
view.lifecycle.rerender(<Overlay />);
expect.soft(notification.close).not.toHaveBeenCalled();
act(() => notification.onclick?.());
expect(view.inspection.navigateCalls).toEqual([
{ method: "toThread", threadId: "thr_repro" },
]);
});
});5. Root cause
Verified lifecycle cause: NotificationDelivery's effect depends on the entire navigation object:
useEffect(() => {
const next = createClientDelivery((id) => navigate.toThread(id));
delivery.current = next;
return () => {
delivery.current = null;
next.dispose();
};
}, [navigate]);
toCompose depends on location.pathname, and the returned navigation object depends on toCompose. When that identity changes, React runs cleanup. dispose() sets disposed and closes active notifications:
disposed = true; for (const notification of active) notification.close(); active.clear();
The old click handler returns immediately when disposed. Thus the thread target can remain in a callback that is no longer usable.
Primary Windows cause remains a hypothesis: desktop delivery uses new Notification and onclick. Native focusWindow is requested only for Linux. Inspection of desktop main/preload found no dedicated durable toast activation route. These facts explain dependence on a live renderer callback; they do not prove that Windows timeout removes Chromium's listener or that a specific native activation design will resolve the report. In particular, bb's own onclose handler only removes the active-set entry, which is why the close-event control still navigates.
6. Proposed fix and safety decision
For the verified lifecycle defect, keep delivery alive across unrelated navigation-object changes while dispatching through the latest navigation callback. Preserve cleanup on actual overlay unmount. The included failing case is the owner-boundary regression target.
For the primary report, first run a real Windows packaged desktop session, capture whether the renderer receives the post-timeout click, and trace native activation arguments for both a visible banner and notification history. Keep the renderer alive and do not navigate during this experiment, to separate timeout from the verified route-change defect. Then decide whether durable main-process notification activation is required, including server/window selection and restart behavior.
No pull request: the primary Windows timeout path was not reproduced on the available Linux host. Shipping a platform activation change without that proof would fail the requested simple-fix gate. No production patch, fix branch, or pull request was created.
7. Verification
The same investigator repeated the test in a second clean detached worktree at the recorded trusted base. Both frozen installs succeeded; the second Turbo test command used --force, so its result was not replayed from test cache. It produced the same two passing controls and one failing lifecycle case. This is a second clean run by the same agent, not an independent review.
First checkout: Test Files 1 failed (1); Tests 1 failed | 2 passed (3) Second checkout: Test Files 1 failed (1); Tests 1 failed | 2 passed (3) Adjacent suite: Test Files 2 passed (2); Tests 16 passed (16) Full base build: Tasks: 67 successful, 67 total
The test file was byte-identical in both checkouts (SHA-256 bfa0f2d034d7e6255b3f0a3fb8c4edbd3b56c75e7f42bd3a5fec3f8a43b19081). Tracked production diffs were empty and git diff --check passed in both. Root-cause code links were checked against the pinned source. No report correction was required after the second run; Windows-specific assertions remain explicitly unverified.
8. Related work
Issue metadata and a repository search found no open pull request linking to #6015 at investigation time. The repository search also surfaced draft #5820 for background desktop operation; its branch was not checked out, executed, or used as evidence for this failure. No duplicate fix was opened.
9. Appendix
Exact test source, failure output, and reproduction commands are embedded in this self-contained report. Raw artifacts remain in the investigator's local backup, not in the public repository. The following expandable blocks contain sanitized execution evidence and the command inventory.
Issue content was treated only as untrusted claims. No commands, patches, external links, workaround binaries, or branches supplied in the issue were executed or fetched. No user instance or credentials were accessed. Temporary checkout prefixes in logs are replaced with descriptive names; test failures are otherwise preserved.
First complete reproduction run
• turbo 2.10.12
• Packages in scope: bb-plugin-push-notifications
• Running test in 1 packages
• Remote caching disabled, using shared worktree cache
//:ensure-native-modules: cache bypass, force executing a2aff12d86fa3316
@bb/process-utils:generate:profile-worker: cache miss, executing 11d61c3d955cd153
@bb/plugin-build:generate: cache miss, executing 9da39b65059f41cb
@bb/templates:generate:plugin-scaffold: cache miss, executing 5592b8127a1ffcdc
@bb/templates:generate:templates: cache miss, executing 85d94a41dcd2e4e5
@bb/templates:generate:plugin-scaffold:
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold FIRST_CHECKOUT/packages/templates
@bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs
@bb/templates:generate:plugin-scaffold:
@bb/process-utils:generate:profile-worker:
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker FIRST_CHECKOUT/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker:
//:ensure-native-modules:
//:ensure-native-modules: > bb@ ensure-native-modules FIRST_CHECKOUT
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules:
@bb/plugin-build:generate:
@bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate FIRST_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/templates:generate:templates:
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates FIRST_CHECKOUT/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates:
//:ensure-native-modules: [ensure-native-modules] Detached hardlinked better-sqlite3 binary before verification
@bb/plugin-build:generate: plugin-theme.generated.ts up to date
@get-bb/plugin-sdk:build: cache miss, executing 1a206d8a3e1a96d7
@get-bb/plugin-sdk:build:
@get-bb/plugin-sdk:build: > @get-bb/plugin-sdk@0.6.65 build FIRST_CHECKOUT/packages/plugin-sdk
@get-bb/plugin-sdk:build: > node scripts/build-runtime.mjs
@get-bb/plugin-sdk:build:
@bb/plugin-build:generate: wrote FIRST_CHECKOUT/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.2.4)
@get-bb/plugin-sdk:build: Built 22 @get-bb/plugin-sdk runtime entries.
bb-plugin-push-notifications:test: cache miss, executing 07fea11e9221c464
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: > bb-plugin-push-notifications@0.1.0 test FIRST_CHECKOUT/plugins/push-notifications
bb-plugin-push-notifications:test: > vitest run --config vitest.config.ts "issue-6015.repro.test.tsx"
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: RUN v4.1.1 FIRST_CHECKOUT/plugins/push-notifications
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: ❯ |bb-plugin-push-notifications| issue-6015.repro.test.tsx (3 tests | 1 failed) 35ms
bb-plugin-push-notifications:test: ✓ opens the target when Windows delivers the renderer click callback 20ms
bb-plugin-push-notifications:test: ✓ does not itself invalidate the click callback on an OS close event 4ms
bb-plugin-push-notifications:test: × preserves an outstanding notification across navigation identity changes 10ms
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: FAIL |bb-plugin-push-notifications| issue-6015.repro.test.tsx > issue 6015 renderer boundary > preserves an outstanding notification across navigation identity changes
bb-plugin-push-notifications:test: AssertionError: expected "vi.fn()" to not be called at all, but actually been called 1 times
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: Received:
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: 1st vi.fn() call:
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: Array []
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: Number of calls: 1
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: ❯ issue-6015.repro.test.tsx:93:41
bb-plugin-push-notifications:test: 91| route.revision += 1;
bb-plugin-push-notifications:test: 92| view.lifecycle.rerender(<Overlay />);
bb-plugin-push-notifications:test: 93| expect.soft(notification.close).not.toHaveBeenCalled();
bb-plugin-push-notifications:test: | ^
bb-plugin-push-notifications:test: 94| act(() => notification.onclick?.());
bb-plugin-push-notifications:test: 95| expect(view.inspection.navigateCalls).toEqual([
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: FAIL |bb-plugin-push-notifications| issue-6015.repro.test.tsx > issue 6015 renderer boundary > preserves an outstanding notification across navigation identity changes
bb-plugin-push-notifications:test: AssertionError: expected [] to deeply equal [ { method: 'toThread', …(1) } ]
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: - Expected
bb-plugin-push-notifications:test: + Received
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: - [
bb-plugin-push-notifications:test: - {
bb-plugin-push-notifications:test: - "method": "toThread",
bb-plugin-push-notifications:test: - "threadId": "thr_repro",
bb-plugin-push-notifications:test: - },
bb-plugin-push-notifications:test: - ]
bb-plugin-push-notifications:test: + []
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: ❯ issue-6015.repro.test.tsx:95:43
bb-plugin-push-notifications:test: 93| expect.soft(notification.close).not.toHaveBeenCalled();
bb-plugin-push-notifications:test: 94| act(() => notification.onclick?.());
bb-plugin-push-notifications:test: 95| expect(view.inspection.navigateCalls).toEqual([
bb-plugin-push-notifications:test: | ^
bb-plugin-push-notifications:test: 96| { method: "toThread", threadId: "thr_repro" },
bb-plugin-push-notifications:test: 97| ]);
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/2]⎯
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: Test Files 1 failed (1)
bb-plugin-push-notifications:test: Tests 1 failed | 2 passed (3)
bb-plugin-push-notifications:test: Start at 11:15:57
bb-plugin-push-notifications:test: Duration 1.80s (transform 413ms, setup 0ms, import 752ms, tests 35ms, environment 859ms)
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: ELIFECYCLE Test failed. See above for more details.
bb-plugin-push-notifications#test: ERROR command (FIRST_CHECKOUT/plugins/push-notifications) /usr/local/bin/pnpm run test issue-6015.repro.test.tsx exited (1)
Tasks: 6 successful, 7 total
Cached: 0 cached, 7 total
Time: 4.858s
Failed: bb-plugin-push-notifications#test
ERROR run failed: command exited (1)Second clean reproduction run
• turbo 2.10.12
• Packages in scope: bb-plugin-push-notifications
• Running test in 1 packages
• Remote caching disabled, using shared worktree cache
//:ensure-native-modules: cache bypass, force executing a2aff12d86fa3316
@bb/plugin-build:generate: cache bypass, force executing 9da39b65059f41cb
@bb/templates:generate:plugin-scaffold: cache bypass, force executing 5592b8127a1ffcdc
@bb/templates:generate:templates: cache bypass, force executing 85d94a41dcd2e4e5
@bb/process-utils:generate:profile-worker: cache bypass, force executing 11d61c3d955cd153
@bb/templates:generate:templates:
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates SECOND_CHECKOUT/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates:
@bb/templates:generate:plugin-scaffold:
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold SECOND_CHECKOUT/packages/templates
@bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs
@bb/templates:generate:plugin-scaffold:
@bb/plugin-build:generate:
@bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate SECOND_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/process-utils:generate:profile-worker:
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker SECOND_CHECKOUT/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker:
//:ensure-native-modules:
//:ensure-native-modules: > bb@ ensure-native-modules SECOND_CHECKOUT
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules:
@bb/plugin-build:generate: plugin-theme.generated.ts up to date
//:ensure-native-modules: [ensure-native-modules] Detached hardlinked better-sqlite3 binary before verification
@get-bb/plugin-sdk:build: cache bypass, force executing 1a206d8a3e1a96d7
@bb/plugin-build:generate: wrote SECOND_CHECKOUT/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.2.4)
@get-bb/plugin-sdk:build:
@get-bb/plugin-sdk:build: > @get-bb/plugin-sdk@0.6.65 build SECOND_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 22 @get-bb/plugin-sdk runtime entries.
bb-plugin-push-notifications:test: cache bypass, force executing 07fea11e9221c464
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: > bb-plugin-push-notifications@0.1.0 test SECOND_CHECKOUT/plugins/push-notifications
bb-plugin-push-notifications:test: > vitest run --config vitest.config.ts "issue-6015.repro.test.tsx"
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: RUN v4.1.1 SECOND_CHECKOUT/plugins/push-notifications
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: ❯ |bb-plugin-push-notifications| issue-6015.repro.test.tsx (3 tests | 1 failed) 29ms
bb-plugin-push-notifications:test: ✓ opens the target when Windows delivers the renderer click callback 16ms
bb-plugin-push-notifications:test: ✓ does not itself invalidate the click callback on an OS close event 3ms
bb-plugin-push-notifications:test: × preserves an outstanding notification across navigation identity changes 9ms
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: FAIL |bb-plugin-push-notifications| issue-6015.repro.test.tsx > issue 6015 renderer boundary > preserves an outstanding notification across navigation identity changes
bb-plugin-push-notifications:test: AssertionError: expected "vi.fn()" to not be called at all, but actually been called 1 times
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: Received:
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: 1st vi.fn() call:
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: Array []
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: Number of calls: 1
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: ❯ issue-6015.repro.test.tsx:93:41
bb-plugin-push-notifications:test: 91| route.revision += 1;
bb-plugin-push-notifications:test: 92| view.lifecycle.rerender(<Overlay />);
bb-plugin-push-notifications:test: 93| expect.soft(notification.close).not.toHaveBeenCalled();
bb-plugin-push-notifications:test: | ^
bb-plugin-push-notifications:test: 94| act(() => notification.onclick?.());
bb-plugin-push-notifications:test: 95| expect(view.inspection.navigateCalls).toEqual([
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: FAIL |bb-plugin-push-notifications| issue-6015.repro.test.tsx > issue 6015 renderer boundary > preserves an outstanding notification across navigation identity changes
bb-plugin-push-notifications:test: AssertionError: expected [] to deeply equal [ { method: 'toThread', …(1) } ]
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: - Expected
bb-plugin-push-notifications:test: + Received
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: - [
bb-plugin-push-notifications:test: - {
bb-plugin-push-notifications:test: - "method": "toThread",
bb-plugin-push-notifications:test: - "threadId": "thr_repro",
bb-plugin-push-notifications:test: - },
bb-plugin-push-notifications:test: - ]
bb-plugin-push-notifications:test: + []
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: ❯ issue-6015.repro.test.tsx:95:43
bb-plugin-push-notifications:test: 93| expect.soft(notification.close).not.toHaveBeenCalled();
bb-plugin-push-notifications:test: 94| act(() => notification.onclick?.());
bb-plugin-push-notifications:test: 95| expect(view.inspection.navigateCalls).toEqual([
bb-plugin-push-notifications:test: | ^
bb-plugin-push-notifications:test: 96| { method: "toThread", threadId: "thr_repro" },
bb-plugin-push-notifications:test: 97| ]);
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/2]⎯
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: Test Files 1 failed (1)
bb-plugin-push-notifications:test: Tests 1 failed | 2 passed (3)
bb-plugin-push-notifications:test: Start at 11:16:35
bb-plugin-push-notifications:test: Duration 1.31s (transform 359ms, setup 0ms, import 582ms, tests 29ms, environment 573ms)
bb-plugin-push-notifications:test:
bb-plugin-push-notifications:test: ELIFECYCLE Test failed. See above for more details.
bb-plugin-push-notifications#test: ERROR command (SECOND_CHECKOUT/plugins/push-notifications) /usr/local/bin/pnpm run test issue-6015.repro.test.tsx exited (1)
Tasks: 6 successful, 7 total
Cached: 0 cached, 7 total
Time: 3.239s
Failed: bb-plugin-push-notifications#test
ERROR run failed: command exited (1)Adjacent existing tests
• turbo 2.10.12 • Packages in scope: bb-plugin-push-notifications • Running test in 1 packages • Remote caching disabled, using shared worktree cache //:ensure-native-modules: cache bypass, force executing 542d8221502cb01a @bb/plugin-build:generate: cache miss, executing f7d8e2ec8bf96315 @bb/templates:generate:plugin-scaffold: cache miss, executing c898db6ca19d5802 @bb/process-utils:generate:profile-worker: cache miss, executing ee41424b5318aefc @bb/templates:generate:templates: cache miss, executing 3d74dc4358648308 @bb/plugin-build:generate: @bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate FIRST_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/process-utils:generate:profile-worker: @bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker FIRST_CHECKOUT/packages/process-utils @bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs @bb/process-utils:generate:profile-worker: @bb/templates:generate:plugin-scaffold: @bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold FIRST_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 FIRST_CHECKOUT/packages/templates @bb/templates:generate:templates: > node ./scripts/generate-templates.mjs @bb/templates:generate:templates: //:ensure-native-modules: //:ensure-native-modules: > bb@ ensure-native-modules FIRST_CHECKOUT //:ensure-native-modules: > node scripts/ensure-native-modules.mjs //:ensure-native-modules: @bb/plugin-build:generate: plugin-theme.generated.ts up to date @get-bb/plugin-sdk:build: cache miss, executing a55380fad2c9ec60 @bb/plugin-build:generate: wrote FIRST_CHECKOUT/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.2.4) @get-bb/plugin-sdk:build: @get-bb/plugin-sdk:build: > @get-bb/plugin-sdk@0.6.65 build FIRST_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 22 @get-bb/plugin-sdk runtime entries. bb-plugin-push-notifications:test: cache miss, executing 2119654ad11af447 bb-plugin-push-notifications:test: bb-plugin-push-notifications:test: > bb-plugin-push-notifications@0.1.0 test FIRST_CHECKOUT/plugins/push-notifications bb-plugin-push-notifications:test: > vitest run --config vitest.config.ts "client.test.ts" "app.test.tsx" bb-plugin-push-notifications:test: bb-plugin-push-notifications:test: bb-plugin-push-notifications:test: RUN v4.1.1 FIRST_CHECKOUT/plugins/push-notifications bb-plugin-push-notifications:test: bb-plugin-push-notifications:test: ✓ |bb-plugin-push-notifications| client.test.ts (10 tests) 12ms bb-plugin-push-notifications:test: ✓ |bb-plugin-push-notifications| app.test.tsx (6 tests) 280ms bb-plugin-push-notifications:test: bb-plugin-push-notifications:test: Test Files 2 passed (2) bb-plugin-push-notifications:test: Tests 16 passed (16) bb-plugin-push-notifications:test: Start at 11:16:29 bb-plugin-push-notifications:test: Duration 1.73s (transform 502ms, setup 0ms, import 751ms, tests 292ms, environment 1.52s) bb-plugin-push-notifications:test: Tasks: 7 successful, 7 total Cached: 0 cached, 7 total Time: 3.675s
Base build result
@bb/desktop:build: @bb/desktop: built Electron entries Tasks: 67 successful, 67 total Cached: 4 cached, 67 total Time: 1m8.219s
Command inventory
Trusted target: get-bb/bb issue 6015 Trusted base: b143a22860944a96bf183605dfb0ffe58b1de283 Read repository visibility, issue Type/fields, labels, comments and cross-reference metadata with gh api graphql and gh api. Read valid issue types, single-select fields/options, and labels before applying missing classifications. Searched similar issues and open pull requests using gh issue list and gh pr list; no linked open fix for 6015 was found. Applied missing classifications and read them back with the SlopCop GitHub wrapper. git fetch origin main git rev-parse origin/main git worktree add --detach FIRST_CHECKOUT b143a22860944a96bf183605dfb0ffe58b1de283 cd FIRST_CHECKOUT pnpm install --frozen-lockfile --prefer-offline pnpm exec turbo run build Added investigator-authored plugins/push-notifications/issue-6015.repro.test.tsx without production edits. pnpm exec turbo run test --filter=bb-plugin-push-notifications -- issue-6015.repro.test.tsx Result: exit 1, 2 controls pass, 1 lifecycle regression fails for the expected close/navigation assertions. pnpm exec turbo run test --filter=bb-plugin-push-notifications -- client.test.ts app.test.tsx Result: exit 0, 16 existing tests pass. git worktree add --detach SECOND_CHECKOUT b143a22860944a96bf183605dfb0ffe58b1de283 cd SECOND_CHECKOUT pnpm install --frozen-lockfile --prefer-offline Copied the exact investigator-authored test from the first checkout. pnpm exec turbo run test --filter=bb-plugin-push-notifications --force -- issue-6015.repro.test.tsx Result: exit 1, same 2 controls pass and same 1 lifecycle regression fails. Read pinned client.ts, app.tsx, plugin-sdk-hooks.ts, desktop main.ts and preload.ts with line-numbered source. Checked root-cause source line anchors and read existing client/app tests and the plugin SDK slot harness. git diff --check git diff --stat git status --short sha256sum plugins/push-notifications/issue-6015.repro.test.tsx Tracked production source is unchanged in both checkouts. No app, daemon, browser, provider or network-facing runtime was started. Report publication uses the single-issue publisher without --comment or --label. Every GitHub API mutation uses the SlopCop wrapper; the publisher's optional Pages rebuild request is routed through that wrapper as well.