Commit Graph
1056 Commits
Author SHA1 Message Date
Kit Langton c6b738bf52 feat(site): a shareable page and link card for every lab (t1560) (#1818)
* labs: card titles, lines and OSes in the registry, exported to site/src/labs.json (t1560)

* site: a page and a social card for every lab, generated from the registry (t1560)

* labs: the two newest labs on the website (t1560)
2026-11-13 22:46:21 -08:00
Kit Langton 4db6414ae2 fix(labs): YOLO mode's app picker floats and closes like a menu (#1820)
* Float the application picker over the cards and close it on a pick, a click outside, or Escape (t1558)

* Update the Modes picker goldens and picker tests (t1558)
2026-11-13 21:53:29 -08:00
Dax a94583e8d9 fix(onboarding): give the launch-at-login ask the platform's words (#1819)
Windows and Linux asked "Open Hex when your Mac starts?" and had Hex
napping "in your menu bar". The ask's copy now follows `Home`: macOS
keeps its Mac and menu bar, Windows says computer and system tray, Linux
says computer and in the background. The new strings are translated in
every language, and a headless test checks all three platforms.
2026-11-14 00:36:16 -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 94eb637eef labs: clean up dictations with apple intelligence (#1814)
* labs: clean up dictations with apple intelligence (#1810)

Adds Labs › Clean up with Apple Intelligence, off by default and macOS only:
one short on-device Foundation Models pass over each dictation whose mode does
not already rewrite with OpenCode. The instructions and the guard are the iOS
cleaner's, so both apps accept and refuse the same answers. An unavailable
model, timeout, refusal, guardrail block, or an answer the guard refuses all
paste the corrected transcript; the stage's own observation records the
reason in History and the live log. Raw dictations never reach it.

* labs: address cleanup review

- read the lab switch (and the caller's cancellation flag) before Apple
  Intelligence's availability, so a lab-off or cancelled dictation never
  touches Foundation Models.
- keep the managed row the Labs registry builds, so an organization's lock
  still disables the card; a test forces the lock on its own thread.
- count CJK numerals as digits, matching Character.isNumber.
- keep dictated quotes and the transcript's own spacing when tidying an
  answer.
- docs: the real worker name, the local API's processed route, the 2 s
  budget, and the guard's scalar-versus-grapheme counting.

* labs: keep the cleanup lock test to linux

The panes tests render on Linux only, so the forced-policy seam has no
users on macOS and failed the macOS check's -D warnings.

* labs: regenerate the mac labs goldens with the cleanup row

* labs: keep the cleanup card inside the labs file cap
2026-11-13 23:51:47 -05: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 4dda1cb6ca feat(labs): YOLO mode presses Return after long dictations (#1812)
* Add Labs › YOLO mode: press Return after long dictations (t1558)

* Add a Labs YOLO mode scene (t1558)

* Update Labs goldens for YOLO mode (t1558)

* Box the Windows dictation output job (t1558)
2026-11-13 20:02:34 -08:00
Kit Langton 214de68edc feat(settings): quiet Reset on shortcut rows, ⌫ turns a shortcut off (#1809)
* Shortcut rows: a quiet Reset, ⌫ turns a shortcut off, and Restore shortcut default graduates (t1548)

* Goldens: no Clear icon on shortcut rows, one fewer lab (t1548)

* Gate the icon button to macOS, its only remaining user (t1548)
2026-11-13 17:09:24 -08:00
Dax 7e1b579afb keep quiet dictation above the room's noise floor (#1808)
* fix: keep quiet dictation above the room's noise floor (#1807)

* fix: require detector confirmation for quiet dictation, contiguous run

* fix: bridge one quiet window per gap in the quiet-dictation run
2026-11-13 17:45:53 -05:00
Kit Langton d1c2554dbd test(labs): cover clearing search across the macOS titlebar (t1548)
Add macOS runtime regression coverage for titlebar-overlapping clear-button presses, deep-linked queries, restored results and continued typing. The behavioral fix already landed in #1791. Rune pin upgrade deferred pending anomalyco/rune#917.
2026-11-13 14:10:03 -08:00
Dax f47fd4a006 cli: add shell completions behind a labs toggle (#1806) 2026-11-13 17:04:39 -05:00
Dax 664f9edfc2 meetings: capture every linux output, not just the default (#1804)
* meetings: capture every linux output, not just the default (#1801)

* meetings: linux sink capture review fixes (#1804)
2026-11-13 16:44:57 -05:00
Dax 8d62e7ec22 fix(linux): pass pw-cat --raw only where pipewire knows it (#1803)
* fix(meetings): pass pw-cat's --raw only where PipeWire knows it

`--raw` only exists from PipeWire 1.3.81 on. 1.2 and older reject it as an
unknown option and exit before doing anything, so meetings recorded the
microphone alone and the Hex Microphone source never started. Since 1.4
`-` also means a WAV file unless `--raw` is passed, so the flag cannot just
be dropped: probe `pw-cat --help` once per process and pass it only where
the usage lists it, keeping it when the probe cannot run.

Also stop resetting a meeting source's backoff on every successful open: a
source that dies right after each spawn now keeps backing off instead of
respawning and logging twice a second forever.

* fix(linux): test pw-cat's real help and trust only a successful probe

The fixtures are now the exact `pw-cat --help` output of 1.0.5 and 1.4.0
(show_usage with its format args filled in, from a build without
-Dpw-cat-ffmpeg as Arch and Ubuntu build it), not an excerpt, so the
option the probe looks for is checked against the text it really prints.

The probe also asks for the untranslated usage with LC_ALL=C, and keeps
--raw when the help process starts but exits non-success, as its comment
already claimed.
2026-11-13 16:30:28 -05:00
Kit Langton fb6c61b0d9 feat(cli): hex transcribe reads any common media file, with or without the app (#1799)
* Make hex transcribe work with any common media file, with or without the app (t1555)

* Regenerate the Labs goldens without Transcribe files (t1555)
2026-11-13 13:14:15 -08:00
Dax 1bff08a118 windows: stop the hud's first-frame check from hiding a hud that is up or on its way (#1793) (#1794) 2026-11-13 14:15:27 -05:00
Dax 73e08baaa0 fix the clear button in labs and settings search (#1791)
* fix the clear button in labs and settings search

* note the search clear button checks in the labs map
2026-11-13 11:38:59 -05:00
Dax ba8b5698ac windows: keep per-language model choice when switching keyboard language (#1788)
* windows: follow the focused window's layout and ignore hex's own windows for keyboard model switching

* windows: skip a window that closed mid-read; log keyboard source changes at info
2026-11-13 11:18:21 -05:00
Dax b65f9880e0 Labs: smaller model files (K-quant imports, macOS) (#1786)
Adds Labs › Smaller model files (k-quant-models, labs.k_quant_models, off by
default, macOS only). While on, an imported speech model may use Q6_K, Q5_K,
and Q4_K weights beside F32, F16, and Q8_0: Metal has their mul_mat and
get_rows kernels, while the Linux and Windows Vulkan builds embed shaders
only for the catalog's types and would abort, so the lab is not listed there.

The tensor-type decision is passed into the header check
(gguf_header::TensorTypes) instead of read inside it, and the import's
manifest records `k_quants` (serde default false, so older manifests load).
That lets the selection gate a K-quant import exactly as Parakeet Ultra is
gated: its availability folds in the lab, the listener falls back with
FallbackReason::LabsOff and keeps the saved choice, and `hex model use`
refuses it by name.

The header check now also sizes the K-quant tensors from ggml's block sizes
(256 values in 144, 176, and 210 bytes), so a cut-short file is refused and
the GPU-memory estimate counts them, and a found file's compression reads
Q6_K/Q5_K/Q4_K instead of F32.

Off, every OS keeps the F32, F16, and Q8_0 rule and its message byte for
byte.
2026-11-13 10:11:35 -05:00
Dax 4dc3106df6 linux: restore the readable clipboard formats when one can't be read (#1787)
* fix(linux): restore the clipboard formats that can be read

* fix(linux): harden the partial clipboard restore
2026-11-13 10:06:06 -05:00
Dax cc45fbd153 fix(meetings): end a browser recording when its page names another call (#1777)
* fix(meetings): end a browser recording when its page names another call (#1775)

* fix(meetings): tighten the browser call switch after review

* fix(meetings): drop an armed call-switch stop when the lab turns off
2026-11-13 07:13:50 -05:00
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
Dax 0f18ac0b9e fix whisper hallucinating turkish subtitle phrases (#1770) (#1772)
* fix whisper hallucinating turkish subtitle phrases (#1770)

* address review: docs, trim test, credit limits

* address review: credit doc, timed offset helper
2026-11-13 05:02:37 -05:00
Kit Langton 877ffc71bc fix(ui): translate onboarding and the menu bar, unclip meeting retention and Labs' unload menu (#1763)
* fix(ui): translate onboarding and the menu bar, wrap meeting retention, fit Labs' unload menu, and show only Reopen when the shortcut fails (t1548)

* test(ui): regenerate goldens for the onboarding, meetings and reopen changes (t1548)

* fix(i18n): build english() only on macOS, its one caller (t1548)

* test(ui): regenerate goldens after rebasing onto dev (t1548)
2026-11-12 22:47:49 -08:00
Kit Langton d35fc84cc6 feat(meetings): a minimal meeting pill that opens into copy new, copy all and an agent prompt (#1766)
* feat(meetings): minimal floating meeting panel with copy new, copy all and agent prompt (t1508)

* test(meetings): upload the meeting capsule renders that miss their goldens (t1508)

* test(meetings): regenerate the finished meeting panel goldens (t1508)
2026-11-12 21:43:07 -08:00
Kit Langton 3824017d43 feat(settings): sound volume is a slider (#1607)
* Sound volume is a slider (t1489)

* Keep the slider test's presses on the track (t1489)

* Drop the slider test's ambiguous a11y lookup (t1489)

* Show the sound volume slider inline in its row (t1489)

* Describe the sound volume slider in the feature map (t1489)

* Keep the slider test's presses on the narrower track (t1489)
2026-11-12 19:33:07 -08:00
Kit Langton 71cdbd4df7 feat(captures): list annotations and replays in the Captures pane (#1673)
* feat(captures): list Annotate's annotations and replays in the Captures pane (t1509)

* test(captures): goldens with an annotation row (t1509)

* goldens: the Captures pane's annotation row on the new Rune
2026-11-12 19:29:33 -08:00
Dax 5d3c598e7c meetings: recognise teams web calls as microsoft teams (#1764)
* meetings: recognise teams web calls as microsoft teams

* meetings: a legacy teams page ask no longer shadows the teams choice
2026-11-12 21:24:40 -05:00
Kit Langton a4805cfd46 fix(onboarding): bring Hex back after a System Settings grant; no early microphone prompt (#1758)
* Bring Hex back after a System Settings grant and stop the early microphone prompt (t1547)

* Keep tones silent on an output that also records until the microphone is asked for (t1547)
2026-11-12 18:07:43 -08:00
Kit Langton cfe995752a fix: query recording owners and unify transformation startup (t1549) (#1760) 2026-11-12 17:56:25 -08:00
Kit Langton e164eea584 fix(captures): keep delayed replies with their original request (#1759)
* fix: bind capture replies and meeting reads to their owners (t1550)

* test(meetings): complete the chapter copy publication fixture (t1550)
2026-11-12 17:43:27 -08:00
Kit Langton 804c2af789 feat(capture): Annotate suggests the OpenCode session open in a Ghostty pane, and never guesses between two (#1514)
* Annotate: route Ghostty captures by the terminal's OpenCode session and folder

* fix(capture): build the argv parser only where it's used (t1451)

* fix(capture): a TUI that moved off its command line's session names none (t1509)
2026-11-12 16:47:14 -08:00
Dax e14c03040a feat(labs): browser access to the local API (#1756)
* feat(labs): let listed browser origins call the local API

A web page from an http(s) origin listed in Labs › Browser access to the
local API can call Hex's authenticated loopback API with fetch. Its
unauthenticated CORS preflight is answered 204 for that exact origin, and
every response — 401, 404, and SSE streams included — carries that origin
and Vary: Origin. Requests still need the bearer token; nothing allows
credentials or *. Off, a missing Origin, or an origin not listed answers
exactly as before.

Origins save as scheme://host[:port] only: *, null, paths, queries,
fragments, and userinfo are dropped, a trailing / and a default port are
normalized away, and the scheme and host are lowercased.

* fix(local_api): refuse CORS for a duplicate Origin without rejecting it

A request with two Origin headers is routed exactly as before this lab
existed (401 unauthenticated, 200 authenticated) but never earns CORS
headers. The Labs origins field keeps exactly what was typed through its
own debounced save, so a port or trailing comma is never rewritten under
the caret. Docs name the pre-request errors that carry no CORS headers and
how IPv6 and non-ASCII origins are written.
2026-11-12 19:13:01 -05:00
Dax 9e3efa0d1c fix(macos): pause Helium with the other browsers (#1754)
* fix(macos): pause Helium with the other browsers

Helium (net.imput.helium) was missing from the browsers microphone
activity knows, so Also pause the browser never heard it and its
dictation pause went to whatever macOS had as Now Playing.

Add it to the browser list, its helper prefix (Chromium's audio service
reports net.imput.helium.helper), its Linux and Windows executables
(helium, helium-browser), and its display name. Meeting detection's
browser name matching and the feature maps learn it too.

* fix: finish Helium's browser recognition

Windows' BROWSER_STEMS missed helium, so its focused page was never read
through UI Automation and website modes saw no host. The browser tab-title
suffixes meeting detection strips missed " - Helium" too, so a Meet tab's
code was not extracted from a Helium title.

Add both, with the existing browser-stem and Meet-title tests extended.
2026-11-12 16:01:02 -05: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
Kit Langton a3e786db67 fix(dictation): share correction order and keep stop-time context (t1534)
* fix(dictation): share processing and retain stop-time context (t1534)

* fix(dictation): keep queued jobs small and pass platform checks (t1534)

* fix(dictation): unpack queued job before moving its fields (t1534)
2026-11-12 12:48:45 -08:00
Dax 450714e514 fix(linux): say when live typing and live text can't show words (#1751)
* fix(linux): say when live typing and live text can't show words

Live typing's Labs card now asks the Wayland registry once at window load;
without zwp_input_method_manager_v2 (GNOME) it stays listed, disabled while
off, with a note that this desktop offers no input method it needs and
dictations paste normally. `hex labs` prints the same note in its list and
after `hex labs on live-typing`, without refusing the toggle.

Live text's card names the catalog's streaming models when the selected
model can't stream, and on Linux says when Speech engine is set to CPU. A
capture that wanted live words but opened no stream logs why once per
capture, and a stream begun on a model that can't stream says so instead of
failing silently.

Docs updated for Labs, dictation, and the Linux beta.

* fix(linux): review fixes for the live typing and live text notes

An imported model's catalog entry says it can't stream, but its GGUF is only
checked when it loads: the Live text card never judges one, and the capture
log blames the device instead of the model.

The Live text card shows its note under the description, not instead of it,
and names only streaming models that take the saved language (or none when
none do). Live typing's CLI note is only for Wayland with a compositor that
has no input method Hex can use, and never for a managed feature.

The capture log says "no live stream yet" rather than claiming it for the
whole capture, and a stream request on no loaded model no longer says the
model can't stream.

* docs(labs): tidy the live typing checks list

* fix(linux): second review fixes for the live notes

The capture log says only that no live stream has opened yet and why, with no
claim about the rest of the capture or the paste. Row's doc comments now say
a note joins the description and that a desktop without the input method also
locks the switch.

The engine's stream log leaves model_streams off for an imported model, whose
GGUF alone decides. The CLI note uses the card's exact wording, and the Live
text suggestions skip models that aren't available here.
2026-11-12 15:33:25 -05:00
Kit Langton 1b0b967d96 fix(linux): keep dictation working when a shortcut can't be registered (#1746)
* linux: one key table for X11, portal and GNOME; keep shortcuts when re-registration fails (t1535)

* linux: keep the dictation listener under the file-size limit (t1535)
2026-11-12 12:18:09 -08:00
Kit Langton 4cd7f84005 start dictation on the fallback when a saved import is lost (t1537) (#1739) 2026-11-12 12:06:57 -08:00
Kit Langton ce1a5b91b5 fix(onboarding): record the tour finished only when it finishes (t1538) (#1741) 2026-11-12 11:53:55 -08:00
Kit Langton 6f4b586135 fix(modes): keep drafts on the mode being edited (#1742)
* fix(modes): keep drafts attached to their saved mode (t1533)

* fix(modes): collapse the clean-editor reload guard (t1533)
2026-11-12 11:45:40 -08:00
Dax db338045f3 fix: find build output under cargo 1.100's new build-dir layout (#1734) 2026-11-12 14:37:40 -05:00
Kit Langton 05bce705c1 fix(meetings): keep the recording pill a function of the recording and its setting (t1536) (#1740) 2026-11-12 11:34:15 -08:00
Kit Langton 5dbfaa59f9 fix(settings): refuse saves after an unreadable load (t1533) (#1736) 2026-11-12 11:29:14 -08:00
Dax 742071457d follow-up to #1735: keep the waiting-download test offline (#1737)
The test that waits on another process's download lock asserted its deadline
while the lock was still held, so a failure dropped it without setting
canceled: the worker could then take the lock and start the real network
download. It now holds the lock through a small Drop guard that sets canceled
before releasing it, so any panic in the test stops the worker first, and the
no-op thread-local reset on the main thread is gone.

The own-models map now says the lock covers the whole models folder, so the
progress shown is this model's partial file and stays flat while the other
process fetches a different model.
2026-11-12 14:26:18 -05:00
Dax 6fbec0dc3b show another process's model download progress while waiting for it (#1733) (#1735)
hex model install with no Hex running downloads in the CLI process, holding
models/.download.lock and growing models/<file>.gguf.partial. A Hex started
while that runs waited on the lock with downloaded_bytes stuck at 0, so
hex status --json, onboarding, and the picker showed 0% for the whole
download (and onboarding offered "Continue without a model" after 30s).

lock_downloads now takes a waiting callback, called on every WouldBlock
attempt, and download_artifact publishes the partial file's size as
downloaded_bytes while it waits. After the other process releases the lock
the existing receipt check adopts the finished file with no second download.
2026-11-12 14:15:16 -05:00
Dax 8117450117 cut long clips at the quietest point near each window end (#1729)
* cut long clips at the quietest point near each window end

* describe the quiet-point cut accurately
2026-11-12 13:55:30 -05:00
Dax a7434bb851 fix: keep the dictation hud on every space after dock icon changes (#1730)
* fix: keep the dictation hud on every space after dock icon changes (#1725)

* fix: drop the panel state the HUD re-home check never builds

`Located::Missing` was never constructed: the pump returns before deciding
when Rune has not made the panel yet. macOS clippy rejects the variant, and
the hidden state already carries the same "leave the budget alone" rule.

* fix: repair the hud only when the dock icon policy changes
2026-11-12 13:50:30 -05:00
Dax ff3751dd87 Keep a dictation for Paste Last when its paste fails on Windows and Linux (#1727)
macOS already kept the text for Paste Last when its paste failed (#1724).
Windows and Linux returned the paste error before saving the new text, so
Paste Last re-inserted the previous dictation.

Linux now takes the paste as a closure and keeps the processed text when it
fails; the listener sets its last dictation inside delivery, so success and a
failed paste both keep it. Windows saves it beside the paste and still returns
the original error. History stays success-only, printed dictations are
unchanged, and a cancelled capture never reaches this point on either OS.
2026-11-12 12:58:52 -05:00
Aiden Cline 3266a1e38e Keep a dictation for Paste Last when its paste fails (#1724) 2026-11-12 11:25:27 -06:00
Aiden Cline f60e915b5d Cap the logs at 10 MB and clear the old event log once (#1434) 2026-11-12 09:48:21 -06:00