hex/src/rune_ui
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dax 68127fde7a
stream: a faster live-text geometry from the model's own menus (#2107)
* stream: a faster live-text geometry from the model's own menus

Live text trails speech by a whole chunk plus right context: 2.08 s on
Parakeet Unified English, whose default tuple is 70/13/13 frames. The only
knob was HEX_STREAM_CHUNK_MS, which forced right == chunk and silently
disabled streaming when the model's menu rejected the value.

Labs › Faster live text (labs.faster_live_text, off by default) asks for a
shorter tuple chosen from the model's own GGUF chunk menus: the largest
chunk frame count from 2 to 7 and the largest right up to 7, which is
560/560 ms on Unified English (70/7/7, 1.12 s of lookahead) at about 1.6
times the encoder work. A file whose header Hex cannot read still asks for
560/560 in shipped 80 ms frames and trusts the native probe.

HEX_STREAM_RIGHT_MS joins HEX_STREAM_CHUNK_MS; a chunk alone still sets
the right context, and the env wins over the lab. A geometry the model's
menu rejects now warns and falls back to the default tuple instead of
turning streaming off.

The geometry is cached on the session with the tuning it was probed for,
and the engine compares that tuning as each live stream opens, so a toggle
change applies to the next capture without a restart (and every other
capture pays one comparison).

Measured by aymuos15: with 13-frame chunks, live text arrives about 2.08 s
behind speech, and right context is what delays it.

closes #2102

* audio: the press-across-reopen helper is Linux and Windows only

#2098 added a re-export of interruption::capture_idle for the two listeners
that read it, but gated it on test too, so a macOS build carries an import
nothing there uses. Check macOS (clippy -D warnings) fails on dev with
unused import: interruption::capture_idle; PRs only compile on macOS, so it
landed unseen.

* stream: gate the re-probe, adopt it while idle, keep a failed geometry

Review fixes for #2107:

- refresh_stream only runs after the gated probe passed (HEX_STREAMING,
  capability, GPU), so a parked engine on a CPU never starts a stream, and
  a non-Parakeet model is never re-probed.
- a changed tuning is the only thing that re-probes: a failure keeps the
  working geometry and is not retried, and toggling back is a no-op.
- the header is read only when the lab's tuple needs its menus, lazily at
  load or on the first re-probe; a header that reads fine without chunk
  menus (a cache-aware model) takes no buffered extension at all.
- the engine re-probes after each command and on its idle tick instead of
  at capture start, and yielding streams check cancellation first.
- macOS re-probes with stream_run_options, as its load probe and streams do.
- gguf_header keeps only the Parakeet stream keys, and the frame size uses
  checked_mul.
- the card and docs say the pasted text comes from the same shorter
  lookahead.

* stream: drop the unused architecture from the macOS probe call

probe_stream no longer takes an architecture (the session reads the file's
own), so load_selection's match became an unused variable in a macOS-only
module. Linux clippy cannot see it; Check macOS can.

* stream: re-probe only when the engine is quiet

Review follow-ups for #2107:

- the after-command re-probe waits for `next.is_empty() && !recording()`, so a
  queued Begin, deferred meeting chunk, or active recording never waits
  behind the probe.
- both idle-tick re-probes check `!recording()` too, and the unload tick keeps
  its park behind the same guard.
- docs/features/labs.md's Faster live text row indents its continuation lines
  at the table's column like every other row.
