* test(macos): show Touch Bar updates are sent on every tab title change TouchbarService sends `window-set-touch-bar` on every tab title change, and each message makes the main process replace every segment of the Touch Bar's NSSegmentedControl. On macOS 26 that control is drawn with SwiftUI on every Mac, Touch Bar or not, and each replacement leaves observation state behind that makes the next one slower. After days of title updates the main process freezes for seconds at a time. The test changes a tab title 20 times a second for 2.5 seconds and expects at most 3 updates; today it gets 50. It also expects a way to turn the updates off. Both fail until the next commit. Adds an `electron` stub (ipcRenderer records what is sent) and `Platform` to the unit-test module hooks so the service can load under `node --test`. * fix(macos): stop Touch Bar updates from freezing the app after long uptime On macOS 26 the Touch Bar's NSSegmentedControl is drawn with SwiftUI, on every Mac whether it has a Touch Bar or not. Each time its segments are replaced it runs a layout pass whose observation state keeps growing, so the pass gets slower with every update. Tabby replaced the segments on every tab title change, and after a few days the main process spent seconds per update, freezing input in every window. - Send Touch Bar state at most once a second. - In the main process, replace the segments only when they change; a tab switch now only moves the selection. - Add hacks.disableTouchBar (Settings > Window > Disable Touch Bar) to skip creating the control at all. * fixup --------- Co-authored-by: Eugene <inbox@null.page>
Tabby Core Plugin
See also:
This module provides:
- tabbed interface services
- toolbar UI
- config file management
- hotkeys
- tab recovery
- logging
- theming
Using the API:
import { AppService, TabContextMenuItemProvider } from 'tabby-core'
Exporting your subclasses:
@NgModule({
...
providers: [
...
{ provide: TabContextMenuItemProvider, useClass: MyContextMenu, multi: true },
...
]
})