Finding
Two Tauri commands are registered in generate_handler! but never invoked from the frontend:
stop_all_watchers — src-tauri/src/watcher.rs:235, registered at src-tauri/src/lib.rs:492
list_watchers — src-tauri/src/watcher.rs:247, registered at src-tauri/src/lib.rs:493
Grep across src/ for invoke("list_watchers") and invoke("stop_all_watchers") returns zero matches.
Impact
These commands add surface area to the IPC bridge without being consumed. They compile and are callable by any webview code, but nothing exercises them.
Suggested fix
Either:
- Remove the commands and their
generate_handler! registrations if they're not needed
- Gate them behind
#[cfg(debug_assertions)] if they're intended as debug/diagnostics helpers, and document that intent
🤖 Generated with Claude Code
Finding
Two Tauri commands are registered in
generate_handler!but never invoked from the frontend:stop_all_watchers—src-tauri/src/watcher.rs:235, registered atsrc-tauri/src/lib.rs:492list_watchers—src-tauri/src/watcher.rs:247, registered atsrc-tauri/src/lib.rs:493Grep across
src/forinvoke("list_watchers")andinvoke("stop_all_watchers")returns zero matches.Impact
These commands add surface area to the IPC bridge without being consumed. They compile and are callable by any webview code, but nothing exercises them.
Suggested fix
Either:
generate_handler!registrations if they're not needed#[cfg(debug_assertions)]if they're intended as debug/diagnostics helpers, and document that intent🤖 Generated with Claude Code