Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(app): show meeting piggyback on windows

Ezra Ellette0d523388fd85
diff --git a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx
index 28afda688..db72cdb4b 100644
--- a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx
@@ -1786,15 +1786,17 @@ export function RecordingSettings() {
AudioDeviceInfo[]
>([]);
- // Gate for the experimental CoreAudio Process Tap toggle — we only show
- // the switch on macOS 14.4+ where the API exists. Probed once via a
- // Tauri command that proxies to
- // `screenpipe_audio::core::process_tap::is_process_tap_available()`.
- const [coreaudioTapAvailable, setCoreaudioTapAvailable] = useState<boolean | null>(null);
+ const [isMacOS, setIsMacOS] = useState(false);
+ const [isWindows, setIsWindows] = useState(false);
+
+ // Gate for process-tap-backed experimental audio controls. CoreAudio global
+ // system audio is macOS-only; meeting piggyback can use the same availability
+ // probe on macOS and Windows.
+ const [processTapAvailable, setProcessTapAvailable] = useState<boolean | null>(null);
useEffect(() => {
commands.checkCoreaudioProcessTapAvailable()
- .then(setCoreaudioTapAvailable)
- .catch(() => setCoreaudioTapAvailable(false));
+ .then(setProcessTapAvailable)
+ .catch(() => setProcessTapAvailable(false));
}, []);
type ExcludedApp = {
@@ -1832,9 +1834,9 @@ export function RecordingSettings() {
}, [toast]);
useEffect(() => {
- if (!coreaudioTapAvailable) return;
+ if (!isMacOS || !processTapAvailable) return;
reloadAudioExclusions();
- }, [coreaudioTapAvailable, reloadAudioExclusions]);
+ }, [isMacOS, processTapAvailable, reloadAudioExclusions]);
const addAudioExclusion = useCallback(
(app: ExcludedApp) => {
@@ -1897,8 +1899,6 @@ export function RecordingSettings() {
const { health } = useHealthCheck();
const isDisabled = health?.status_code === 500;
const audioPipeline = health?.audio_pipeline ?? null;
- const [isMacOS, setIsMacOS] = useState(false);
- const [isWindows, setIsWindows] = useState(false);
const [platformReady, setPlatformReady] = useState(false);
const [showApiKey, setShowApiKey] = useState(false);
const [showOpenAIApiKey, setShowOpenAIApiKey] = useState(false);
@@ -3525,7 +3525,7 @@ Your screen is a pipe. Everything you see, hear, and type flows through it. Scre
)}
{/* CoreAudio System Audio (macOS 14.4+ only) */}
- {!settings.disableAudio && coreaudioTapAvailable && (
+ {!settings.disableAudio && isMacOS && processTapAvailable && (
<Card className="border-border bg-card">
<CardContent className="px-3 py-2.5">
<div className="flex items-center justify-between">
@@ -3551,11 +3551,9 @@ Your screen is a pipe. Everything you see, hear, and type flows through it. Scre
)}
{/* Meeting piggyback (experimental): during meetings, capture only the
- meeting app's audio and the mic it actually uses. macOS-only for now
- (needs the CoreAudio Process Tap); Windows is re-enabled once the
- per-process capture supervisor lands (see TESTING.md "Windows
- supervisor DEFERRED"). */}
- {!settings.disableAudio && coreaudioTapAvailable && (
+ meeting app's audio and the mic it actually uses. Uses CoreAudio
+ Process Tap on macOS and WASAPI process loopback on Windows. */}
+ {!settings.disableAudio && (isMacOS || isWindows) && processTapAvailable && (
<Card className="border-border bg-card">
<CardContent className="px-3 py-2.5">
<div className="flex items-center justify-between">
@@ -3582,7 +3580,7 @@ Your screen is a pipe. Everything you see, hear, and type flows through it. Scre
{/* Per-app exclusion list for the CoreAudio Process Tap. Only
meaningful when the tap is the active backend. */}
- {!settings.disableAudio && coreaudioTapAvailable && settings.experimentalCoreaudioSystemAudio && (
+ {!settings.disableAudio && isMacOS && processTapAvailable && settings.experimentalCoreaudioSystemAudio && (
<Card className="border-border bg-card">
<CardContent className="px-3 py-2.5 space-y-2">
<div className="flex items-center space-x-2.5">
diff --git a/apps/screenpipe-app-tauri/lib/utils/tauri.ts b/apps/screenpipe-app-tauri/lib/utils/tauri.ts
index 6fd227e2c..0af494574 100644
--- a/apps/screenpipe-app-tauri/lib/utils/tauri.ts
+++ b/apps/screenpipe-app-tauri/lib/utils/tauri.ts
@@ -193,10 +193,10 @@ async checkBrowsersAutomationPermission() : Promise<boolean> {
return await TAURI_INVOKE("check_browsers_automation_permission");
},
/**
- * Returns true on macOS 14.4+ where the CoreAudio Process Tap API is
- * available. Used to gate the "experimental System Audio via CoreAudio"
- * toggle — we don't show it on platforms where flipping it would be a
- * no-op. False on Windows, Linux, and older macOS.
+ * Returns true on platforms where Screenpipe's process-audio tap backend is
+ * available. On macOS that means CoreAudio Process Tap (14.4+); on Windows it
+ * means WASAPI process loopback (build 20348+). Linux and older OS versions
+ * return false.
*/
async checkCoreaudioProcessTapAvailable() : Promise<boolean> {
return await TAURI_INVOKE("check_coreaudio_process_tap_available");
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/permissions.rs b/apps/screenpipe-app-tauri/src-tauri/src/permissions.rs
index 66f9f6715..41f4861c6 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/permissions.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/permissions.rs
@@ -673,18 +673,18 @@ const CHROMIUM_BROWSERS: &[ChromiumBrowserInfo] = &[
},
];
-/// Returns true on macOS 14.4+ where the CoreAudio Process Tap API is
-/// available. Used to gate the "experimental System Audio via CoreAudio"
-/// toggle — we don't show it on platforms where flipping it would be a
-/// no-op. False on Windows, Linux, and older macOS.
+/// Returns true on platforms where Screenpipe's process-audio tap backend is
+/// available. On macOS that means CoreAudio Process Tap (14.4+); on Windows it
+/// means WASAPI process loopback (build 20348+). Linux and older OS versions
+/// return false.
#[tauri::command(async)]
#[specta::specta]
pub fn check_coreaudio_process_tap_available() -> bool {
- #[cfg(target_os = "macos")]
+ #[cfg(any(target_os = "macos", target_os = "windows"))]
{
screenpipe_audio::core::process_tap::is_process_tap_available()
}
- #[cfg(not(target_os = "macos"))]
+ #[cfg(not(any(target_os = "macos", target_os = "windows")))]
{
false
}