hex/docs
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
..
features stream: a faster live-text geometry from the model's own menus (#2107) 2026-11-20 18:26:14 -05:00
images docs: describe speech models and features in readme (#1869) 2026-11-15 18:27:36 -05:00
plans reload personal config when imported .js files change (#1856) 2026-11-15 10:46:47 -05:00
releases docs(release): correct the 3.4.0 notes and add upgrade steps for Windows and Hyprland (t1510) (#1672) 2026-11-10 18:14:30 -08:00
research Add agent marker and drop internal references (#702) 2026-10-31 18:30:32 -07:00
specs add fluid speech pro to the speech model catalog (#2007) 2026-11-19 15:19:06 -05:00
cli.md feat(history): find dictations and captures together on Mac (#1932) 2026-11-19 19:52:09 -08:00
design-system.md fix(hud): keep the dictation and meeting overlays dark (#1834) 2026-11-16 00:22:48 -08:00
downloads.md ci: read release secrets from aws secrets manager (#1606) 2026-11-09 15:18:26 -05:00
linux.md make the labs card copy plain (#1929) 2026-11-16 22:32:02 -05:00
nix.md docs: nix install is linux only (#1582) 2026-11-09 05:11:35 -05:00
opencode-compatibility.md annotate: use OpenCode in WSL when the lab is on (#1586) 2026-11-09 08:08:57 -05:00
perf.md docs(perf): strobe prints times in microseconds (#1718) 2026-11-12 05:43:43 -06:00
README.md docs: nix install is linux only (#1582) 2026-11-09 05:11:35 -05:00
releasing.md windows: sign the setup engine so smart app control can run setup (#1987) 2026-11-19 02:38:03 -05:00
streams.md feat(meetings): graduate meeting labs into normal behaviour and Meetings settings (#1821) 2026-11-16 00:51:48 -08:00
test-builds.md windows: sign the setup engine so smart app control can run setup (#1987) 2026-11-19 02:38:03 -05:00
transcript-cli.md labs: fold yearly stats into dictation stats (#1976) 2026-11-18 12:22:38 -05:00
windows-signing.md windows: sign the setup engine so smart app control can run setup (#1987) 2026-11-19 02:38:03 -05:00
windows.md windows: name the website of browser meeting calls (#2079) 2026-11-20 15:03:41 -05:00

Project Documentation

Start with the document for your task. Plans and archived prototypes do not override shipped behavior.

User Guides

  • ../README.md: install and use Hex on macOS, Windows, and Linux.
  • windows.md: Windows x64 and ARM64 beta requirements, installation, and source builds.
  • linux.md: Linux X11 and native Wayland beta requirements and installation.
  • nix.md: Nix packaging for Linux, development, and per-user autostart.
  • ../ios/README.md: build and test the iOS prototype.
  • ../sdk/typescript/README.md: use the public TypeScript transcription SDK with an explicitly supplied native helper.

Engineering Reference

  • ../AGENTS.md: architecture, invariants, development commands, and diagnostics. This is the implementation authority.
  • ../ROADMAP.md: prioritized product and engineering work.
  • design-system.md: Rune + rune-kit + OpenCode theme components, Hex pieces, copy rules, and --snap scene verification.
  • features/README.md: existing user-facing capabilities, entry points, available verification, and gaps; detailed dictation and recovery maps.
  • perf.md: strobe benchmarks, the cases that drive the window through its accessibility tree, and how a benchmarked copy of Hex stays isolated.
  • downloads.md: public download paths, R2 custom domains, GitHub release mirrors, and network recovery.
  • opencode-compatibility.md: audited OpenCode V2 source and CLI baseline, integration contract, and validation limits.
  • plans/personal-commands.md: shipped personal command contract and remaining lifecycle work.
  • plans/quickjs.md: why and how configs run in embedded QuickJS instead of Bun, with size and latency measurements.
  • specs/local-transcription-service.md: implemented macOS local-service protocol and lifecycle guarantees.

Architecture Decisions And Active Plans

When a plan disagrees with AGENTS.md about shipped behavior, update the plan.

Research And Archives

Releases

releases/ contains version-specific release notes and drafts. ../release-notes/ contains legacy inputs from versions 2.0.0 through 2.0.9. Published notes and the SDK changelog describe their release, not current behavior; preserve them as historical records. A draft note is not evidence that its release has been published.