Handy/src-tauri/src
Viren Mohindra 095f4ac455
fix: prevent idle watcher from unloading model during recording (#1085)
* fix: prevent idle watcher from unloading model during recording

the idle watcher treats ModelUnloadTimeout::Immediately as a 0s
timeout, causing idle_ms > 0 to always be true. this unloads the
model on the next 10s tick — even while the user is still recording.

the Immediately variant is already handled correctly by
maybe_unload_immediately() which fires after each transcription
completes. the idle watcher should skip it entirely.

fixes regression introduced in d1da935.

* fix race condition

* cleanup

* format

---------

Co-authored-by: CJ Pais <cj@cjpais.com>
2026-03-19 13:45:09 +08:00
..
audio_toolkit feat(audio): use device default sample rate and always downsample (#1084) 2026-03-19 08:53:03 +08:00
commands Migrate to transcribe-rs-0.3.1 and add Canary support (#1023) 2026-03-16 16:31:44 +08:00
helpers WIP: Add tauri-specta for generating TS bindings (#322) 2025-11-27 17:07:22 +07:00
managers fix: prevent idle watcher from unloading model during recording (#1085) 2026-03-19 13:45:09 +08:00
shortcut add extra recording buffer (#1089) 2026-03-18 21:00:24 +08:00
actions.rs fix: keep Windows microphone guidance Windows-only (#1032) 2026-03-15 22:44:48 +08:00
apple_intelligence.rs feat: implement structured outputs for post-processing providers (#706) 2026-02-17 12:14:00 +08:00
audio_feedback.rs feat: add portable mode to NSIS installer (#807) 2026-03-06 12:07:11 +08:00
cli.rs feat: add CLI parameters for linux (#792) 2026-02-17 12:48:43 +08:00
clipboard.rs Add "external script" paste method (#638) 2026-02-19 17:07:16 +08:00
input.rs refactor enigo input (#441) 2025-12-12 16:33:49 +07:00
lib.rs add extra recording buffer (#1089) 2026-03-18 21:00:24 +08:00
llm_client.rs feat: implement structured outputs for post-processing providers (#706) 2026-02-17 12:14:00 +08:00
main.rs feat: add CLI parameters for linux (#792) 2026-02-17 12:48:43 +08:00
overlay.rs attempt to clean up warnings on build (#1037) 2026-03-14 11:42:42 +08:00
portable.rs feat: add portable mode to NSIS installer (#807) 2026-03-06 12:07:11 +08:00
settings.rs fix: prevent idle watcher from unloading model during recording (#1085) 2026-03-19 13:45:09 +08:00
signal_handle.rs attempt to clean up warnings on build (#1037) 2026-03-14 11:42:42 +08:00
transcription_coordinator.rs fix: transcription lock-up race condition & add small debounce (#824) 2026-02-16 22:18:50 +08:00
tray.rs be able to change models from the tray (#1002) 2026-03-14 12:19:06 +08:00
tray_i18n.rs fix(i18n): tray menu shows Simplified Chinese when Traditional Chinese is selected (#901) 2026-03-01 10:39:14 +07:00
utils.rs fix: transcription lock-up race condition & add small debounce (#824) 2026-02-16 22:18:50 +08:00