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.
* 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>
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.
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>
* 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>
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>
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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>
* 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
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
#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
* 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>
* 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
* 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