Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
fix(permissions): resolve system audio permission on startup
Gabriel Stein1affc5a3d60e
diff --git a/main.js b/main.jsindex 8454dea35..4ca4eba2f 100644--- a/main.js+++ b/main.js@@ -367,6 +367,13 @@ function initializeDeferredManagers() {});}+ // Resolve system audio permission status for the session.+ // If already granted, the probe succeeds instantly (no dialog).+ // If never asked, status stays "unknown" until the user clicks "Grant Access".+ if (audioTapManager?.isSupported()) {+ audioTapManager.resolvePermission().catch(() => {});+ }+googleCalendarManager.start();meetingDetectionEngine.start();}diff --git a/src/helpers/audioTapManager.js b/src/helpers/audioTapManager.jsindex ba73742b2..77550d009 100644--- a/src/helpers/audioTapManager.js+++ b/src/helpers/audioTapManager.js@@ -78,6 +78,30 @@ class AudioTapManager {return { granted: status === "granted", status };}+ /**+ * Probe the native binary to resolve permission status for the session.+ * Safe to call on startup: only probes when macOS has already asked the+ * user (screenStatus !== "not-determined"), so no consent dialog appears.+ * First-time users stay "unknown" until they click "Grant Access".+ */+ async resolvePermission() {+ if (!this.isSupported() || this.permissionStatus !== "unknown") {+ return;+ }+ const { systemPreferences } = require("electron");+ const screenStatus = systemPreferences.getMediaAccessStatus("screen");+ if (screenStatus === "not-determined") {+ // User has never been asked — don't trigger the consent dialog.+ return;+ }+ // User was asked before (granted or denied) — probe is dialog-safe.+ try {+ await this.requestAccess();+ } catch {+ // requestAccess already caches "denied" on permission_denied errors.+ }+ }+async requestAccess() {if (!this.isSupported()) {return { granted: false, status: "unsupported" };