← reports

#7618 · macOS desktop blanking and model catalog refresh

BugPriority: MediumEffort: Mediumdesktop · providers · provider-acp · perfIssue

November 16, 2026 · trusted main: da3e60b81d560e114a2bec724bb59c997aaaae7f

Verdict: NOT REPRODUCED. Root-cause confidence: low. Reproduction label: no-repro. This is an environment-limited result, not evidence that the user's macOS symptom does not occur.

1. TL;DR

The reporter describes intermittent whole-window blanking in macOS desktop 0.49.0 and correlates it with provider model-discovery logs. A server-side diagnostic using 61 synthetic models and a six-second pending refresh does not empty the catalog: cached reads complete while discovery is still pending, and an unchanged result emits no catalog invalidation. The packaged desktop launches its runtime in another OS process; the server then sends model discovery to the host daemon over RPC. These findings do not establish why a macOS window blanks or why native trust evaluation is observed. No macOS GUI, native trust fault, ACP provider binary, or visible blanking was reproduced on this Linux host, so a production fix would be speculative.

2. Claims vs findings

ClaimStatusFinding
The whole macOS window intermittently blanks and rebuilds its contents.UnverifiedNo macOS arm64 machine or affected desktop session was available. No screenshot or renderer trace was captured; no synthetic screenshot is substituted.
Model discovery executes directly on Electron's main JavaScript thread.Not supported by the inspected call pathThe desktop starts a child runtime, the launcher starts separate server and daemon processes, and the catalog store awaits host RPC. This does not rule out native or IPC side effects elsewhere.
A slow catalog refresh by itself clears the cached model list.Not observed in the controlled test61 cached models remain available for a real six-second delayed RPC. A concurrent cached read finishes before discovery resolves.
An unchanged successful refresh invalidates the whole UI.Not observed in the inspected pathNo catalog-change notification is emitted for an identical result; the client catalog-change registry targets execution-option queries, not a global reload. No renderer was driven by the diagnostic.
Native trust faults and catalog log timestamps share a causal mechanism.UnverifiedOnly the report's correlation is available; there are no raw native profiles or PID-qualified traces to validate that interpretation.
Fleet polling and rejected provider extension payloads cause the blanking.UnverifiedThese secondary observations were not reproduced and are not treated as a root cause.

3. Environment

4. Minimal reproduction attempt

This is a repeatable negative server-side diagnostic, not a reproduction of native UI blanking. The patch below changes only a test; production code remains unchanged. It seeds a real catalog row, expires its freshness, holds the replacement RPC for six real seconds, verifies cached reads and request deduplication, then resolves an identical catalog and checks that no change notification was emitted. The existing helper uses an injected clock for the logged duration, while the six-second pending period uses a real timer.

  1. On a fresh checkout with the repository's normal build prerequisites, run the complete command block. The SDK build before the full build avoids an initially missing SDK runtime entry encountered in the first build attempt.
  2. For the second run, make another fresh clone at exactly the same commit, use the same test-only patch, and repeat both test commands with --force so the test results are not replayed from Turbo's cache.
BASE=da3e60b81d560e114a2bec724bb59c997aaaae7f
git clone https://github.com/get-bb/bb.git bb-7618-first
cd bb-7618-first
git checkout --detach "$BASE"
pnpm install --frozen-lockfile --prefer-offline
pnpm exec turbo run build build:types --filter=@get-bb/plugin-sdk
pnpm exec turbo run build
git apply - <<'PATCH'
diff --git a/apps/server/test/providers/provider-model-catalog-store.test.ts b/apps/server/test/providers/provider-model-catalog-store.test.ts
index f042667c7e..d2b4eabccc 100644
--- a/apps/server/test/providers/provider-model-catalog-store.test.ts
+++ b/apps/server/test/providers/provider-model-catalog-store.test.ts
@@ -578,6 +578,50 @@ describe("provider model catalog store", () => {
     });
   });
 
