Commit Graph
30 Commits
Author SHA1 Message Date
Dax f3eac75df1 fix(cli): transcribe long files in pieces (#1771)
* fix(cli): transcribe long files in pieces (#1769)

* fix(cli): skip silent pieces and refuse truncated files up front

* fix(cli): unique test files, honest read refusals, no detector download
2026-11-13 05:42:35 -05:00
Kit Langton cfe995752a fix: query recording owners and unify transformation startup (t1549) (#1760) 2026-11-12 17:56:25 -08:00
Kit Langton f7a741cc8b fix(settings): preserve other writers' changes when saving (#1747)
* fix(settings): merge edits through one persistence owner (t1533)

* fix(modes): focus the adopted correction without duplicating it (t1533)

* fix(settings): publish reversions even before the host saw the save (t1533)
2026-11-12 12:57:21 -08:00
Dax 911eec023a cli: hex dictation start --print keeps a dictation from pasting (labs) (#1705)
* cli: hex dictation start --print keeps a dictation from pasting (labs)

A client that starts a dictation to insert the text itself loses it when
the person finishes the locked recording with the shortcut, or when a
microphone loss salvages it: Hex pastes or copies into the focused app.

`hex dictation start --print` (macOS, behind Labs › Print-only CLI
dictation / `labs.print_start`) blocks and answers with the transcript
however the recording ends, so nothing is pasted or copied. It is busy
while a dictation records, a plain `stop` answers done, `stop --print`
joins the same transcript, no speech exits 4, a cancel or failure exits
1, and it waits at most 31 minutes. Linux and Windows answer
unsupported; CONTROL_VERSION stays 4.

# Conflicts:
#	src/labs.rs
#	src/rune_ui/labs.rs
#	tests/golden/rune-mac-labs-dark.png
#	tests/golden/rune-mac-labs-light.png
#	tests/golden/rune-mac-labs-link-dark.png
#	tests/golden/rune-mac-labs-link-light.png

* cli: harden hex dictation start --print's endings

# Conflicts:
#	src/labs.rs

* cli: bind the printing-start test's shortcut to Option

* labs: regenerate the Labs goldens for both new cards
2026-11-11 18:29:06 -05:00
Dax d182cba937 add hex transcribe for saved wav files (labs) (#1579)
* add hex transcribe for saved wav files (labs)

`hex transcribe <file> [--model] [--language]` prints a WAV recording's
transcript from Labs › Transcribe files, off by default. A running Hex
transcribes it on its dictation engine over the local API; with Hex stopped,
Linux and Windows load the model here and macOS answers not-running.

* fix hex transcribe refusals, read cap, and docs (labs)

- name a failed POST /transcriptions by the code in Hex's JSON body,
  with one message per server code and status only as a fallback
- say the lab is managed instead of naming `hex labs on` under a lock
- read through the 64 MiB cap and reuse those bytes offline
- document that clips up to 30 s use the engine's model and longer
  ones the service's own copy
- cover an early refusal during a large upload with a loopback test
2026-11-09 06:51:42 -05:00
Dax fca1082859 cli: select the model after an offline model install (#1443)
* cli: select the model after an offline `model install`

With Hex stopped, `hex model install` downloaded and verified the model but
never wrote the selection, so `model status`, `check`, and `transcribe` kept
using the previous one, and no message said so.

The offline branch now selects it as the app's own switch would: a Hex that
started while the download ran takes the choice over `model use`, otherwise
the selection is saved under the Linux service lock `settings apply` uses,
so a starting Hex is never written behind. An already selected model is left
alone, so login-time installs don't rewrite settings.json.

Docs say the offline install selects now, and a new app_settings test covers
the persisted round trip keeping unrelated settings.

* cli: wait for a starting Hex before selecting an installed model

`model install` with no Hex running saved the selection under the
service lock, and failed at once when a Hex already held it. Wait for
that Hex to answer instead, as `settings apply` does, through one
shared hand-off so the two paths can't drift. An unchanged selection
answers without taking the lock.
2026-11-08 09:33:32 -05:00
Dax b1a37aaa78 Labs: terminal paste shortcut on Windows and Linux (#1534)
* Add Labs terminal paste shortcut for Windows and Linux

* fix windows build: drop the unused key_down from input/modifiers

* allow the terminal-paste shortcut code to go unused on macos

* mask the second shortcut's menu modifier on auto-repeats

the mask was only set on the first press, so process_button cleared it on each
repeat key-down and a held capture over the repeat delay leaked a bare alt/win
release. set it on every trigger key-down like the dictation key and paste
last do.

* keep side_matches private

* keep the shortcut and dictation helpers under the source cap

windows/dictation.rs, rune_ui/general.rs, and linux/dictation.rs crossed 1,500
non-test lines after the rebase. move the registered-shortcut tables and the
General pane's shortcut rows into submodules, and refresh the Linux Labs
golden for Transform typed text and Terminal paste shortcut.

* call the global setting Terminal paste in typed text's refusal

the lab now owns the name Terminal paste shortcut, so the typed-text errors
and log line must name the global paste_with_shift setting instead.

* drop the terminal paste lab's unused encoded bit

no accessor reads it and no other lab has a bit without a reader; the feature
reads its saved switch directly through Feature::on.

* raw dictation has a hex command; the terminal paste shortcut does not
2026-11-08 07:30:29 -05:00
Dax 24eb49c7ff Labs: Transform typed text shortcut (Linux) (#1525)
* feat(linux): labs transform typed text shortcut (#1519)

* fix(linux): harden typed-text clipboard handling

* fix(linux): keep dictation clipboard fallback, sync typed-text keybinding

* refactor(control): keep shortcut text in its own settings module

settings.rs crossed the 1,500-line limit when Labs added the typed-text
key; the shortcut text parsing and formatting is the one self-contained
concern, so it moves to settings/hotkeys.rs unchanged.
2026-11-08 05:43:46 -05:00
Dax 5316493413 fix(linux): name the missing wl-copy before a Wayland paste fails (#1491)
* fix(linux): name the missing wl-copy before a Wayland paste

* fix(linux): address review on wl-copy warning

* fix(settings): show the wl-copy notice apart from dictation failures
2026-11-07 10:12:33 -05:00
Dax c20aaec3cf Toggle mode: a cancel shortcut, Escape by default (#786, #1022) (#1046)
* Toggle mode: a cancel shortcut, Escape by default (#786, #1022)

* Cancel shortcut row: scenes, goldens test, restore test

* test: refresh after editing settings

* Docs, AGENTS invariants, and goldens for Toggle's cancel shortcut
2026-11-02 11:54:22 -05:00
Dax 3a2304386d Remove dictation cancel: Escape ends nothing (#786) (#795)
* Remove dictation cancel: Escape ends nothing (#786)

* Format and refresh the sound sets and commands goldens

* Release Escape before finishing in the held-capture test
2026-11-01 06:16:03 -05:00
Kit Langton 4bc59552e2 Update feature docs for extracted submodules 2026-10-31 18:57:51 -07:00
Kit Langton 30a0fa3750 Update docs for capability folder paths in src/ 2026-10-31 16:12:40 -07:00
Kit Langton c430bc1b70 Update docs for transcription/, dictation/, desktop/, and microphone_activity/ 2026-10-31 15:13:56 -07:00
Kit Langton a385bd85cd Update docs for linux/, meeting/, and windows/ module paths 2026-10-31 14:32:07 -07:00
Dax 781a6566cb Dictate without processing: an optional second dictation shortcut (#451) (#607)
Records like the dictation shortcut and pastes the transcript as heard,
skipping replacements, corrections, transformations, and rewriting. Unbound
by default; set in the Output pane, raw_dictation_hotkey, or
hex dictation start|toggle --raw. History keeps it as Raw.

Suggested by @ksajan.
2026-10-31 13:05:02 -04:00
Dax d2b2fd1a89 Declarative settings in the Home Manager module (#588) (#590)
* Declarative settings in the Home Manager module (#588)

* Document declarative Home Manager settings (#588)
2026-10-31 11:06:17 -04:00
Dax fc92b99cc3 hex control rides the local API on every OS (#550)
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.
2026-10-30 22:46:10 -04:00
Dax b9ba1eb4a2 One hex control CLI and protocol on every OS (#544)
* 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
2026-10-30 22:41:39 -04:00
Dax 5b7df639ab Labs: one flat list of per-feature toggles, each off by default (#534)
* Labs: a flat list of per-feature toggles, each off by default

* wip

* Labs: playground item from the window's launch state; Windows terminal paste test

* Labs: docs, AGENTS.md, goldens
2026-10-30 21:48:39 -04:00
Dax 8b885e4202 Labs: one switch for every unfinished feature (#527)
* Labs: one switch for every unfinished feature

* Labs: hex settings key

* Labs: docs, AGENTS.md, and comments
2026-10-30 20:23:48 -04:00
Kit Langton a8a4645d45 Remove spoken commands and Moonshine (#424) 2026-10-29 17:36:38 -07:00
Kit Langton 3343015778 chore: remove Voice Action (t733) (#423) 2026-10-29 15:56:51 -07:00
Dax bfd53764bd feat: hex dictation stop --print prints the transcript instead of pasting it (#414)
Fixes #381
2026-10-29 17:18:03 -04:00
Kit Langton 317b9bf8e3 Deep links into the playground: hex://story/… and hex window story (t608) (#305) 2026-10-28 13:28:50 -07:00
Dax 3434eb5f35 Rename voice-control to hex everywhere, without migrations (#293)
* Rename voice-control to hex everywhere, without migrations

The Cargo package and binary are now hex, every OS keeps its data in a
hex folder, and VOICE_CONTROL_* variables are HEX_*. Hex is a fresh
app: the macOS voice-control rename, its symlink, and the Windows and
Linux beta settings imports are gone. The Windows installer gets a new
AppId so it never takes over an old voice-control install's entry.

* Format

* Drop the Windows paste-last default only the beta import used
2026-10-28 13:08:44 -04:00
Kit Langton 29a6dc0f1d Feature-owned panes: General, Meetings settings, Commands card, Experiments
Settings becomes General: Dictation, Output, and Application cards that fit
the default macOS window, with Microphone mode and Double-tap only behind an
Advanced disclosure. Shortcut mode and Double-tap to lock stay separate;
Double-tap to lock shows only for Hold. Check for updates moves under the
sidebar version, and the Voice Action shortcut lives only in its pane.

Each feature owns its settings: Meetings is always in the macOS sidebar
with a Recordings | Settings switch (Call recording, Calendar, Detected
calls) and an opt-in card while off; `hex window show meetings` opens it
instead of refusing. Commands gets an enable card and its model-failure
notice. Fun becomes Voice Filter, the only home of the Hex Microphone,
under a new Experiments sidebar group behind the `voice-filter` experiment
(or when the microphone is already on or installed), beside the debug HUD
Lab and Activity.

No setting changes meaning or loses its `hex settings` key. Captions that
restated their label are cut; new strings carry all five translations.
`hex window show settings` and status `window.pane` keep "settings".
2026-10-24 09:39:32 -07:00
Dax Raad ecb228b8a0 feat(updater): one in-app updater on the Anomaly release service; drop Sparkle
Hex polls anoma.ly/release/hex/desktop/<channel>.json on every OS and decides
with the release protocol's client rules (the service's shared test vectors in
tests/fixtures/release-protocol): strictly newer unless revoked, the minimum
version before rollout, and a device-local rollout bucket that is never sent.
Direct installs (Linux and Windows with the installer's receipt, macOS a
replaceable Hex.app) download resumably, check size and SHA-256, then the OS
code signature (macOS app/update-requirement.txt: Developer ID 5NZ4Q7NXJ4,
anomaly.hex, notarized; Windows Authenticode from Anomaly's Artifact Signing
identity), and stage the update for Restart to update. macOS swaps the bundle
in with renamex_np(RENAME_SWAP) at restart or quit; a read-only location links
to the DMG. Package-managed installs show their manager's command; source and
test builds never check; DisableUpdates (macOS defaults, Windows policy key)
turns checks off.

Sparkle, its framework, Info.plist keys, appcast generation, and the ed25519
feeds are gone. release-app.sh prepare leaves Hex-<v>-macos-arm64.dmg and .zip
(root Hex.app). Macs on 2.3.1 get packaging/macos/legacy-appcast.xml: one
informational item linking to anoma.ly/hex.
2026-10-24 11:03:26 -04:00
Kit Langton 82f3277bc4 Fix the control CLI review findings
- CLI dictation and Voice Action starts are intentional at once: the
  recording environment and live stream start, the start tone plays once the
  microphone is open, and a stop that discards the clip replies `discarded`
  instead of "transcribing".
- `hex model use` takes the installed-only path with the model's remembered
  language and hints; `--language` is checked with `validate`, so wildcard
  models no longer accept any string.
- `hex start` and `hex restart` forward every HEX_* variable through
  `open --env` (start from the caller, restart from the running app).
- An unforced quit or restart refuses when the listener can't answer.
- An idle cancel refuses while the other capture records, keeping Escape's
  order.
- Paste Last needs a ready listener and refuses while anything records or a
  shortcut gesture is pending.
2026-10-23 19:43:55 -07:00
Kit Langton 576295a004 Add the hex control CLI for driving the running app
One versioned protocol (src/control.rs) carried over the authenticated
POST /control route: status, start/quit/restart, dictation and Voice Action,
paste-last, meetings record/stop/copy-last, every persisted setting, models,
window, Commands, history clear, update checks, launch at login, and logs.
2026-10-23 19:43:55 -07:00