Handy/src-tauri/src
odi 30b57c4295
fix(issue 522): surface paste errors as UI toast notification (#1198)
* fix: surface paste errors as UI toast notification (#522)

When pasting the transcription fails (e.g. wtype/xdotool/dotool not
available or returns an error on Linux), the error was silently logged
to the backend console only.  Users had no idea why their text was not
pasted.

Emit a new 'paste-error' Tauri event from the Rust side and listen for
it in the frontend App component, showing a sonner toast with the error
detail — mirroring the existing 'recording-error' pattern exactly.

Files changed:
- src-tauri/src/actions.rs: add PasteErrorEvent struct, emit event on paste failure
- src/App.tsx: add useEffect listener that shows toast.error on paste-error
- src/lib/types/events.ts: add PasteErrorEvent interface
- src/i18n/locales/en/translation.json: add pasteFailedTitle/pasteFailed keys

* chore: apply cargo fmt and prettier formatting

* add translationss

---------

Co-authored-by: CJ Pais <cj@cjpais.com>
2026-04-07 17:36:48 +08:00
..
audio_toolkit [bugfix] remove long repeating words (#976) 2026-03-28 18:40:47 +08:00
commands fix: require magic string in portable marker to prevent false portable mode on scoop installs (#1126) 2026-03-26 08:52:33 +08:00
helpers WIP: Add tauri-specta for generating TS bindings (#322) 2025-11-27 17:07:22 +07:00
managers fix crash on old cpus (#1176) 2026-04-02 08:20:28 +08:00
shortcut enumerate and list gpus in the whisper dropdown, improve auto gpu (#1142) 2026-03-26 09:00:59 +08:00
actions.rs fix(issue 522): surface paste errors as UI toast notification (#1198) 2026-04-07 17:36: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 fix(tray): set tray tooltip text on Windows (#1185) 2026-03-29 13:04:16 +08:00
llm_client.rs perf: add reasoning_effort passthrough to avoid thinking-mode latency in local models (#1221) 2026-04-07 15:19:40 +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 fix: require magic string in portable marker to prevent false portable mode on scoop installs (#1126) 2026-03-26 08:52:33 +08:00
settings.rs fix: don't log cloud provider keys (#1145) 2026-03-28 19:05:36 +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 fix(tray): set tray tooltip text on Windows (#1185) 2026-03-29 13:04:16 +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