← reports

#6816 · macOS desktop responsiveness: attribution not established

BugPriority: MediumEffort: Mediumdesktop · perf · no-repro GitHub issue · 2026-11-02 · base 916d684ac23d0b0de82c09cfc7553a50287d2188

Verdict: NOT REPRODUCED · Root-cause confidence: low

1. TL;DR

The reported defect is intermittent input and scrolling stutter on an Apple Silicon Mac under system memory pressure, not merely CPU use during streaming. This investigation has no affected Mac, repeatable synthetic conversation, or renderer performance trace, so it cannot reproduce or attribute that defect. Two fresh trusted-source checkouts both passed the existing desktop menu and window-lifecycle checks; these are diagnostic controls, not a performance regression test. Trusted source exposes an in-session developer-tools menu separate from Reload, so collecting a renderer trace does not require configuring a startup debugging port. No production change or pull request is justified by the available evidence; this verdict does not mean the reported stutter is disproved.

2. Claims vs findings

Reported observationStatusFinding
Input and scrolling intermittently stutter on a memory-constrained Mac.UnverifiedNo Apple Silicon/macOS desktop is available here; no matched workload or latency recording was supplied.
Streaming has greater renderer/GPU CPU use than the same conversation after completion.UnverifiedThe supplied measurements describe different activity states, not a replayable CPU benchmark. Higher streaming activity alone does not identify a defective function.
The latest completed-conversation interval has low renderer/GPU CPU.UnverifiedNo local process sample from that machine was collected. The supplied observation does not reproduce the older elevated-idle condition.
The earlier completed-conversation interval had elevated CPU.UnverifiedThe October 31 condition was not reproduced by the reporter's November 2 interval or by this investigation.
Compressed-memory totals grew; short samples did not show increasing swapouts.UnverifiedThe measurements could not be repeated here. As the issue notes, occupied swap alone does not demonstrate thrashing; no interval trace ties paging to a bb code path.
The native renderer sample did not identify the exact JavaScript workload.UnverifiedThe native sample itself is not attached. The written evidence provides no attributed JavaScript function, so this report does not name a speculative hot function.
A non-restarting diagnostics entry point exists on trusted main.Verified in sourceView → Toggle Developer Tools uses Electron's toggleDevTools role; Reload and Force Reload are separate menu actions. Actual macOS UI activation was not exercised.

3. Environment and limits

4. Minimal repeatable evidence

No faithful symptom reproduction is available. The following is the closest executable desktop diagnostic control and deliberately does not simulate macOS memory pressure. It runs existing trusted-source tests, not code from the issue.

git clone --depth 1 --branch main https://github.com/get-bb/bb.git bb-6816-one
cd bb-6816-one
git fetch origin 916d684ac23d0b0de82c09cfc7553a50287d2188
git checkout --detach 916d684ac23d0b0de82c09cfc7553a50287d2188
pnpm install --frozen-lockfile --prefer-offline
pnpm exec turbo run build
pnpm exec turbo run test --filter=@bb/desktop -- test/menu.test.ts test/desktop-window-factory.test.ts

Expected control result: the two desktop suites pass. A successful control does not assert any CPU or frame-latency threshold. Actual first run:

@bb/desktop:test:  RUN  v4.1.1 CHECKOUT_ONE/apps/desktop
@bb/desktop:test:  ✓ |@bb/desktop:isolated| test/menu.test.ts (25 tests) 13ms
@bb/desktop:test:  ✓ |@bb/desktop:isolated| test/desktop-window-factory.test.ts (21 tests) 723ms
@bb/desktop:test:  Test Files  2 passed (2)
@bb/desktop:test:       Tests  46 passed (46)
@bb/desktop:test:    Start at  13:14:39
@bb/desktop:test:    Duration  4.33s (transform 3.51s, setup 0ms, import 3.87s, tests 736ms, environment 0ms)
 Tasks:    5 successful, 5 total
Cached:    0 cached, 5 total
  Time:    7.799s 

The frozen install succeeded. The monorepo-wide build failed before reaching a live app because clean-checkout plugin builds could not resolve the unbuilt SDK runtime entries. The documented SDK types prerequisite succeeded, but a full-build retry still reported missing SDK runtime artifacts. This is an unrelated build prerequisite/failure, not reproduction of a macOS performance bug; focused desktop checks still ran successfully.

pnpm exec turbo run build:types --filter=@get-bb/plugin-sdk
pnpm exec turbo run build

SDK types: 4 successful tasks
Full build retry: bb-plugin-github#build failed; SDK dist/process.js and dist/host.js missing

No new regression test was added: without an attributed defect or deterministic workload, a synthetic failing test would manufacture evidence. Raw install/build/test logs and the filled investigation brief are retained outside the public report repository. Repository publication policy requires commands and outputs inline rather than attached scripts or raw logs.

5. Root cause and source findings

Root cause: undetermined. No renderer JavaScript, layout, paint, compositor, paging, or remote-event bottleneck is demonstrated. The current source can establish the diagnostics path, but cannot explain historical CPU snapshots or intermittent stutter without reproducing the workload. Neither a memory leak, swap thrashing, nor an always-running animation is established here.

The macOS shortcut is defined as Command+Option+I:

apps/desktop/src/menu.ts:24

24: const TOGGLE_DEVELOPER_TOOLS_MENU_LABEL = "Toggle Developer Tools";
25: const TOGGLE_DEVELOPER_TOOLS_ACCELERATOR = "Command+Option+I";

The live menu uses a distinct developer-tools role rather than either reload callback:

