← reports

#7510 · Installed catalog metadata repeats screenshot validation warnings

BugMedium priorityLow effortpluginsIssue2026-11-13 · base 88cf8f644c81fca797ad80bc31bb36a61ce5cc9b

Verdict: REPRODUCED · Root-cause confidence: high

1. TL;DR

Listing installed plugins also reads their marketplace discovery metadata. For a git or path marketplace with a relative screenshot, that read calls the screenshot resolver with the server warning logger on every list invocation. The resolver omits the unsupported screenshot and emits the same diagnostic each time, even though the manifest itself is cached. Two clean checkouts reproduced exactly three warning calls for three installed-plugin list calls, for both git and path sources; the HTTPS control emitted none. This confirms the log-amplification mechanism, not the reporter's historical percentages or retention duration.

2. Claims vs findings

ClaimFindingEvidence
Installed-plugin reads repeat relative-screenshot warnings for non-HTTPS marketplaces.VerifiedReal plugin service and migrated SQLite: git and path cases each emitted three identical warnings across three reads, in both checkouts.
Manifest parsing is cached but does not prevent the warning.VerifiedThe cache surrounds parsing only; installed metadata is reconstructed outside it on every list call.
HTTPS marketplaces resolve the relative path without a warning.VerifiedThe HTTPS control passed and returned the resolved relative URL plus an unchanged absolute HTTPS URL.
Relative screenshot omission does not imply a broken marketplace.Verified for the test fixtureThe production parser accepts the v2 manifest; all returned discovery metadata assertions pass before the warning assertion fails.
Warnings consumed most log lines and shortened historical retention.Unverified quantitativelyNo access to the reporter's runtime data, log files, macOS installation, or CPU profile. Linear amplification is demonstrated; exact production frequency and disk-retention effects are not measured.

3. Environment

4. Minimal reproduction

  1. Check out the trusted base and install frozen dependencies:
    git clone https://github.com/get-bb/bb.git bb-7510
    cd bb-7510
    git checkout 88cf8f644c81fca797ad80bc31bb36a61ce5cc9b
    pnpm install --frozen-lockfile --prefer-offline
    pnpm exec turbo run build --filter=@bb/server --concurrency=1
  2. Download the agent-authored test-only patch from this report and apply it to the existing service fixture:
    curl -fsS https://get-bb.github.io/reports/issues/7510/repro/regression.patch -o /tmp/7510-regression.patch
    git apply /tmp/7510-regression.patch
  3. Run the focused regression through the repository's normal orchestration:
    pnpm exec turbo run test --filter=@bb/server -- test/services/plugins/plugin-service.test.ts -t 'adds marketplace discovery metadata'

The patch extends an existing real-service test to cover HTTPS, git, and path source kinds. It seeds an installed catalog plugin, supplies one relative and one absolute HTTPS screenshot, verifies the returned metadata over three list calls, and then checks that reads did not log warnings. It retains the existing marketplace-refresh metadata assertion. Seeding stored catalog state isolates the affected read boundary; this does not simulate fetching a git repository or installing a package.

Expected: all three cases pass, with no read-time warning. Relative screenshots remain omitted for git/path and resolved for HTTPS; absolute HTTPS screenshots remain returned for every source.

Actual on unchanged production: the HTTPS case passes; git and path fail solely on the warning assertion. Each received three calls containing this identical warning:

marketplace entry "installed-tool" screenshot "./screenshots/installed-tool/installed-tool.png" was skipped because relative screenshots require an https marketplace manifest
AssertionError: expected [ …(3) ] to deeply equal []
Tests  2 failed | 1 passed | 40 skipped (43)

Full repeatable test artifact: regression.patch. It changes the existing test only, not production code:

Full test-only reproduction patch
diff --git a/apps/server/test/services/plugins/plugin-service.test.ts b/apps/server/test/services/plugins/plugin-service.test.ts
index 926f35552d..72d1b3e583 100644
--- a/apps/server/test/services/plugins/plugin-service.test.ts
+++ b/apps/server/test/services/plugins/plugin-service.test.ts
@@ -976,142 +976,157 @@ describe("plugin service", () => {
     });
   });
 
