← reports

#6391 · App shell leaves font smoothing implicit

BugPriority: LowEffort: Lowui · desktop · partial-reproGitHub issue2026-10-27

Base: 7125b90a6f7812e40d8e8509f53cecd301c84881

PARTIALLY REPRODUCED · Root-cause confidence: medium

1. TL;DR

The report concerns text that appears heavier or less clear in the macOS desktop app. On trusted main, the app's base body rule does not choose an explicit font-smoothing mode; a real production build also contains no smoothing declaration in its main stylesheet. Three embedded surfaces explicitly request antialiasing, so the application's styling policy is inconsistent. The same agent repeated this artifact-level finding in a second clean checkout. This Linux host has neither macOS/Retina hardware nor an available Chrome executable, so the reported visual degradation, browser default, and improvement from changing smoothing are not verified.

2. Claims vs findings

ClaimStatusEvidence
The main application lacks an explicit smoothing rule.Verified on mainSource body rule and independently built main stylesheet agree in both checkouts.
Some embedded surfaces explicitly enable antialiasing.VerifiedDocs editor, tasks editor, and inline visualization frame each contain a declaration.
macOS desktop glyphs look heavier or blurrier.UnverifiedNo macOS desktop display was available. Missing CSS alone cannot prove this perceptual effect.
A smoothing change restores comparable sharpness.UnverifiedNo native before/after experiment was possible.
A particular Chromium default or another app's stylesheet explains the difference.UnverifiedNo computed macOS style or comparison-app bundle was inspected.
The release mentioned in the issue has the same behavior.UnverifiedThis investigation ran trusted main, not a release installer.

3. Environment

4. Minimal reproduction

This is an artifact diagnostic, not a visual regression test. It does not assert that a particular font-rendering policy is required, and a successful exit does not reproduce the macOS symptom.

  1. Fetch trusted main and create two clean worktrees at the recorded base:
    git fetch https://github.com/get-bb/bb.git main
    git worktree add --detach ../bb-6391-base 7125b90a6f7812e40d8e8509f53cecd301c84881
    git worktree add --detach ../bb-6391-verify 7125b90a6f7812e40d8e8509f53cecd301c84881
  2. In each worktree, install the locked dependencies and build through Turbo:
    pnpm install --frozen-lockfile --prefer-offline
    pnpm exec turbo run build --filter=@get-bb/plugin-sdk
    pnpm exec turbo run build --filter=@bb/app

    The first checkout initially attempted the full monorepo build. A pre-existing parallel build ordering problem let the GitHub plugin run before SDK runtime output existed. After the SDK output was built, the app-scoped build passed. The second checkout built the SDK first and then the app successfully. This build-order failure is separate from text rendering.

  3. Save the diagnostic below as inspect-styles.mjs outside the source checkout and run it against each worktree:
    node inspect-styles.mjs ../bb-6391-base
    node inspect-styles.mjs ../bb-6391-verify

Exact diagnostic used in both runs:

import { readFileSync, readdirSync } from "node:fs";
import { resolve } from "node:path";
import { createHash } from "node:crypto";
import { execFileSync } from "node:child_process";

const checkout = resolve(process.argv[2] ?? ".");
const themePath = "apps/app/src/components/ui/theme.css";
const source = readFileSync(resolve(checkout, themePath), "utf8");
const bodyBlock = source.match(/\n  body \{([\s\S]*?)\n  \}/)?.[1];
if (!bodyBlock) throw new Error("Could not locate the base body rule");
const assets = resolve(checkout, "apps/app/dist/assets");
const stylesheetNames = readdirSync(assets).filter((name) =>
  /^index-.*\.css$/.test(name),
);
if (stylesheetNames.length === 0) throw new Error("Build the app first");
const stylesheets = stylesheetNames.map((name) => ({
  name,
  css: readFileSync(resolve(assets, name), "utf8"),
}));
const bodyRules = stylesheets.flatMap(({ name, css }) =>
  Array.from(css.matchAll(/(?:^|[{}])body\{([^{}]*)\}/g), (match) => ({
    stylesheet: name,
    declarations: match[1],
  })),
);
if (bodyRules.length === 0) throw new Error("No compiled body rule found");
const surfaces = [
  "plugins/docs/app.tsx",
  "plugins/tasks/editor/tasks-editor.tsx",
  "plugins/inline-vis/frame.ts",
].map((path) => ({
  path,
  explicitlyAntialiased: /-webkit-font-smoothing:\s*antialiased/.test(
    readFileSync(resolve(checkout, path), "utf8"),
  ),
}));
console.log(JSON.stringify({
  baseCommit: execFileSync("git", ["-C", checkout, "rev-parse", "HEAD"], {
    encoding: "utf8",
  }).trim(),
  platform: process.platform,
  node: process.version,
  themeSha256: createHash("sha256").update(source).digest("hex"),
  sourceBody: bodyBlock.trim(),
  compiledBodyRules: bodyRules,
  compiledSmoothingDeclarationCount: stylesheets.reduce(
    (count, { css }) => count + (css.match(/(?:-webkit-font-smoothing|-moz-osx-font-smoothing)\s*:/g)?.length ?? 0),
    0,
  ),
  surfaces,
  limitation: "Artifact inspection only; this does not test macOS glyph rendering or establish a browser default.",
}, null, 2));

