Skip to content

Disable the Monaco editor by default and rename it to File Editor - #2439

Merged
SawyerHood merged 2 commits into
mainfrom
bb/disable-monaco-plugin-by-default-thr_hrj23849f7
Aug 25, 2026
Merged

Disable the Monaco editor by default and rename it to File Editor#2439
SawyerHood merged 2 commits into
mainfrom
bb/disable-monaco-plugin-by-default-thr_hrj23849f7

Conversation

@SawyerHood

@SawyerHood SawyerHood commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

#2127 shipped the Monaco builtin with defaultEnabled: true. On a fresh install it replaces the read-only file preview for ~86 text extensions without the user opting in. Its user-facing name also described the engine (Monaco) rather than what it does in BB.

What changed

  • apps/server/src/services/plugins/builtin-registry.ts: monaco-editor now has defaultEnabled: false. A fresh database registers it disabled. Existing registrations keep their stored enabled state because reconciliation uses existing?.enabled ?? bundled.defaultEnabled, so this does not turn it off for users who already have it.
  • plugins/monaco-editor/package.json: manifest bb.name is now File Editor (Settings > Plugins, plugin store).
  • plugins/monaco-editor/app.tsx: the fileOpener title is now File Editor (Settings > File openers).
  • The plugin id monaco-editor, the directory, the package name, and the opener id monaco do not change, so existing registration rows and per-extension opt-outs still match.
  • packages/bb-app/scripts/smoke-tarball.mjs: monaco-editor leaves EXPECTED_RUNNING_BUILTIN_PLUGINS. That list is the default-enabled set the package smoke waits on, and a disabled plugin never reaches running.

No wire changes. No CLI or doc surfaces name the plugin.

How you verified

  • Added ships the File Editor (monaco-editor) disabled on a fresh database to apps/server/test/services/plugins/builtin-plugins.test.ts. It fails on main (defaultEnabled is true) and passes here.
  • pnpm exec turbo run test --filter=@bb/server -- test/services/plugins/builtin-plugins.test.ts test/services/plugins/official-plugins.test.ts: 34/34 pass.
  • pnpm exec turbo run test typecheck --filter=bb-plugin-monaco-editor: typecheck clean, 11/11 pass.
  • EAP codename scan of the working tree, HEAD, and origin/main..HEAD: clean.

AGENT GENERATED

SawyerHood and others added 2 commits August 25, 2026 23:22
The builtin from #2127 replaced the read-only file preview for ~86
extensions on every fresh install. Ship it opt-in instead: flip
defaultEnabled to false so a fresh database registers it disabled.
Existing registrations keep their stored enabled state.

Rename the user-facing strings to "File Editor": the manifest bb.name
shown in Settings > Plugins and the fileOpener title shown in
Settings > File openers. The plugin id monaco-editor and the opener id
monaco stay, so existing rows and per-extension opt-outs still match.

Co-Authored-By: Claude <noreply@anthropic.com>
The smoke waits for every default-enabled builtin to reach "running".
The File Editor now ships disabled, so the wait timed out on
monaco-editor=disabled. Remove it from the list; the list documents
itself as the default-enabled set.

Co-Authored-By: Claude <noreply@anthropic.com>
@SawyerHood
SawyerHood merged commit 2cfd2b5 into main Aug 25, 2026
15 checks passed
@SawyerHood
SawyerHood deleted the bb/disable-monaco-plugin-by-default-thr_hrj23849f7 branch August 25, 2026 23:32
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.

1 participant