Add macOS microphone selection and paste fixes#5
Merged
OBress merged 5 commits intoMay 10, 2026
Conversation
CI's `cargo clippy --all-targets -- -D warnings` rejected the field-reassignment pattern. Use struct init with `..Default::default()` instead. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
OBress
added a commit
that referenced
this pull request
May 11, 2026
Rolls up the v0.1.1 macOS runtime fixes (which never shipped — the Intel build queued in CI for 90+ min and was abandoned) plus the new mic picker + paste injection fixes from #5. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the remaining macOS dictation usability fixes discovered while running VibeToText locally on an Apple Silicon Mac:
Root Cause
The microphone field allowed a device name to be typed, but macOS users had no reliable way to discover or select the exact CPAL input device name. The bundle also lacked
NSMicrophoneUsageDescription, so macOS could fail to associate the app with the microphone privacy prompt.After microphone capture worked, paste exposed two macOS-specific issues: Enigo's layout-dependent
Key::Unicode('v')path can call keyboard layout APIs from a Tokio worker thread and crash on macOS, and Enigo's default settings request the Accessibility prompt every time a new input injector is created.Changes
list_input_devicesTauri command backed by CPAL input device enumeration.(system default)and preserving saved missing devices.src-tauri/Info.plistwithNSMicrophoneUsageDescription.Cmd+Vpaste injection to avoid layout lookup crashes.open_prompt_to_get_permissions = falseduring paste/type injection to avoid repeated Accessibility popups.Validation
node --check src/main.jscargo fmt --checkcargo check --all-targetsnpm run tauri -- build --debug --bundles app.applocally and verified microphone capture, Cursor paste, and no quit-after-paste behavior.