Skip to content

fix(app): register custom themes before starting diff workers - #3111

Merged
ymichael merged 1 commit into
get-bb:mainfrom
smsunarto:scott/diff-worker-theme
Sep 10, 2026
Merged

ymichael merged 1 commit into
get-bb:mainfrom
smsunarto:scott/diff-worker-theme

Conversation

@smsunarto

Copy link
Copy Markdown
Contributor

Human comments

What was wrong

Opening a thread with a plugin palette such as Monokai could leave diff bodies blank. The diff worker pool resolved its initial theme before the theme-sync component registered that palette's loader, producing No valid theme loader registered.

What changed

Register resolved custom theme files at the worker-pool acquisition boundary before creating the singleton. Existing theme synchronization still handles later palette changes.

How you verified

  • Added a regression test using Pierre's real theme resolver. It fails with the original missing-loader error before the fix and passes afterward.
  • Eight focused worker-pool and theme synchronization tests pass.
  • All CI test packages pass in a clean checkout with a minimal environment. The integration suite passes all 77 tests across 26 files with --maxWorkers=4.
  • Clean-branch CI build, typecheck, lint, bundle budgets, version guards, provider-literal ratchet, SDK npm guard, and macOS tarball smoke pass. The SDK guard used npm 10 for its supported JSON output.
  • Linux AppImage checks require a Linux/FUSE runner. Actions cache usage requires the GitHub Actions token and was skipped locally.
  • In the source-built dev app, cold-loaded a recovered Smart Diff using the Monokai palette. The diff body rendered with syntax highlighting and no browser errors.

AGENT GENERATED

@ymichael
ymichael merged commit f41d564 into get-bb:main Sep 10, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants