Commit Graph
15 Commits
Author SHA1 Message Date
Kit Langton 9f078b9a40 feat(history): find dictations and captures together on Mac (#1932)
* Stage clipboard-preserving capture insertion for Paste Last on Mac

* Update Rune and its Nix source hash for the picker work

* Select the latest ready paste by owner identity and revalidate it

* Exercise a held mixed paste picker with real bundles and a private Mac pasteboard

* Publish ready Annotate identity and queue owner-specific paste requests

* Wire the existing Mac paste shortcut and controls to the opt-in mixed picker

* Recheck the selected field and cover Paste Last with a disposable Mac receiver

* Refresh the Rune revision for the unified History pane

* Unify Mac History and keep only spoken words after a deliberate dictation cancel

* History and Paste Last call a Hex capture an annotation (t1612)

A finished Hex capture is an Annotation in History, its details and the
Paste Last picker, and the type filter is Annotations. The Captures pane no
longer rewrites its own label when the unified History is on, and the search
index drops the old synonym. Scrawl stays only as Scrawl.app and the on-disk
.scrawl format; a Hex-owned format is separate file and engine work.

* Gate the unified History behind a Labs toggle and give it one row shape (t1612)

Labs › Paste Last picker (labs.paste_last_picker; macOS, Dev audience, off by
default) replaces HEX_EXPERIMENTAL_PASTE_LAST and is read where the work
starts: the picker and its gesture, History's unified list, and the cancel
path's word writer. Off, Paste Last and History behave exactly as before.

History's rows now share one shape for dictations, annotations, screenshots
and recordings; a capture's detail card carries its picture, words, facts and
actions; a search or the type filter never leaves a stale card open; an empty
History has one empty state; and the type filter shows only when there is more
than one kind to filter.

The picker's rows sit on its title's left edge.

* Show the Paste Last picker card on macOS only (t1612)

* Refresh the Labs goldens for the Paste Last picker card (t1612)

* Keep the unified History's capture helpers to macOS builds (t1612)

* Keep the unified History's fixture pictures behind the Mac capture gate (t1612)

* Point the docs at the Paste Last picker lab (t1612)
2026-11-19 19:52:09 -08:00
Dax e4d85b44aa windows: join back-to-back dictations with a space (#1980)
* windows: join back-to-back dictations with a space

move the input-activity revision, continuation join and its tests into a
platform-neutral continuation module. windows now invalidates it on real
keys and clicks from the low-level hooks and on foreground-window changes,
and the paster joins dictation and paste last the way macos does.

* windows: end continuations on real input and skip hex's own trigger

injected input from other tools and the auxiliary mouse buttons end a paste
continuation as on macOS, while Hex's own synthetic events and a dictation
trigger that Labs › Share shortcut lets through do not. A standalone macOS
paste clears the continuation only where dev did: at the start of typing, or
after the clipboard is preserved and checked.

* windows: a bare trigger key press ends the paste continuation

Labs › Share shortcut lets the dictation trigger's key reach the app in
front, and the hook treated every event for that key as hex's own. A
plain Space while Ctrl+Space is bound then kept the continuation, so the
next dictation joined with a space for no reason. Mark the press as the
shortcut's only once it claims the capture, and drive the hook's own
state machine in a test.
2026-11-18 19:28:07 -05:00
Dax ebdd971ce1 fix(dictation): release the warm mic while the display sleeps or the screen is locked (#1956)
* fix(dictation): release the warm mic while the display sleeps or the screen is locked (#1953)

* fix(dictation): address review on warm mic away release

* docs: fix hex microphone resume wording
2026-11-18 02:34:47 -05:00
Dax 9a79a25475 make the labs card copy plain (#1929)
* make the labs card copy plain

Rewrite the Labs card titles and lines in words a regular user understands:
YOLO mode says the message sends itself, Live text and Failure notices name
the small recording indicator, Vocabulary help says which speech models it
affects, and the key-side cards name Option, Command, Shift, and Control.
Audit every other card, updating the CLI descriptions, all nine translated
languages, the website lab catalog, the feature docs, and the render goldens.

* fix labs copy review findings

Restore the ISO qualifier on the section-key card, spell out that
double-tap and hold-through shortcuts contain no letter or number key,
cover all Global mode stages in the API text card, and name the print
command in the print-start copy. Restore the developer API card titles,
fix the Annotate capture wording, and retranslate the affected strings.
Remove every replaced translation key and stale lab-name reference.

* fix second labs copy review

Update the live typing test and YOLO goldens. Add a Windows variant of the
hold-through-keys copy naming Ctrl, Alt, Shift, and the Windows key. Remove
the last unused rewrite-by-voice translation key, keep Annotate untranslated
in the replay title, and clean the remaining old lab-name comments.

* use the Polish Annotate pane name in its replay title

Polish calls the Annotate pane Adnotacje, so the Annotate last 15 seconds
title says Ostatnie 15 sekund w Adnotacjach again. Other languages keep
Annotate because their pane name is Annotate.
2026-11-16 22:32:02 -05:00
Dax 32934acec4 labs: stop phrase finishes a hands-free dictation (#1886)
* labs: stop phrase finishes a hands-free dictation (#1884)

* stop phrase: finish to idle, fire on committed words, tidy logs
2026-11-16 06:19:37 -05:00
Kit Langton 7681742c56 Keep dictating through Return, cancel a held dictation with Escape, and let Escape stop a YOLO send (t1561) (#1817) 2026-11-13 21:17:12 -08:00
Dax 9d040bacb1 feat(labs): let the rewrite read text around the cursor (macOS) (#1815)
* feat(labs): let the rewrite read text around the cursor (macOS)

* fix(labs): bound returned cursor text, escape tags, re-check lab at finish
2026-11-13 23:36:24 -05:00
Kit Langton 8ce167876a refactor: derive hand-kept lists and literals from one source (t1539) (#1749) 2026-11-12 11:58:11 -08:00
Dax 2174ea2980 labs: screen vocabulary (macos) (#1719)
* add screen vocabulary lab (macos)

* screen vocabulary: fix review (model gate, visible text, extraction, pending read)

- read the screen only when the selected model uses terms: Parakeet needs
  Vocabulary biasing on and a boost other than Off; keep the live stream for
  models that ignore the terms
- read AXVisibleCharacterRange for large text values, check
  AXNumberOfCharacters before copying, and cap each value at 4 KB
- reject hex ids, ordinals, times, units, and random digit tokens; allow
  2-letter acronyms; add a small window-label stoplist
- gate the reader on a pending capture, allow one reader at a time, and test
  the begin/intend/cancel sequence
- document the Parakeet gate, the whole-clip cost, the soft deadline, and the
  debug count log

* screen vocabulary: match accessibility's CFNumberGetValue declaration

* screen vocabulary: drop long all-caps words and log markers

- require a lowercase letter in the mixed-case branch, so WARNING,
  DEPRECATED, and CHANGELOG are not terms while NVIDIA and PostgreSQL stay
- add INFO, DEBUG, ERROR, WARN, TODO, FIXME, NOTE, and TRACE to the stoplist
- list the new tests, including one_screen_read_runs_at_a_time, in the docs
2026-11-12 07:43:56 -05: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
Kit Langton 50880a69c3 keep a shortcut's interrupted audio when the next press is already queued (t1510) (#1675) 2026-11-10 18:02:11 -08:00
Dax bce4d0451d add pause from menu bar lab (#1654)
* add pause from menu bar lab (#82)

* pause: hold a resume through Caps Lock and follow the pause in the menu

The neutral-keyboard check skipped Caps Lock and a stale Fn flag, the
menu kept saying Pause Hex while a resume waited, and every listener
pass took the pause lock. Also gate Caps Lock dictation on suspended
shortcuts, refresh secure-input hotkeys at once, and correct the labs
doc's claims.

* pause: drop the unused pause and resume entry points
2026-11-10 17:51:36 -05:00
Dax fda67bd086 keep an interrupted dictation instead of discarding it (#1647)
* keep an interrupted dictation instead of discarding it (#1645)

* address review: raw salvage, silent loss, engine state

* docs: clarify interrupted dictation keep
2026-11-10 14:45:04 -05:00
Dax 6fa9f18bf4 labs: more dictation shortcuts, each with its own mode (#1603)
* more dictation shortcuts: up to four extras, each with its own mode

Labs › More dictation shortcuts (macOS) adds up to four more dictation
shortcuts beside the main one. Each saved row keeps its own binding and
activation mode, registers only while the Lab is on, and shares no key
with another active shortcut. Settings records, clears, and rebinds each
row; the listener runs every press through the same capture pipeline, so
each shortcut finishes with the mode it was pressed with.

* more dictation shortcuts: review fixes

* more dictation shortcuts: follow lone-modifier double-tap, narrow globe check

* more dictation shortcuts: doc nits

* more dictation shortcuts: rebase fixes

Moves the recorded-shortcut checks beside the rest of the shortcut text in
`control/settings/hotkeys.rs` so `control/settings.rs` stays under the
1,500-line ceiling, drops the `labs.rs` size exception now that dev moved the
Feature registry into `labs/feature.rs`, and counts Meeting notes file
alongside More dictation shortcuts in `Feature::ALL`.
2026-11-10 06:25:59 -05:00
Dax 55172a77e9 stop launching osascript on every context poll (#1567)
* stop launching osascript on every context poll

the foreground context monitor read a scriptable browser's page through osascript every 500 ms, and the meeting watcher queried browser tabs every second for a whole call. launching processes that often leaks WindowServer ports until macos kills it. the monitor now reads the page once per frontmost browser and once per dictation shortcut, and the meeting tab probe backs off to every 30 s after its first 30 s.

fixes #1565

* request the page refresh once a capture is real

* docs: say when a discarded press still reads the page
2026-11-08 22:20:14 -05:00