fix(mcp): preload speak pill window

This commit is contained in:
Jamie Pine
2026-04-25 10:29:50 -07:00
parent 2a1bb6f936
commit 3f2c22b793
2 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -164,8 +164,8 @@ fn parse_frame(frame: &str) -> Option<(String, String)> {
fn dispatch(app: &AppHandle, event: &str, data: &str) {
match event {
"speak-start" => {
// Build the pill webview hidden if it doesn't exist yet so its
// listeners can register — but don't *show* it here. The pill
// Defensive for dev/restart paths where the setup-created pill
// is not present — but don't *show* it here. The pill
// surfaces itself from `audio.onplaying` via `dictate:show`, so
// users never see the empty-silent generation window.
ensure_dictate_window(app);