Linux and Windows now hand the local API's POST /control to the shared
control host, so the CLI reaches every OS through local-api.json and
call_control. The Linux socket's Request::Control and the Windows named
pipe (windows_control) are gone.
* One hex control CLI and protocol on every OS
One command tree (control::cli) on macOS, Linux, and Windows, carried by
each OS's owner-only transport: the macOS local API, the Linux socket's
Request::Control, and a new Windows named pipe (windows_control) that only
this user's SID can open and whose server the client verifies. Linux and
Windows share one host (control::host) through thin adapters; what an OS
can't do answers unsupported at runtime.
Windows gains dictation (with stop --print), paste-last, quit, restart,
start, a live status, and every annotate command; Linux and Windows gain
settings, model, window, vocabulary, history clear, check-for-updates,
launch-at-login, onboarding reset, logs, commands init|check, and annotate
status. hex status reports the OS's capabilities, settings name the
capability they need (set refuses, list marks), and a parity test requires
a recorded reason for every capability that differs across OSes.
* Windows control pipe: always hold an unconnected instance; check the client's user
* Shared control: meetings, history, and mcp on every OS now that the meetings store does
The Linux host, the single-instance socket, the HUD, and the window run in
one process. A relaunch forwards Activate with the launcher's activation
token; hex dictation, voice-action, paste-last, status, and quit forward
over the same socket, and shortcut commands go straight to the listener.
Without an instance a launch starts the managed unit (Type=notify) or
becomes Hex. The Rune window is the default on rune-ui builds and talks to
the host directly; GPUI stays behind --ui gpui. Quit Hex lives in the
sidebar.
hex start/stop/restart/status and the keybinding commands print one line and
exit 1 instead of a color-eyre report. hex restart without a display keeps the
saved session.env instead of refusing, and systemctl waits past the unit's
30 s stop timeout. Snapshots report Unregistered shortcuts until a listener
has registered them, rather than defaulting to the X11 mode.
Wayland shortcuts no longer read /dev/input. One state machine in
linux_input now serves every source:
- X11: the existing key grabs, with auto-repeat filtering split out and
tested, and the inline gesture flags replaced by the shared rules.
- Wayland with the GlobalShortcuts portal: Register("hex"), one session for
dictation, Paste Last, and Voice Action, and a second session that binds
Escape (also with the held shortcut's modifiers) only while recording.
Activated/Deactivated are press/release; refused shortcuts and the
trigger the desktop actually granted show in Settings; a closed session
cancels and stops the listener with an error.
- Everywhere: `hex dictation start|stop|toggle|cancel`,
`hex voice-action start|stop|toggle`, and `hex paste-last` talk to the
running service over its socket for desktops without the portal. They
are idempotent, never start the service, and fail clearly when it is
missing or not listening.
Settings records shortcuts from its own key events on Wayland too, lists
the granted triggers, or, without the portal, hides the shortcut rows and
lists the commands. Wayland paste no longer waits for held modifiers:
wtype's virtual keyboard sends its own, and the Wayland paste smoke now
pastes while another keyboard holds Ctrl and Alt.
Removes linux_wayland_input.rs, the evdev and udev crates, libudev-dev in
CI, and every input-group requirement from the docs. Also gates
AppWindowPreview::pane to macOS, whose only callers broke the Linux
Clippy build.
* feat(settings): one settings.json on every OS with a one-time Windows and Linux migration
AppSettings compiles on macOS, Windows, and Linux and is the only persisted
settings file. Shortcuts use one HotkeyBinding: macOS identifies the key by
its layout-resolved code; Windows and Linux by the key name in its label,
which their input layers translate. The first launch adopts
windows-settings.json or linux-settings.json and keeps the old file as
*.migrated. WindowsSettings and LinuxSettings remain as runtime views
projected from AppSettings for the dictation loops, and their save merges
back into settings.json.
* feat(ui): open the shared AppWindow on macOS, Windows, and Linux
app_window.rs is the one desktop window. Each OS supplies a platform
module (app_window/macos.rs, windows.rs, linux.rs) with the same items:
its window state, a Capabilities struct that decides which panes and rows
exist, window chrome, and the actions only its runtime can perform.
- macOS keeps its look; Meetings, Commands, the HUD Lab, permission
prompts, Sparkle, and the Dock icon move into app_window/macos.rs.
- Windows opens AppWindow under its 40 px caption with a full-height
sidebar, Segoe UI, and Fluent icons. The tray, HUD window, and listener
host stay in windows_app.rs; saved settings reach the host through
WindowsDesktopHost::apply_settings. Shortcuts record by polling the
keyboard state.
- Linux's Settings process opens AppWindow, saves settings.json, and asks
hex.service to reload it (Request::ReloadSettings).
- New shared rows, shown only where a capability allows: the
Enabled/Disabled listener card, Enable on launch, Recording indicator,
Interface language, Software updates, and Terminal paste.
- onboarding, login_item, application_catalog, transcription_preparation,
personal_commands, and the command modules compile on every OS.
- HEX_LEGACY_UI=1 keeps the previous Windows and Linux screens until they
are deleted.
* test(linux): service IPC checks read settings.json and cover ReloadSettings
* fix(ui): drag the window by its caption and empty sidebar, and keep settings controls unclipped
- The Windows caption row occludes the shared window's focus-on-click so
Windows receives the press for dragging, Aero Snap, double-click
maximize, and the caption buttons.
- Empty sidebar space moves the window on every OS: the caption hit test
on Windows, performWindowDragWithEvent on macOS, start_window_move on
Linux.
- Settings rows keep their controls at intrinsic width; the copy column
shrinks and wraps, and a control wraps below the copy only when the row
is narrower than both. Shortcut controls size word keycaps (Ctrl,
Space) by their labels.
* fix(macos): pass the main-thread marker to NSEvent::window
* refactor(windows): delete the legacy Windows screens and WindowsSettings
The Windows host keeps the listener, tray, and HUD and reads AppSettings
directly. WindowsHotkey moves into windows_input as the keyboard hook's
binding type; windows_migration reads the beta's windows-settings.json once.
The Windows-only desktop_* panes, windows_desktop_host, and HEX_LEGACY_UI
on Windows are gone.
* refactor(linux): delete LinuxApp and LinuxSettings; the service records shortcuts and prepares models
The Settings window asks hex.service to record the dictation shortcut
(Wayland reads physical keys in the service; X11 records in the window and
the service registers it) and to prepare models, so closing Settings never
cancels a download. The service saves only what it owns on top of the
current settings.json. LinuxHotkey moves into linux_input; linux_migration
reads the beta's linux-settings.json once. Modes > Transformations shows the
custom transformations workspace setup where there is no Commands pane.
* fix(linux): compile the service tests and IPC check against settings.json
* fix(ui): hide While dictating, Microphone mode, and Double-tap only where the runtime lacks them
* feat(settings): switch English dictation to Parakeet Unified English once
On the first load of settings that predate it, every user dictating in
English moves to the streaming English model, on every OS and for migrated
Windows and Linux beta files. settings.json records the switch in a new
migrations list, so it runs once and a later choice sticks. The previous
model stays downloaded and in the recent models. Other languages and Auto
keep their model.
* fix(linux): start the listener at service launch only when Enable on launch is on