Skip to content

PickScribe for macOS #66

Closed
Closed

Description

@ElbertePlinio

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 the macos-private-api Cargo feature + macOSPrivateApi config (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 credentials Waived (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

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 | sh and 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

Activity

  1. ElbertePlinio commented on Jul 24, 2026

    @ElbertePlinio
    MemberAuthor

    Design deviations from the PR-plan text, decided during implementation (KISS, recon-backed):

    • PR 2: macOS capture uses ffmpeg (avfoundation), not cpal/CoreAudio. ffmpeg is already a hard product dependency on every platform (unconditional doctor check; file transcription), and it emits the exact 16 kHz/mono/s16 WAV the whisper pipeline consumes — the entire existing recorder process machinery (SIGINT finalize, log capture, size validation) is reused instead of introducing a native audio stack.
    • PR 3: delivery uses OS-shipped pbcopy + osascript through the existing DeliveryRuntime/ProcessRuntime seam, not the Tauri clipboard plugin. The engine crate stays Tauri-free and the Linux paths stay byte-identical. Accessibility state is probed via AXIsProcessTrusted in the Tauri crate for honest doctor reporting.
    • dictation_supported for 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.
  2. ElbertePlinio commented on Jul 24, 2026

    @ElbertePlinio
    MemberAuthor

    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).

  3. ElbertePlinio commented on Jul 24, 2026

    @ElbertePlinio
    MemberAuthor

    Final acceptance box proven live on hardware (2026-07-24): curl -fsSL .../install.sh | sh against the published v0.2.1 release installed ~/Applications/PickScribe.app — no com.apple.quarantine xattr (only com.apple.provenance), valid ad-hoc signature (flags=0x20002(adhoc,linker-signed)), and the pickscribe-app wrapper launches the app. The combined latest.json ships darwin-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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions