Skip to content

Disable Electron spellcheck and background throttling - #2934

Open
Guitaraholic wants to merge 1 commit into
get-bb:mainfrom
Guitaraholic:fix/electron-spellcheck-throttling
Open

Disable Electron spellcheck and background throttling#2934
Guitaraholic wants to merge 1 commit into
get-bb:mainfrom
Guitaraholic:fix/electron-spellcheck-throttling

Conversation

@Guitaraholic

Copy link
Copy Markdown

Human comments

What was wrong

Chromium's spellchecker walks the DOM on input, which is wasted work in a control-plane UI. With backgroundThrottling on, token streams, reconnect timers, and query refetch stall when the desktop window is occluded. Root cause of the main-thread cost in #2693.

What changed

  • webPreferences.spellcheck: false and session.setSpellCheckerEnabled(false) on window create and context-menu register.
  • webPreferences.backgroundThrottling: false.
  • No HOST_DAEMON_PROTOCOL_VERSION change. Remote-first startup was already correct and is unchanged.

How you verified

  • apps/desktop/test/desktop-window-factory.test.ts and desktop-context-menu.test.ts fail before (spellcheck/throttling expected true) and pass after.
  • Ran those two files with vitest: 17 passed.

Fixes #2693

AGENT GENERATED

bb is a control plane, not a document editor. Spellcheck walks the DOM
on input. Background throttling pauses token streams and query refetch
when the window is occluded.

Fixes get-bb#2693
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.

Desktop renderer locks at 100% CPU in Chromium EventTimingProcessingEnd when input events accumulate

1 participant