2026-11-20 18:26:14 -05:00
..
capture_capsule fix annotate pen stopping short on gnome at fractional scale (#1995) (#1996) 2026-11-19 10:18:13 -05:00
find_popover labs: transcribe dropped audio files (#1798) 2026-11-18 20:49:59 -05:00
general feat(settings): find a setting or lab without leaving your pane (#1914) 2026-11-16 16:11:48 -08:00
history feat(history): find dictations and captures together on Mac (#1932) 2026-11-19 19:52:09 -08:00
labs labs: transcribe dropped audio files (#1798) 2026-11-18 20:49:59 -05:00
live_notes Live notes story: hide the notes, copy all, then new, or by chapter (t691) (#488) 2026-10-30 09:53:47 -07:00
meeting_capsules Meetings: name the real notes writer in the finished capsule (#2065) 2026-11-20 12:01:14 -05:00
meetings chore(fixtures): remove personal data from preview fixtures (#1676) 2026-11-10 20:11:38 -08:00
modes labs: neutral voice for chosen modes (#2043) (#2049) 2026-11-20 11:51:08 -05:00
onboarding_kit fix(hud): keep the dictation and meeting overlays dark (#1834) 2026-11-16 00:22:48 -08:00
output Fold desktop_* into desktop/ 2026-10-31 15:13:56 -07:00
paste_picker feat(history): find dictations and captures together on Mac (#1932) 2026-11-19 19:52:09 -08:00
picker add fluid speech pro to the speech model catalog (#2007) 2026-11-19 15:19:06 -05:00
screenshot_thumbnail screenshots: choose the save folder from labs (#1843) 2026-11-14 23:23:59 -05:00
settings labs: second dictation shortcut on linux and windows (#1651) 2026-11-10 14:40:02 -05:00
sound_sets fix(hud): keep the dictation and meeting overlays dark (#1834) 2026-11-16 00:22:48 -08:00
tests stream: a faster live-text geometry from the model's own menus (#2107) 2026-11-20 18:26:14 -05:00
accessibility_tests.rs history: chart the dictation stats dialog (#1962) 2026-11-18 03:38:56 -05:00
activity.rs fix: label an unset OpenCode rewrite model as automatic and log the model that answered (#1961) 2026-11-18 02:40:37 -05:00
captures.rs feat(history): find dictations and captures together on Mac (#1932) 2026-11-19 19:52:09 -08:00
controls.rs history: chart the dictation stats dialog (#1962) 2026-11-18 03:38:56 -05:00
deep_link.rs labs: bring the Modes editor back behind a lab (#1963) 2026-11-18 02:40:22 -05:00
dmg_keycap.rs Rune c4ee5620; HUD uniforms travel as immediates (#425) 2026-10-29 20:47:21 -07:00
drop_transcribe.rs labs: transcribe dropped audio files (#1798) 2026-11-18 20:49:59 -05:00
explainer.rs Accessibility: name Hex's panes and controls; interaction benches through UI Automation (#1220) 2026-11-04 05:30:06 -06:00
find_popover.rs labs: transcribe dropped audio files (#1798) 2026-11-18 20:49:59 -05:00
found.rs Speech model picker: compare three models, then every model (t1216) 2026-11-01 13:38:51 -08:00
found_choice.rs onboarding: skip only the demo and practice; continue without a model after a failed or stalled download (#1009) 2026-11-02 08:52:22 -05:00
fun.rs feat(voice filter): preview effects without changing your call (#1906) 2026-11-16 15:37:31 -08:00
general.rs show why speech engine fell back to the cpu after a gpu out-of-memory failure (#1984) (#1985) 2026-11-19 01:01:37 -05:00
history.rs feat(history): find dictations and captures together on Mac (#1932) 2026-11-19 19:52:09 -08:00
hotkey_keys.rs take the mic key at the session tap so it records and fires (#1870) 2026-11-15 19:26:38 -05:00
hud_lab.rs Scroll bars and keyboard paging for panes and dropdowns (#1209) (#1213) 2026-11-03 17:56:52 -05:00
hud_stories.rs show why a dictation failed (#1494) 2026-11-07 12:33:50 -05:00
icons.rs fix(sidebar): use a plain book for What’s new (t1605) (#1912) 2026-11-16 15:18:08 -08:00
keyboard_model_tests.rs sort language menus alphabetically (#1937) 2026-11-17 11:31:28 -05:00
labs.rs stream: a faster live-text geometry from the model's own menus (#2107) 2026-11-20 18:26:14 -05:00
linux_host.rs fix(settings): preserve other writers' changes when saving (#1747) 2026-11-12 12:57:21 -08:00
list_detail.rs feat(meetings): graduate meeting labs into normal behaviour and Meetings settings (#1821) 2026-11-16 00:51:48 -08:00
lists.rs feat(settings): find a setting or lab without leaving your pane (#1914) 2026-11-16 16:11:48 -08:00
live_notes.rs Labs: one switch for every unfinished feature (#527) 2026-10-30 20:23:48 -04:00
live_text.rs show why a dictation failed (#1494) 2026-11-07 12:33:50 -05:00
macos_host.rs macOS: close the Screen Recording guide once Hex reads the grant (#2086) 2026-11-20 14:50:03 -05:00
meeting_capsules.rs Meetings: name the real notes writer in the finished capsule (#2065) 2026-11-20 12:01:14 -05:00
meetings.rs Meetings: name the real notes writer in the finished capsule (#2065) 2026-11-20 12:01:14 -05:00
meetings_host.rs fix(captures): keep delayed replies with their original request (#1759) 2026-11-12 17:43:27 -08:00
model_details.rs add fluid speech pro to the speech model catalog (#2007) 2026-11-19 15:19:06 -05:00
model_import.rs Labs: smaller model files (K-quant imports, macOS) (#1786) 2026-11-13 10:11:35 -05:00
models.rs fix: label an unset OpenCode rewrite model as automatic and log the model that answered (#1961) 2026-11-18 02:40:37 -05:00
modes.rs labs: neutral voice for chosen modes (#2043) (#2049) 2026-11-20 11:51:08 -05:00
notes_writer.rs Meetings: name the real notes writer in the finished capsule (#2065) 2026-11-20 12:01:14 -05:00
offscreen.rs feat(screenshots): a click on the card opens a floating editor with pen, arrow, box, text, crop, Copy, Save and Send to… (t1344) 2026-11-04 23:29:34 -08:00
onboarding.rs fix(onboarding): record the tour finished only when it finishes (t1538) (#1741) 2026-11-12 11:53:55 -08:00
onboarding_kit.rs feat(onboarding): the first run is one story, from a bad conversation to your first words (#1501) 2026-11-09 17:29:51 -08:00
output.rs fix(output): put Try inside Every dictation and show its result as text (#1553) 2026-11-12 19:38:10 -08:00
paste_access.rs General: one Shortcut mode choice with a modal (t1218) (#919) 2026-11-01 15:50:06 -08:00
paste_picker.rs feat(history): find dictations and captures together on Mac (#1932) 2026-11-19 19:52:09 -08:00
picker.rs make the labs card copy plain (#1929) 2026-11-16 22:32:02 -05:00
platform.rs feat(history): find dictations and captures together on Mac (#1932) 2026-11-19 19:52:09 -08:00
platform_settings.rs meetings: add select all calendars lab (#1973) 2026-11-18 09:57:54 -05:00
playground.rs feat(history): find dictations and captures together on Mac (#1932) 2026-11-19 19:52:09 -08:00
practice.rs windows: don't paste into the desktop or taskbar, keep the dictation on the clipboard (#2016) 2026-11-19 19:10:26 -05:00
scenes.rs feat(history): find dictations and captures together on Mac (#1932) 2026-11-19 19:52:09 -08:00
scrawl.rs annotate: record the screen under the pointer on wayland (labs), list hex annotate without a shortcuts portal (#2094) 2026-11-20 15:58:16 -05:00
screenshot_thumbnail.rs feat(captures): list annotations and replays in the Captures pane (#1673) 2026-11-12 19:29:33 -08:00
settings.rs annotate: record the screen under the pointer on wayland (labs), list hex annotate without a shortcuts portal (#2094) 2026-11-20 15:58:16 -05:00
settings_microphone_key_tests.rs take the mic key at the session tap so it records and fires (#1870) 2026-11-15 19:26:38 -05:00
shortcut_mode.rs make the labs card copy plain (#1929) 2026-11-16 22:32:02 -05:00
shortcut_rule.rs labs: second dictation shortcut on linux and windows (#1651) 2026-11-10 14:40:02 -05:00
sidebar.rs feat(history): find dictations and captures together on Mac (#1932) 2026-11-19 19:52:09 -08:00
sidebar_update.rs feat(settings): open new features from the sidebar (#1866) 2026-11-16 00:11:41 -08:00
snap_isolation.rs fix(app): headless renders never touch the data folder (#760) 2026-10-31 22:21:05 -07:00
sound_sets.rs feat(voice filter): preview effects without changing your call (#1906) 2026-11-16 15:37:31 -08:00
spark.rs Output agent card: letters pop in a wave, prompts as examples, smooth spark (#664) 2026-10-31 14:18:27 -07:00
speech_model.rs sort language menus alphabetically (#1937) 2026-11-17 11:31:28 -05:00
speech_model_tests.rs sort language menus alphabetically (#1937) 2026-11-17 11:31:28 -05:00
story_link.rs Labs deep links: hex://labs/<feature> (#693) 2026-10-31 15:10:38 -07:00
tests.rs labs: neutral voice for chosen modes (#2043) (#2049) 2026-11-20 11:51:08 -05:00
vocabulary.rs make the labs card copy plain (#1929) 2026-11-16 22:32:02 -05:00
whats_new.rs feat(settings): open new features from the sidebar (#1866) 2026-11-16 00:11:41 -08:00
windows_host.rs fix(settings): preserve other writers' changes when saving (#1747) 2026-11-12 12:57:21 -08:00