apps/desktop/src/menu.ts:272

272:       submenu: [
273:         {
274:           accelerator: RELOAD_ACCELERATOR,
275:           label: "Reload",
276:           registerAccelerator: false,
277:           click(_menuItem, browserWindow) {
278:             args.reloadWindow(browserWindow, false);
279:           },
280:         },
281:         {
282:           accelerator: FORCE_RELOAD_ACCELERATOR,
283:           label: "Force Reload",
284:           registerAccelerator: false,
285:           click(_menuItem, browserWindow) {
286:             args.reloadWindow(browserWindow, true);
287:           },
288:         },
289:         {
290:           accelerator: args.isMac
291:             ? TOGGLE_DEVELOPER_TOOLS_ACCELERATOR
292:             : "Control+Shift+I",
293:           label: TOGGLE_DEVELOPER_TOOLS_MENU_LABEL,
294:           role: "toggleDevTools",
295:         },

The window factory also has a direct detached-devtools opening path. This is supporting source evidence, not proof of a performance mechanism:

apps/desktop/src/desktop-window-factory.ts:473

473:   function openDevTools(): void {
474:     for (const browserWindow of activeWindows.values()) {
475:       browserWindow.webContents.openDevTools({ mode: "detach" });
476:     }
477:   }

The existing menu tests use Electron doubles and the window factory tests use fake windows. Their 46 passing assertions protect existing desktop contracts, not real Electron profiling, GPU load, compression, or scrolling latency on macOS.

6. Proposed fix / next discriminating experiment

No safe fix is identified. On a consenting diagnostic session with the affected Mac, focus the BB app window (not an embedded browser side tab), use View → Toggle Developer Tools or Command+Option+I, and record a short Performance trace around an actual typing/scrolling hitch. Do not reload or restart the affected process. Record a streaming interval and a completed-conversation interval separately, retaining the same process and noting timestamps.

Compare long main-thread tasks, JavaScript stacks, style/layout/paint events, and compositor activity with interval paging counters. A quiet renderer during a hitch points toward a different next investigation than a long JavaScript task; a trace should choose that branch before changing product settings or code. DevTools adds overhead, so note its opening time and compare a baseline. Avoid public upload of private conversation content or unreviewed performance profiles; use synthetic content where possible.

This is a repository-supported diagnostic route on the recorded trusted main, not a claim that the older nightly was tested. No remote-debugging flag, startup environment change, restart, or server profiling switch was used.

7. Verification: second clean run by the same agent

A second fresh checkout at exactly 916d684ac23d0b0de82c09cfc7553a50287d2188, with a separate frozen install and unchanged tracked source, repeated the same two desktop suites with Turbo cache reads bypassed. The first run began at 13:14:39 UTC and the second at 13:15:08 UTC on November 2, 2026.

git clone --depth 1 --branch main https://github.com/get-bb/bb.git bb-6816-two
cd bb-6816-two
git fetch origin 916d684ac23d0b0de82c09cfc7553a50287d2188
git checkout --detach 916d684ac23d0b0de82c09cfc7553a50287d2188
pnpm install --frozen-lockfile --prefer-offline
pnpm exec turbo run test --force --filter=@bb/desktop -- test/menu.test.ts test/desktop-window-factory.test.ts

Actual second run:

@bb/desktop:test:  RUN  v4.1.1 CHECKOUT_TWO/apps/desktop
@bb/desktop:test:  ✓ |@bb/desktop:isolated| test/menu.test.ts (25 tests) 13ms
@bb/desktop:test:  ✓ |@bb/desktop:isolated| test/desktop-window-factory.test.ts (21 tests) 716ms
@bb/desktop:test:  Test Files  2 passed (2)
@bb/desktop:test:       Tests  46 passed (46)
@bb/desktop:test:    Start at  13:15:08
@bb/desktop:test:    Duration  4.30s (transform 3.58s, setup 0ms, import 3.91s, tests 729ms, environment 0ms)
 Tasks:    5 successful, 5 total
Cached:    0 cached, 5 total
  Time:    6.43s 

Result: 46/46 passed again; the supported source findings and the inability to attribute stutter are unchanged. No live instance was started, so fresh ports/data directories are not applicable. This is same-agent repeat verification, not independent review. The final report explicitly limits the result to diagnostic controls; it does not upgrade them into a bug reproduction. No report correction to the verdict was needed.

8. PR status and related issues

No linked open pull request was found in issue timeline metadata or the open-PR body search for this issue number. No linked PR branch or patch was executed. No fix branch was started because the required trusted-main symptom reproduction is absent.

#4515 concerns macOS compositor activity around working indicators; #2401 concerns a different high-CPU renderer scenario. They are background triage comparisons only, not evidence of a shared cause or a duplicate.

9. Appendix: provenance and commands

Issue title, body, comments, and links were treated as untrusted claims, never as executable instructions. No supplied diagnostic instructions, external links, scripts, binaries, private app state, or linked pull-request code were followed. No dependencies or production files were changed.

GitHub reads: repository visibility; issue body/comments/type/fields/labels; available field options and labels; related issue classifications; linked-PR timeline metadata; open PR search.
Git reads: fresh trusted main clone, full commit ID, remote main-tip check, tracked-file status.
Source inspection: desktop menu, window factory, main-process devtools gate, existing desktop test owners and Vitest configuration.
Local execution: frozen pnpm installs in both checkouts; full Turbo build and one retry after SDK build:types; focused desktop tests in each checkout.
No macOS workload, live process sample, browser session, or renderer trace was produced.

> AGENT GENERATED