Repository navigation
Closed
Description
Owner-approved 2026-07-23. Bring the full dictation loop (hotkey → record → transcribe → deliver text) to macOS. Today the app is Linux-only by design; a full-repo recon (2026-07-23) mapped every gap with file:line evidence — summarized here.
Current state
- Won't compile on macOS:
.transparent(true)on the float window (src-tauri/src/lib.rs:656) without themacos-private-apiCargo feature +macOSPrivateApiconfig (cargo test broken on macOS: WebviewWindowBuilder::transparent without the transparent feature #59). - No audio capture: recording shells out to
pw-record(PipeWire; src/engine/recorder.rs:44) — no CoreAudio path, no mic-permission strings. - No text delivery: clipboard = wl-copy/xclip/xsel, typing = ydotool/wtype/xdotool (src/engine/paste.rs) — none exist on macOS; even the in-app copy button routes there. macOS needs clipboard + CGEvent Cmd-V synthesis + the Accessibility permission flow.
- No dictation trigger: start/stop relies on a desktop-environment keybinding invoking
pickscribe-gui --toggle(no in-app global shortcut plugin at all). - No macOS CI, packaging, updater artifacts, or signing: bundle targets are deb/appimage, release pins linux-x86_64, install.sh dies on non-Linux, zero macOS compile coverage (which is exactly how cargo test broken on macOS: WebviewWindowBuilder::transparent without the transparent feature #59 shipped).
- Already fine: cfg-gating is macOS-aware throughout, kwin.rs is a runtime no-op off KDE, autostart uses MacosLauncher::LaunchAgent, acceptFirstMouse landed, frontend platform detection handles macOS, whisper runtime code is portable (only its install script is Linux-shaped).
- Degraded-but-nonfatal: tray dark-mode probe via gdbus, sound cues via pw-play, XDG-style config/data dirs.
Owner prerequisites (cannot be automated)
Apple Developer ID certificate + notarization credentialsWaived (owner decision 2026-07-24): no Apple Developer ID for now. macOS ships unsigned via the curl install script (curl downloads carry no Gatekeeper quarantine; Tauri ad-hoc signs arm64). Signed DMG + notarization deferred until a cert exists — tracked as a future follow-up, not a blocker.
PR plan
- PR 1 — compile + CI (feat(macos): compile support for the transparent float window and macOS CI #67): add
macos-private-apifeature +macOSPrivateApi: true; add a macOS CI job (cargo check/test + frontend) so regressions are visible. Closes cargo test broken on macOS: WebviewWindowBuilder::transparent without the transparent feature #59. Depends on: none. - PR 2 — audio capture (feat(macos): native mic capture via ffmpeg avfoundation #68): recorder backend abstraction — keep the CLI recorder on Linux, add a native CoreAudio/cpal backend on macOS;
NSMicrophoneUsageDescription; doctor checks per platform. - PR 3 — text delivery (feat(macos): deliver text via pbcopy and osascript System Events #69): clipboard via the Tauri clipboard plugin (all platforms); macOS paste synthesis (CGEvent Cmd-V) with an explicit Accessibility permission flow + honest doctor reporting when not granted.
- PR 4 — dictation trigger (feat(macos): in-app global shortcut for dictation toggle #71):
tauri-plugin-global-shortcuton macOS (configurable, default chosen at design time); Linux keeps the existing desktop-keybinding path. - PR 5 — platform polish (feat(macos): platform polish and dictation support flip #72): tray icon theme via native appearance instead of gdbus; sound cues via afplay; whisper install script macOS support (nproc→sysctl, brew option); keep current config/data dirs (decision: no migration now — revisit only if App Store distribution ever matters).
- PR 6 — packaging + release (re-scoped 2026-07-24, unsigned):
.appbundle + darwin updater artifacts + multi-platform latest.json, release workflow macOS job, install.sh Darwin branch (curl flow, ~/Applications, no sudo) including the install.sh: bash 3.2 syntax error at line 154 (';;') #57 bash-3.2 fix, platform.rs support-matrix + README/install docs update. Signing/notarization dropped from scope (no Apple Developer ID).
PRs 2–4 are independent after PR 1. UI work follows the design-director workflow where user-facing surfaces change (permission onboarding in PR 3/4).
Acceptance
- Full loop on macOS hardware: hotkey → record → whisper transcript → delivered into another app. (E2E 2026-07-24: global-shortcut start, ffmpeg capture, transcript delivered into TextEdit via synthesized ⌘V, verified by direct AX document read)
- Mic + Accessibility permission prompts appear once, denial degrades honestly (doctor + UI say why). (denial path proven live: clipboard fallback + actionable error; doctor AXIsProcessTrusted row)
- Float capsule renders correctly (transparency, always-on-top, no Dock/switcher pollution). (E2E: layer-5 on-screen capsule, idle/recording states captured)
- macOS installs via
curl -fsSL https://pickforge.dev/pickscribe/install.sh | shand auto-updates from latest.json (unsigned; re-scoped from signed DMG per owner decision 2026-07-24). Shipped in feat: ship unsigned macOS app bundles via the curl installer #78; live updater E2E confirms at the next tag. - macOS CI green and blocking. (macOS check job, required since feat(macos): compile support for the transparent float window and macOS CI #67)
Refs #59
Metadata
Metadata
Assignees
Labels
No labels
Activity
ElbertePlinio commentedon Jul 24, 2026
Design deviations from the PR-plan text, decided during implementation (KISS, recon-backed):
DeliveryRuntime/ProcessRuntimeseam, not the Tauri clipboard plugin. The engine crate stays Tauri-free and the Linux paths stay byte-identical. Accessibility state is probed viaAXIsProcessTrustedin the Tauri crate for honest doctor reporting.dictation_supportedfor macOS stays false through PRs 2–4 (each PR removes its blocker); the flip lands in PR 5 only after the full loop is proven end-to-end on hardware.feat: ship unsigned macOS app bundles via the curl installer (#78)
ElbertePlinio commentedon Jul 24, 2026
All six PRs merged (#67 #68 #69 #71 #72 #78) plus fix PRs #74/#75. Full dictation loop proven on hardware (E2E 2026-07-24), review protocol complete, unsigned macOS distribution shipped via the curl installer per the 2026-07-24 owner decision. Residual (not blockers): live updater E2E at the next tag; signed DMG deferred until an Apple Developer ID exists (#76/#77 track installer/actions hardening).
ElbertePlinio commentedon Jul 24, 2026
Final acceptance box proven live on hardware (2026-07-24):
curl -fsSL .../install.sh | shagainst the published v0.2.1 release installed~/Applications/PickScribe.app— nocom.apple.quarantinexattr (onlycom.apple.provenance), valid ad-hoc signature (flags=0x20002(adhoc,linker-signed)), and thepickscribe-appwrapper launches the app. The combinedlatest.jsonshipsdarwin-aarch64+ all Linux entries with minisign sigs; the first observable in-app macOS auto-update will occur naturally at v0.2.2 (0.2.1 is the first macOS release, so no older install exists to update from).