Expected for a consistent explicit smoothing policy: the shell would declare the same relevant smoothing preference as the embedded surfaces. This is a candidate policy, not an already documented visual contract.

Actual diagnostic output, identical in both runs (exit 0):

{
  "baseCommit": "7125b90a6f7812e40d8e8509f53cecd301c84881",
  "platform": "linux",
  "node": "v22.19.0",
  "themeSha256": "0294ff8162b3533106d22d55852c44d27b467dfed243738056cf181c61f3d2f3",
  "sourceBody": "@apply bg-background text-foreground;\n    font-family: var(--font-sans);",
  "compiledBodyRules": [
    {
      "stylesheet": "index-BJKj55Qg.css",
      "declarations": "background-color:var(--background);color:var(--foreground);font-family:var(--font-sans)"
    }
  ],
  "compiledSmoothingDeclarationCount": 0,
  "surfaces": [
    {
      "path": "plugins/docs/app.tsx",
      "explicitlyAntialiased": true
    },
    {
      "path": "plugins/tasks/editor/tasks-editor.tsx",
      "explicitlyAntialiased": true
    },
    {
      "path": "plugins/inline-vis/frame.ts",
      "explicitlyAntialiased": true
    }
  ],
  "limitation": "Artifact inspection only; this does not test macOS glyph rendering or establish a browser default."
}

Visual evidence limitation: no screenshot is published because no browser or macOS display was available. An image fabricated from this diagnostic would not demonstrate the reported visual bug. Issue attachments and external links were not fetched.

5. Root cause

The verified mechanism is an omitted shell-level rendering preference, not a demonstrated defect in a font file or Chromium. The application imports app.css from main.tsx, which imports theme.css. Its base body rule sets only background, foreground, and font family:

body {
  @apply bg-background text-foreground;
  font-family: var(--font-sans);
}

By contrast, Docs, Tasks, and inline visualization frames set -webkit-font-smoothing: antialiased. The compiled artifact confirms this omission survives the build. That discrepancy is a plausible contributor to the reported platform-specific difference, but determining causation requires native measurement and visual comparison. Confidence is high for the omission, medium for its relationship to the reported symptom.

6. Proposed fix and safety gate

Next experiment: on macOS desktop at the pinned trusted commit, compare the same text, font, size, colors, display scale, and zoom before and after a temporary shell-level smoothing preference. Record computed styles and real screenshots, and compare nested editor surfaces. If that isolates the effect and the visual policy is accepted, centralize the preference in the existing base stylesheet rather than adding per-component overrides.

No production fix or pull request: the macOS visual bug was not reproduced. Artifact inspection is not a focused regression test that fails before and passes after a behavioral fix; no such test was invented. The autopilot simple-fix gate therefore does not pass. No source branch was pushed.

7. Verification

The same agent performed both runs; this is not independent verification. The second clean detached checkout used the exact same trusted commit, a separate frozen installation, an SDK build, and a fresh app build. Both app builds passed five Turbo tasks; both artifact diagnostics exited 0 and produced byte-identical JSON, including the source hash and compiled stylesheet name. Both source worktrees remained clean, and git diff --check passed. No runtime ports or data directories were created, so no port/data reuse occurred.

The conclusion was deliberately narrowed to PARTIALLY REPRODUCED. The second run supports the missing-declaration finding, not a native visual regression, a Chromium default, or a perceptual improvement.

Existing adjacent tests also passed in the first checkout: pnpm exec turbo run test --filter=@bb/app -- src/components/ui/theme.test.ts ran one file with 37 passing tests (six successful Turbo tasks). These tests do not verify macOS font rasterization.

8. Related issues and pull requests

The issue's connection/cross-reference timeline contained no linked pull request, and an open-PR search for issue 6391 returned none. Repository issue searches for font smoothing and blurry text returned only this issue at investigation time. No linked code, external attachment, or comparison application was executed or fetched.

9. Appendix and trust boundary

Classification: Type Bug; Priority Low (cosmetic, workaround reported); Effort Low (one existing styling subsystem). Added area labels: ui and desktop. The report verdict maps to partial-repro.

The issue and all its linked material were treated as untrusted claims. Its shell commands, suggested patch, and external/local file links were not followed. Diagnostic code was written from trusted main and only that repository code was built. Raw local build logs and diagnostic files remain outside this public report repository; the repeatable diagnostic and relevant output are included inline.

Additional checks: git status --short was empty for both source worktrees; git ls-remote https://github.com/get-bb/bb.git refs/heads/main still resolved to the recorded base. No dependency, schema, protocol, generated source, release process, or stored data was changed.