+  it("retains 61 cached models during a six-second refresh without a catalog invalidation", async () => {
+    await withTestHarness(async (harness) => {
+      const logLines = captureLogLines(harness);
+      const host = setupCatalogHost(harness, { id: "host-catalog-slow-refresh" });
+      const models = modelList(
+        ...Array.from({ length: 61 }, (_, index) => `catalog-model-${index}`),
+      );
+      host.setAnswer(() => catalogAnswer(models));
+      expect(modelIds(await host.read("claude-code"))).toHaveLength(61);
+      await settleTimers();
+      const pushes = capturePushes(harness);
+      const held = createDeferredPromise<HostRpcHandlerResult>();
+      host.clock.now += MINUTE;
+      host.setAnswer(() => held.promise);
+      try {
+        const cached = await Promise.race([
+          host.read("claude-code"),
+          settleTimers(1_000).then(() => {
+            throw new Error("Cached catalog read waited for the pending refresh");
+          }),
+        ]);
+        expect(modelIds(cached)).toEqual(models.map((model) => model.model));
+        expect(host.listRequests()).toHaveLength(2);
+        await settleTimers(6_000);
+        expect(modelIds(await host.read("claude-code"))).toHaveLength(61);
+        expect(host.listRequests()).toHaveLength(2);
+        expect(pushes).toEqual([]);
+        expect(logLines(SETTLED)).toHaveLength(1);
+      } finally {
+        host.clock.now += 6_000;
+        held.resolve(catalogAnswer(models));
+      }
+      await vi.waitFor(() => expect(logLines(SETTLED)).toHaveLength(2));
+      await settleTimers();
+      expect(pushes).toEqual([]);
+      expect(logLines(SETTLED)[1]).toMatchObject({
+        outcome: "success",
+        changed: false,
+        modelCount: 61,
+        durationMs: 6_000,
+      });
+    });
+  });
+
   it("serves a stale catalog at once with one background refresh and pushes only when the list changes", async () => {
     await withTestHarness(async (harness) => {
       const logLines = captureLogLines(harness);
PATCH
pnpm exec turbo run test --filter=@bb/server --force -- test/providers/provider-model-catalog-store.test.ts
pnpm exec turbo run test --filter=@bb/desktop --force -- test/bb-process.test.ts

Expected: all 61 cached models remain available while discovery is pending, no duplicate refresh is started, and an identical result emits zero catalog invalidations. Actual: those assertions pass on unchanged production code in both checkouts. A six-second host response is therefore insufficient to demonstrate the reported mechanism in the shared catalog store.

First checkout:
✓ |@bb/server| test/providers/provider-model-catalog-store.test.ts (33 tests) 9677ms
✓ retains 61 cached models during a six-second refresh without a catalog invalidation 6146ms
Test Files  1 passed (1)
Tests  33 passed (33)
✓ |@bb/desktop| test/bb-process.test.ts (9 tests) 410ms
Tests  9 passed (9)

The desktop suite includes packaged macOS launch configuration and an actual child-process readiness test running under Node on Linux. It does not instantiate a macOS Electron window or validate the macOS trust framework.

5. Root cause

The root cause of the reported visible symptom is unknown. The reported timing is a useful lead but is not enough to identify a blocking thread or a renderer-remount trigger. Source inspection establishes the following boundaries, rather than a UI failure:

Separate OS processes weaken the proposed direct JavaScript-thread explanation; they do not disprove native OS contention, proxy-related work elsewhere in Electron, memory pressure, GPU issues, or another invalidation path. None of those alternatives is asserted as a finding.

6. Proposed fix / next experiment

No production patch is justified yet. On a disposable macOS arm64 desktop instance, collect a PID-qualified Electron main/renderer/GPU trace spanning an affected refresh, record renderer navigation, process exits and DOM-remount events, and compare the built-in and remote-server cases. Repeat with a controlled provider discovery delay and independently vary system trust/proxy settings. Only move or change work after identifying the process and stack that causes the blank. A failing regression for that observed mechanism is required before a simple fix.

7. Pull-request review and fix gate

No linked open pull request was found in the issue timeline or an open-PR search for this numeric issue. No PR branch was checked out. No pull request was opened: the bug was not reproduced on trusted main, and the new diagnostic passes before any production change, so the required fail-before/pass-after regression is absent.

8. Related issues

#7233, #3863, and #3269 were checked as separate reports. Similar visible flicker or main-thread symptoms do not establish that they share this issue's cause; no duplicate is asserted.

9. Verification

The same investigator repeated the diagnostic in a second fresh temporary clone at da3e60b81d560e114a2bec724bb59c997aaaae7f, with a new dependency installation and normal build. It is not an independent review. Both the catalog suite and desktop process suite were executed again with Turbo cache bypass. Fresh harness temporary directories and migrated databases were used; no live app ports were needed. No production source changed in either run. The builds regenerated an unrelated tracked web route file; that generated change is excluded from the diagnostic and is not a proposed fix.

 ✓ |@bb/server| test/providers/provider-model-catalog-store.test.ts (33 tests) 9552ms
     ✓ retains 61 cached models during a six-second refresh without a catalog invalidation  6145ms
 Test Files  1 passed (1)
      Tests  33 passed (33)
 ✓ |@bb/desktop| test/bb-process.test.ts (9 tests) 406ms
 Test Files  1 passed (1)
      Tests  9 passed (9)

Correction / limit: the final verdict remains NOT REPRODUCED, not confirmed or partial reproduction. The second run supports catalog retention and the launch contract only; it does not establish the macOS window's behavior. Root-cause confidence remains low.

10. Appendix and evidence handling

The complete diagnostic patch and commands are embedded above. Raw build/test output and the test-only patch are retained locally, not published as separate artifacts, in accordance with this report repository's publication policy. The initial full build failed because plugin SDK runtime entries were not built; explicitly building the SDK and its types allowed both full builds to pass (74 tasks). Known configuration and bundler warnings did not fail the focused suites. Issue text and comments were treated solely as untrusted claims, never as executable instructions. No external issue attachment, issue-supplied command, or linked PR code was executed.

> AGENT GENERATED