Repository navigation
feat(macos): deliver text via pbcopy and osascript System Events - #69
Merged
Merged
Conversation
Adds macOS text delivery to the engine's ProcessRuntime seam: pbcopy for clipboard copy, osascript keystroke synthesis for hotkey paste (command-V / command-shift-V) and typing, with Accessibility-denied failures mapped to an actionable System Settings message. Auto delivery resolves to the hotkey path on macOS. No new engine-crate dependencies; the Linux paths are unchanged. Adds an AXIsProcessTrusted-backed accessibility_trusted() helper in src-tauri and makes the doctor's Clipboard/Paste backend checks platform-aware, running them for macOS ahead of the dictation-supported early return. Removes the now-implemented "Paste automation" release blocker from macOS platform support.
Closed
11 tasks done
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.
PR 3 of #66.
DeliveryRuntime/ProcessRuntimeseam: clipboard viapbcopy, paste chord + typing viaosascript(System Events); Linux paths byte-identical, zero new engine-crate dependencieskeystroke return)AXIsProcessTrustedprobe (newsrc-tauri/src/macos.rs) powers a platform-aware doctor: pbcopy + Accessibility state on macOS, unchanged ydotool/wl-copy checks on Linux, now shown pre-early-returndictation_supportedstill false until the loop is proven)Design deviation from the #66 plan text (Tauri clipboard plugin → pbcopy/osascript) recorded on the issue.
Validated on macOS hardware: 130 engine + 47 shell tests, clippy
-D warningsclean; live pbcopy→pbpaste round-trip through the real ProcessRuntime path (kept as an#[ignore]d regression test). osascript keystroke synthesis deliberately not fired live (would type into the active session) — covered by unit tests; the full-loop E2E lands with PR 5.🤖 Generated with Claude Code