Commit Graph
924 Commits
Author SHA1 Message Date
CJ Pais 3a61ac67ec fix: give file transcription failures their own notice title, and tidy notice clearing
The tray showed a full sentence for a failed file job because it reused
settings.history.transcribeFailed, which needed a special case in build.rs.
It now has errors.fileTranscriptionFailedTitle like every other notice.

Model loads clear their notice through notices::clear_matching rather than
the dismiss_notice Tauri command, and the load error no longer repeats
"Failed to load model" ahead of the worker's own message.
2026-11-02 14:29:09 +08:00
CJ Pais 61b0649ca7 Merge remote-tracking branch 'origin/main' into error-notices-framework
# Conflicts:
#	.nix/bun-lock-hash
#	src-tauri/src/actions.rs
2026-11-02 14:12:47 +08:00
CJ Pais fe76956fe7 refactor: show all toasts and notices in one panel and drop sonner 2026-11-02 14:09:55 +08:00
CJ Pais 4c811d7e0e chore: bump Playwright to 1.64.1 so CI can install Chromium on Ubuntu 26.04 runners 2026-11-01 22:06:18 -08:00
CJ Pais e4869fc065 chore: cargo fmt 2026-11-01 22:01:55 -08:00
8fd85aa838 fix: let Escape dismiss dropdown menus (#2246)
* fix: let Escape dismiss dropdown menus

* chore: remove dropdown test fixtures and spec

---------

Co-authored-by: daydreamer.jin <11205554+johnjheejin@users.noreply.github.com>
Co-authored-by: CJ Pais <cj@cjpais.com>
2026-11-02 13:59:05 +08:00
Bl0ck 298653c86d fix(shortcuts): avoid the ibus hotkey on Linux defaults (#2367) 2026-11-02 13:36:11 +08:00
a537ec4e1d fix: identify the setting each reset button affects (#2253)
* fix: identify the setting each reset button affects

* fix: keep reset action keys consistent across locales

* fix: translate reset action labels across locales

* fix: avoid Hindi case inflection in reset labels

* chore: drop reset-name regression tests

They mock app hooks via Vite URL interception, which is brittle and
adds a new test pattern for a simple aria-label prop change.

---------

Co-authored-by: daydreamer.jin <11205554+johnjheejin@users.noreply.github.com>
Co-authored-by: CJ Pais <cj@cjpais.com>
2026-11-02 13:30:01 +08:00
CJ Pais cdb88cbfb8 feat: let the user dismiss notices from the footer
A notice only ended when its source next succeeded, so a failed file
transcription could badge the tray for the rest of the session. "Show"
now dismisses the notice, and each row has a close button. Dismissing
matches the code as well as the source, so a click on a row drawn before
a newer notice replaced it leaves the new one alone.
2026-11-02 11:16:44 +08:00
CJ Pais afd6e51a7b bindings 2026-11-02 11:06:51 +08:00
daydreamer.jinanddaydreamer.jin 889fca0d1c fix: preserve dictation when post-processing returns blank text (#2290)
Co-authored-by: daydreamer.jin <11205554+johnjheejin@users.noreply.github.com>
2026-11-02 11:00:24 +08:00
CJ Pais e481173672 refactor: warn on skipped post-processing, reuse tray badges, trim comments and tests 2026-11-02 10:09:34 +08:00
Haroonandharoon0x 16073813cd docs: stale user manager can keep sessions without the new input group (#2348)
I added myself to the input group and following the doc's
'log out and back in' didn't fix the /dev/input permission error.
With autologin, user@UID.service survives logout and spawns sessions
with the old group list, so the docs steps weren't enough. Added the
check and the user-manager restart to the troubleshooting doc.

Co-authored-by: haroon0x <@users.noreply.github.com>
2026-11-02 09:57:25 +08:00
CJ Pais 5d4cc0e081 fix: match notices to the session's overlay 2026-11-02 09:56:51 +08:00
CJ Pais a10ef81221 fix: shorten notice titles that overflow the overlay 2026-11-02 09:26:50 +08:00
CJ Pais 9640ad4677 feat: report file job failures as notices 2026-11-02 09:23:22 +08:00
CJ Pais 93adec3902 feat: warn when post-processing fails 2026-11-02 09:22:31 +08:00
CJ Pais c01c80719a feat: list notices in the footer 2026-11-02 09:19:34 +08:00
CJ Pais 1235fa1978 feat: show notices in the tray 2026-11-02 09:17:32 +08:00
CJ Pais 98e17ccca9 feat: show notices on the overlay 2026-11-02 09:15:47 +08:00
CJ Pais 732d5cb7d1 feat: add error notices framework 2026-11-02 09:11:42 +08:00
0ed36e112a fix: reuse one HTTP client for post-processing requests (#2344)
* fix: reuse one HTTP client for post-processing requests #AI

create_client() built a new reqwest::Client on every call, so every
post-processing request opened a new TCP + TLS connection to the
provider (about 1 s per dictation in #2333).

Keep one shared client in a OnceLock and set the provider headers on
each request instead of as client default headers, so requests to the
same host reuse pooled connections and a changed API key or provider
still takes effect immediately.

Fixes #2333

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: bound idle and connect time on the shared LLM client

Pooled connections can silently die across sleep or network changes; a short
idle timeout plus TCP keepalive avoids reusing them, and a connect timeout
fails fast when the provider is unreachable.

---------

Co-authored-by: rnmrnmrnmrnmrnmrnm <238286729+rnmrnmrnmrnmrnmrnm@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: CJ Pais <cj@cjpais.com>
2026-11-02 09:10:59 +08:00
CJ Pais 7bfb2e2c93 fix: disable ggml Metal on Intel macOS builds (#2340) 2026-10-27 17:22:57 +08:00
Matt Van HornandMatt Van Horn 2b3f7c8169 fix: declare OpenSSL 3 runtime dependency in Debian packages (#2336)
The Debian dependency list now includes `libssl3t64 | libssl3`, allowing
either package to satisfy the OpenSSL 3 requirement. The build workflow
also checks each generated Debian package's Depends field and fails if
that alternative is missing.

Fixes #2311

Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
2026-10-27 17:13:55 +08:00
CJ Pais 126bed73cb add language detection (#2331)
* feat: detect the spoken language for models without native detection

* feat: download the language detector with the models that need it

* feat: add language detection settings and show the real language status

* feat: record each transcription's language in history

* minor review notes

* tooltip fix, better auto info

* tweak some ui for the model

* move to experimental and download

* review nits

* log change
2026-10-27 15:16:19 +08:00
CJ Pais 73c095857b feat: transcribe files into history (#2315)
* feat: transcribe files into history

* fix: keep history.db openable by older and newer versions

* fix: harden file transcription jobs (panic recovery, safe unload, streaming resample)

* fix: write file audio before its History entry so a quit never leaves entries without audio

* slim comments

* refactor: slim file transcription (drop job list sync, share batch setup, inline decode open)

* refactor: run every retry through the job queue, ahead of file imports

* perf: start decoding long files before the whole file is scored

* fix: let file transcriptions be cancelled and keep imports out of cleanup
2026-10-25 18:43:38 +08:00
CJ Pais f81e7e70fb fix: center grade chip labels on Windows (#2326)
* fix: center grade chip labels on Windows

* Update GradeChip.tsx
2026-10-25 15:36:58 +08:00
CJ Pais 0e5e9ca936 new onboarding (#2303)
* feat: new onboarding

* chore: remove new styling

* refactor: drop practice note insert workaround

* clean up welcome and perms

* lots of minor changes

* fix languages onboarding, and dropdown in app

* clean up table

* simplify lang

* better speed text

* fix dl speed + minor tweaks

* wip

* wip again

* transitions from demo to try

* simplify demo and beautify

* timing

* better demo/try it

* new all set page on try it

* pref languages, and demo shortcut tweaks

* wire traditional all the way through

* tweak search height

* clean up and fix obvious slop

* more code cleanup

* new models table, use on models page too

* shared model table for now

* better lang detection and fill for pref languages

* copy pass

* animation tweaks

* add translations for onboarding

* review fixes

* linux machine test fixes

* fix: consistent CJK font for language names on Windows/Linux

* fix: steady demo pointer and Tux taskbar mark on Linux

* fix: steady demo pointer and Tux taskbar mark on Linux

* fix stale nix

* center windows desktop

* trim comments

* review

* fix: custom app language menu, drop scrollbar arrows on Windows

* chore: trim AppLanguageMenu comments

* refactor: share model catalog, language picker and capture keys; drop unreachable a11y banner
2026-10-25 14:57:37 +08:00
CJ Pais 5a9451e70a fix: stop blocking the main thread during paste (#2302)
* fix: stop blocking the main thread during paste

* fix: don't let a finishing paste reset a newer session's overlay and tray
2026-10-21 13:45:09 +08:00
CJ Pais 93c9ee05ef catalog from @handy-computer/models package (#2299)
* feat: use shared model catalog

* fix: preserve other model quants on deletion

* fix: offer retired model replacements

* fix: preserve unreadable model caches

* fix: report model deletion failures

* refactor: simplify model availability and cache reuse

* fix: match cached repos to the catalog by exact name

HF repo ids are case-insensitive, so another tool can cache a catalog repo
under other casing. Matching it case-insensitively relabelled the file with
the catalog's casing, which on a case-sensitive filesystem points at a
folder that doesn't exist, so the model vanished. Exact matching (as on
main) keeps such a file listed under the casing it was found at.

* fix: harden model deletion and catalog check on Windows
2026-10-20 13:23:01 +08:00
CJ Pais 9e57a0d792 long form chunking with vad (#2282)
* long form chunking with vad

* revert some nonsense + better logging

* refactor: score long-form chunks with the selected VAD backend

* refactor: score long-form chunks in the chunker

* refactor: decide decode strategy in one policy module

* refactor: finish every transcription through one path

* refactor: share one chunked decoder across live and batch

* refactor: load the chunking VAD lazily and cut uncut on its failure

* remove some tests

* inline the VAD path lookup and quiet the padded-length log
2026-10-15 22:04:40 +08:00
CJ Pais 4150a4a8d4 feat: pass custom words via transcribe-cpp vocabulary API (#2284)
* feat: pass custom words via transcribe-cpp vocabulary API

Replaces the whisper-only initial_prompt run extension with the generic
RunOptions::vocabulary slot (gated on Feature::Vocabulary), so qwen3_asr,
funasr_nano, granite and moss also get custom words as model hints. Fuzzy
post-correction is skipped exactly when vocabulary was sent, in both batch
and streaming paths.

* slim comments
2026-10-15 14:45:29 +08:00
CJ Pais 5197faf0e6 actually remove onnx (#2279)
* actually remove onnx

* fix: link clang_rt.osx and drop stale ORT build cache

ort-sys linked libclang_rt.osx.a, which also supplied ggml-metal's
___isPlatformVersionAtLeast. Without ORT, macOS arm64 builds targeting
11.0 fail to link, so Handy now links it directly.

Bump the rust-cache key so restored target dirs no longer carry ORT
leftovers like DirectML.dll, which broke Windows ARM64 signing.

* change acceleration string
2026-10-15 07:54:22 +08:00
CJ Pais cfcb650758 add ui to migrate onnx model users to gguf (#2277)
* add ui to migrate onnx model users to gguf

* refactor: slim model migration state and fix hidden retry

A replacement that downloaded but failed to be selected showed a
checkmark instead of Retry, because the "already downloaded" check ran
before the failed check. Check failure first so the finalize-only retry
path is reachable.

Also collapse the failed/finished sets into one outcomes map, drop the
redundant single-row special case and an unreachable toggle guard, and
share the best-effort retired-model delete between App and the migration
screen.

* use helper

* cleanup
2026-10-14 17:06:27 +08:00
daydreamer.jinanddaydreamer.jin 53db4cb676 fix: expose setting names to screen readers (#2238)
* fix: expose setting names to screen readers

* fix: identify slider settings for screen readers

---------

Co-authored-by: daydreamer.jin <11205554+johnjheejin@users.noreply.github.com>
2026-10-14 08:36:52 +08:00
daydreamer.jinanddaydreamer.jin 57324065d3 fix: avoid duplicate history rows during live updates (#2256)
Co-authored-by: daydreamer.jin <11205554+johnjheejin@users.noreply.github.com>
2026-10-14 07:59:19 +08:00
14ae9c6b42 feat: support Anthropic Messages API format in the Custom post-processing provider (#2257)
* feat: support Anthropic Messages API format in the Custom post-processing provider

Endpoints such as Claude on Microsoft Foundry only speak the Anthropic
Messages API, so the Custom provider (OpenAI Chat Completions only) could
not reach them. An "API Format" option on the Custom provider lets users
pick the request format without adding a provider per hosting service.
OpenAI Compatible stays the default and its request path is unchanged.

Discussion: https://github.com/cjpais/Handy/discussions/2250

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore: add API Format translations for all locales

The translation consistency check requires every locale to carry the new
keys. Also sync the section title and provider description so no locale
still describes the API section as OpenAI-only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor: route the built-in Anthropic provider through the Messages API

Keeps a single Anthropic integration instead of two: the built-in provider
used Anthropic's OpenAI-compatibility endpoint plus an id-based header
special case, while the custom provider gained native Messages support.

- Built-in Anthropic now uses api_format Anthropic; a settings migration
  syncs api_format for built-in providers (custom keeps the user's choice)
- Auth headers are chosen by api_format alone, dropping the
  provider.id == "anthropic" check
- Responses that stop at max_tokens now error instead of pasting a
  truncated transcription
- API format changes go through a settings store action with an updating
  flag and cached-model reset, matching the other provider settings

* fix: reject truncated chat completion responses instead of pasting them

A response with finish_reason "length" was treated as complete, so a
provider hitting its output limit pasted a cut-off transcription, or for
structured output an unparseable JSON fragment. Erroring instead lets the
existing fallbacks run (structured -> legacy -> raw transcription), matching
the Anthropic path's handling of stop_reason "max_tokens".

---------

Co-authored-by: diligentpig <845955+diligentpig@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: CJ Pais <cj@cjpais.com>
2026-10-13 08:18:41 +08:00
CJ Pais 7b2a28a30a fix: don't re-emit hangover frames in VAD pre-roll 2026-10-12 16:06:19 +08:00
CJ Pais 3985508ae7 transcribe.cpp vad (#2267)
* refactor: run Silero VAD through transcribe.cpp instead of ONNX

Moves VAD onto the engine we're consolidating on, so vad-rs is no longer
an ONNX Runtime consumer (only transcribe-rs remains). Silero v6.2 GGUF
replaces the v4 ONNX model; v4's architecture can't load in transcribe.cpp.

VAD scores every 32 ms frame, so it runs in the app process rather than
the engine worker, whose lifetime and serial request loop are tied to the
ASR model. Only CPU backends are registered there, so no GPU driver code
loads into the app. The 0.3 threshold and ms-based timing constants carry
over; frame counts follow the model's 512-sample frames.

* slim comments

* restore Silero frame-size comment

* comment

* logging + minor review
2026-10-12 15:42:34 +08:00
a42131d24c move to handy-recorder (#2188)
* move to handy-recorder

Co-authored-by: Mike Evdokimov <210036552+xronocode@users.noreply.github.com>
Co-authored-by: Sergei Solo <3730589+olosegres@users.noreply.github.com>

* chore: bump rodio 0.23.0

Align playback with handy-cpal's cpal 0.18.2 lineage and remove the remaining cpal 0.17 dependency.

---------

Co-authored-by: Mike Evdokimov <210036552+xronocode@users.noreply.github.com>
Co-authored-by: Sergei Solo <3730589+olosegres@users.noreply.github.com>
2026-10-12 14:25:47 +08:00
CJ Pais 1b011a19a9 transcribe 0.4.0 (#2265) 2026-10-12 13:57:22 +08:00
CJ Pais 48a3d8e9ee fix(linux): allow renderer opt-out without dropping crash protection (#2249)
Keep DMA-BUF rendering disabled by default, but preserve explicit environment values so users affected by overlay flickering can opt out. Make the Nix wrapper respect the same precedence and document restart and autostart requirements.

Refs #2166
2026-10-10 10:41:21 +08:00
daydreamer.jinanddaydreamer.jin f6b3f82970 docs: keep translation contribution guidance aligned with supported locales (#2235)
Co-authored-by: daydreamer.jin <11205554+johnjheejin@users.noreply.github.com>
2026-10-08 14:04:42 +08:00
CJ Pais afe5a63105 chore: format Ubuntu troubleshooting notes so the prettier check passes 2026-10-07 16:34:16 +08:00
CJ Pais 417dc6ac26 fix: show model loading in the Live preview when the load is slow
#2227 only labeled the wait after recording stops. On a cold start the
Live preview sat empty for the whole load while the user was speaking,
which is what #2093 reported as the app hanging. After 2s of loading,
open the panel with a "Loading model..." notice so warm loads (~0.2s on
Apple Silicon, ~1.5s on a Windows CPU backend) never flash it.

The post-stop label switches immediately since any in-flight load is
the wait at that point. Only loading_completed/loading_failed end a
load, because `unloaded` can arrive from the idle watcher mid-load, and
a new session re-checks the slow state so a retry during a cold load
still shows the notice.

Fixes #2093
2026-10-07 16:34:16 +08:00
20a6685e85 fix: show that the model is loading instead of a stuck "Transcribing..." (#2227)
* fix: show that the model is loading instead of a stuck "Transcribing..."

Recording starts while the model loads in the background. On a cold start
(first use, or after the idle unload) the user can finish speaking before
the load does, and the overlay then showed "Transcribing..." for the whole
load. With a slow disk or a large model that looks like the app has hung,
and people cancel and retry.

The overlay now follows model-state-changed and labels that wait as
loading. It reuses the existing modelSelector.loadingGeneric string, so no
locale changes are needed.

Refs #2093

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: add a dedicated overlay string for model loading in all locales

* fix(i18n): put Arabic ellipses at the end now that the UI is RTL

The Arabic strings were written with leading dots so they would read
correctly in the old left-to-right layout. Since the UI switched to
dir="rtl", those dots render before the text instead of after it.

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: CJ Pais <cj@cjpais.com>
2026-10-07 15:48:30 +08:00
CJ Pais c8262ab3eb isolate transcribe.cpp backend in own worker (#2208)
* move to supervisor and review comments

* review

* always kill worker on cancel, remove lagging stream

* simplify 'blaming' the gpu

* linux hardening

* windows review

* simplify

* fix test

* refactor + simplify

* fix: apply the glibc memory fix in the transcription worker and stop losing its stderr on non-UTF-8 output
2026-10-07 14:36:35 +08:00
Mustafa Özkan a94b403e06 fix(portable): retain access to legacy model cache (#2116) 2026-10-05 19:45:10 +08:00
Benoit GALATI 586a838cec docs: add overlay, wl-clipboard and non-QWERTY paste notes to the Ubuntu notes (#2212)
* docs: add overlay, wl-clipboard and non-QWERTY paste notes to the Ubuntu 26.04 Wayland guide

* docs: recommend the external paste script for non-QWERTY layouts

* docs: shorten the overlay, wl-clipboard and non-QWERTY sections
2026-10-05 18:48:39 +08:00
Carl Henderson 73ab851c2b Docs/ubuntu 26 04 gnome wayland troubleshooting (#2206)
* docs: add Ubuntu 26.04 GNOME Wayland troubleshooting guide

* Updated Readme
2026-10-04 08:47:50 +08:00