mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-21 17:56:51 +08:00
* Windows and Linux read the browser's page only when processing uses it macOS asks a browser for its page only while a website mode, an OpenCode rewrite, or a script transformation is set up. Windows walked the focused browser's UI Automation tree on every browser dictation, and the paste waited up to 300 ms for it; Linux asked AT-SPI for every dictation, before the paste, for up to 400 ms. ModeRuntime now keeps the same rule (`reads_page`, from the predicate macOS uses). Windows starts no UIA walk without it, and Linux asks AT-SPI only for the page or for the process of a window the display server names no other way. A dictation without processing never reads the page. perf/dictation.bench.ts gains a Windows `browser` case: Edge in front on a long local page, then the dictation case's stop. * dictation bench: the browser case runs on Linux too (Chromium on X11, espeak-ng speech)