-  it("adds marketplace discovery metadata to an installed plugin", () => {
-    upsertPluginMarketplace(db, {
-      name: "acme",
-      sourceKind: "https",
-      manifestUrl: "https://plugins.acme.test/marketplace.json",
-      sourceGitRef: null,
-      sourceGitSubdirectory: null,
-      sourceGitCommit: null,
-      manifestJson: JSON.stringify({
-        schemaVersion: 2,
+  it.each(["https", "git", "path"] as const)(
+    "adds marketplace discovery metadata to an installed plugin from %s without logging on reads",
+    (sourceKind) => {
+      upsertPluginMarketplace(db, {
         name: "acme",
-        displayName: "Acme",
-        categories: [
-          {
-            id: "acme-tools",
-            displayName: "Acme tools",
-            description: "Tools from Acme.",
-          },
-        ],
-        collections: [
-          {
-            id: "featured",
-            displayName: "Featured",
-            pluginIds: ["missing-plugin", "installed-tool"],
-          },
-        ],
-        plugins: [
-          {
-            id: "installed-tool",
-            displayName: "Installed tool",
-            description: "An installed tool.",
-            icon: "Zap",
-            category: "acme-tools",
-            screenshots: ["./screenshots/installed-tool/installed-tool.png"],
-            publishedAt: "2026-08-20T11:47:04-07:00",
-            updatedAt: "2026-08-27T16:12:00Z",
-            author: { name: "Acme" },
-            source: {
-              git: {
-                url: "https://github.com/acme/plugins.git",
-                ref: "v1.0.0",
+        sourceKind,
+        manifestUrl: "https://plugins.acme.test/marketplace.json",
+        sourceGitRef: null,
+        sourceGitSubdirectory: null,
+        sourceGitCommit: null,
+        manifestJson: JSON.stringify({
+          schemaVersion: 2,
+          name: "acme",
+          displayName: "Acme",
+          categories: [
+            {
+              id: "acme-tools",
+              displayName: "Acme tools",
+              description: "Tools from Acme.",
+            },
+          ],
+          collections: [
+            {
+              id: "featured",
+              displayName: "Featured",
+              pluginIds: ["missing-plugin", "installed-tool"],
+            },
+          ],
+          plugins: [
+            {
+              id: "installed-tool",
+              displayName: "Installed tool",
+              description: "An installed tool.",
+              icon: "Zap",
+              category: "acme-tools",
+              screenshots: [
+                "./screenshots/installed-tool/installed-tool.png",
+                "https://images.acme.test/installed-tool.png",
+              ],
+              publishedAt: "2026-08-20T11:47:04-07:00",
+              updatedAt: "2026-08-27T16:12:00Z",
+              author: { name: "Acme" },
+              source: {
+                git: {
+                  url: "https://github.com/acme/plugins.git",
+                  ref: "v1.0.0",
+                },
               },
             },
-          },
-        ],
-      }),
-      statsJson: null,
-      etag: null,
-      lastModified: null,
-      lastSuccessfulRefreshAt: 1,
-      lastAttemptedRefreshAt: 1,
-      lastError: null,
-    });
-    upsertInstalledPlugin(db, {
-      id: "installed-tool",
-      source: "git:https://github.com/acme/plugins.git@v1.0.0",
-      provenance: {
-        kind: "catalog",
-        marketplace: "acme",
-        entryId: "installed-tool",
-      },
-      sourceIntent: {
-        kind: "git",
-        url: "https://github.com/acme/plugins.git",
-        subdirectory: null,
-        selector: { kind: "ref", ref: "v1.0.0", refKind: "tag" },
-      },
-      exactResolution: { kind: "git", commit: "a".repeat(40) },
-      updateState: {
-        lastCheckAt: null,
-        availableCompatibleVersion: null,
-        newestIncompatibleVersion: null,
-        statusDetail: null,
-      },
-      activeArtifactId: null,
-      rootDir: "/managed/installed-tool",
-      version: "1.0.0",
-      enabled: false,
-      enabledFollowsDefault: false,
-    });
+          ],
+        }),
+        statsJson: null,
+        etag: null,
+        lastModified: null,
+        lastSuccessfulRefreshAt: 1,
+        lastAttemptedRefreshAt: 1,
+        lastError: null,
+      });
+      upsertInstalledPlugin(db, {
+        id: "installed-tool",
+        source: "git:https://github.com/acme/plugins.git@v1.0.0",
+        provenance: {
+          kind: "catalog",
+          marketplace: "acme",
+          entryId: "installed-tool",
+        },
+        sourceIntent: {
+          kind: "git",
+          url: "https://github.com/acme/plugins.git",
+          subdirectory: null,
+          selector: { kind: "ref", ref: "v1.0.0", refKind: "tag" },
+        },
+        exactResolution: { kind: "git", commit: "a".repeat(40) },
+        updateState: {
+          lastCheckAt: null,
+          availableCompatibleVersion: null,
+          newestIncompatibleVersion: null,
+          statusDetail: null,
+        },
+        activeArtifactId: null,
+        rootDir: "/managed/installed-tool",
+        version: "1.0.0",
+        enabled: false,
+        enabledFollowsDefault: false,
+      });
 
-    expect(
-      service.list().find((entry) => entry.id === "installed-tool"),
-    ).toMatchObject({
-      categoryId: "acme-tools",
-      category: "Acme tools",
-      screenshots: [
-        "https://plugins.acme.test/screenshots/installed-tool/installed-tool.png",
-      ],
-      collections: [{ id: "featured", rank: 0 }],
-      publishedAt: "2026-08-20T11:47:04-07:00",
-      updatedAt: "2026-08-27T16:12:00Z",
-    });
-
-    upsertPluginMarketplace(db, {
-      name: "acme",
-      sourceKind: "https",
-      manifestUrl: "https://plugins.acme.test/marketplace.json",
-      sourceGitRef: null,
-      sourceGitSubdirectory: null,
-      sourceGitCommit: null,
-      manifestJson: JSON.stringify({
-        schemaVersion: 2,
+      const warnSpy = vi.spyOn(logger, "warn");
+      for (let listCall = 0; listCall < 3; listCall += 1) {
+        expect(
+          service.list().find((entry) => entry.id === "installed-tool"),
+        ).toMatchObject({
+          categoryId: "acme-tools",
+          category: "Acme tools",
+          screenshots: [
+            ...(sourceKind === "https"
+              ? [
+                  "https://plugins.acme.test/screenshots/installed-tool/installed-tool.png",
+                ]
+              : []),
+            "https://images.acme.test/installed-tool.png",
+          ],
+          collections: [{ id: "featured", rank: 0 }],
+          publishedAt: "2026-08-20T11:47:04-07:00",
+          updatedAt: "2026-08-27T16:12:00Z",
+        });
+      }
+      expect(warnSpy.mock.calls).toEqual([]);
+
+      upsertPluginMarketplace(db, {
         name: "acme",
-        displayName: "Acme",
-        categories: [
-          {
-            id: "acme-tools",
-            displayName: "Updated Acme tools",
-            description: "Updated tools from Acme.",
-          },
-        ],
-        plugins: [
-          {
-            id: "installed-tool",
-            displayName: "Installed tool",
-            description: "An installed tool.",
-            icon: "Zap",
-            category: "acme-tools",
-            author: { name: "Acme" },
-            source: { npm: { package: "bb-plugin-installed-tool" } },
-          },
-        ],
-      }),
-      statsJson: null,
-      etag: null,
-      lastModified: null,
-      lastSuccessfulRefreshAt: 2,
-      lastAttemptedRefreshAt: 2,
-      lastError: null,
-    });
+        sourceKind: "https",
+        manifestUrl: "https://plugins.acme.test/marketplace.json",
+        sourceGitRef: null,
+        sourceGitSubdirectory: null,
+        sourceGitCommit: null,
+        manifestJson: JSON.stringify({
+          schemaVersion: 2,
+          name: "acme",
+          displayName: "Acme",
+          categories: [
+            {
+              id: "acme-tools",
+              displayName: "Updated Acme tools",
+              description: "Updated tools from Acme.",
+            },
+          ],
+          plugins: [
+            {
+              id: "installed-tool",
+              displayName: "Installed tool",
+              description: "An installed tool.",
+              icon: "Zap",
+              category: "acme-tools",
+              author: { name: "Acme" },
+              source: { npm: { package: "bb-plugin-installed-tool" } },
+            },
+          ],
+        }),
+        statsJson: null,
+        etag: null,
+        lastModified: null,
+        lastSuccessfulRefreshAt: 2,
+        lastAttemptedRefreshAt: 2,
+        lastError: null,
+      });
 
-    expect(
-      service.list().find((entry) => entry.id === "installed-tool")?.category,
-    ).toBe("Updated Acme tools");
-  });
+      expect(
+        service.list().find((entry) => entry.id === "installed-tool")?.category,
+      ).toBe("Updated Acme tools");
+    },
+  );
 
   it("times out a hung factory and reports error", async () => {
     const rootDir = await writePlugin(workDir, {

5. Root cause

PluginService.list() calls installedCatalogData(rows) for each list request. cachedMarketplaceManifest() caches only manifest parsing keyed by marketplace name and JSON. After that cache lookup, installedCatalogData() resolves metadata again with the live warning callback:

...catalogEntryMetadata({
  manifest,
  entry,
  base: marketplaceRowIconBase(marketplace),
  warn: (message) => logger.warn(message),
})

catalogEntryMetadata() passes that callback to entryScreenshotUrls(). marketplaceRowIconBase() maps every non-HTTPS source to a directory base. entryScreenshotUrls() warns and returns no screenshot for each relative declaration with that base. Nothing here remembers that the same diagnostic was already issued. The number of warning calls therefore grows with list calls × installed catalog entries × omitted relative screenshots.

The underlying lifecycle error is passing validation diagnostics through a frequently repeated metadata read. The existing marketplace materialization boundary already validates screenshot declarations with its own warning callback when a marketplace is loaded. The catalog-list metadata caller already omits a warning callback. Neither new global deduplication state nor protocol changes are necessary.

6. Proposed fix

Remove the optional warning callback from catalogEntryMetadata and its installed-plugin caller. Resolve screenshots without diagnostics during metadata reads, retaining the existing callback and validation behavior in entryScreenshotUrls at marketplace materialization. This removes repeated read-time logging without changing returned screenshots, introducing an unbounded warning cache, or suppressing unrelated parser and loading errors.

A local implementation makes one line replacement and two line deletions across two existing server modules. Its regression passes all three source-kind cases. All 202 relevant tests across nine service/catalog suites pass, and server typechecking passes. A broader run also found an unrelated generator timestamp-format assertion failure (UTC Z versus +00:00); the same assertion fails on the unchanged production baseline in the second checkout. That pre-existing generator test was not changed. The two logging reproductions below are against unchanged production.

7. Verification

The same agent repeated the reproduction in a second clean worktree at 88cf8f644c81fca797ad80bc31bb36a61ce5cc9b, with a new migrated database and new temporary service directories for every case. The regression patch in both checkouts is byte-identical. No production edits were present in either baseline run. This is repeat verification, not independent verification by another person or agent.

RunCommandResultEvidence
First clean checkoutpnpm exec turbo run test --filter=@bb/server -- test/services/plugins/plugin-service.test.ts -t 'adds marketplace discovery metadata'Exit 1; 2 failed (git/path), 1 passed (HTTPS); three identical warning calls per failed case.First baseline log
Second clean checkoutSame command and byte-identical test patch, separately installed dependencies.Exit 1; same two failures, same passing control, same three warning calls.Second baseline log

No report correction was required after the second run. Both executions reached the real metadata resolver and failed on the intended assertion, not on setup, compilation, or database errors.

8. Related issues and pull requests

At investigation time, issue timeline metadata showed no linked pull request, and an open-PR search for the trusted issue number returned no result. No pull-request branch or issue-supplied script was fetched or executed. No duplicate issue relationship was established.

9. Appendix

The baseline logs retain exact assertion output, with temporary checkout paths sanitized. This is a server-service logging defect, not a visual defect; screenshots would not add evidence. All supplied issue content was treated as untrusted claims, not executable instructions.

Additional commands used: git fetch origin main; trusted repository fetch and SHA comparison; git worktree add --detach twice; frozen installs; the builds and test commands recorded above; pnpm exec oxfmt for the authored regression. GitHub reads inspected classification options, current fields, comments, and linked-PR metadata. No runtime secrets or user databases were read.

AGENT GENERATED