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: recover filtered screenshots after missing native completions

Louis Beaumont5eee60b5ad6e
diff --git a/crates/screenpipe-screen/src/screenshot_privacy/macos.rs b/crates/screenpipe-screen/src/screenshot_privacy/macos.rs
index e0d53954e..d087bb63d 100644
--- a/crates/screenpipe-screen/src/screenshot_privacy/macos.rs
+++ b/crates/screenpipe-screen/src/screenshot_privacy/macos.rs
@@ -5,11 +5,12 @@ use super::*;
use anyhow::{anyhow, ensure};
use cidre::{api, cv, ns, sc};
use once_cell::sync::Lazy;
+use std::future::Future;
use std::sync::Arc;
use tokio::sync::Semaphore;
-// A native call may never return. Keep its permit in the worker, including
-// after timeout, so a hung WindowServer cannot accumulate blocking workers.
+// A synchronous native call may never return. Keep its permit in the worker
+// after the outer timeout so it cannot accumulate replacement blocking workers.
static CAPTURE_SLOT: Lazy<Arc<Semaphore>> = Lazy::new(|| Arc::new(Semaphore::new(1)));
const DEADLINE: Duration = Duration::from_secs(5);
@@ -23,22 +24,46 @@ pub(crate) async fn capture_filtered(
api::macos_available("14.0"),
"window-filtered screenshots require macOS 14 or newer"
);
- let permit = tokio::time::timeout(Duration::from_secs(1), CAPTURE_SLOT.clone().acquire_owned())
- .await
- .map_err(|_| anyhow!("window-filtered capture is still busy"))??;
let id = monitor.id();
let filters = filters.clone();
+ capture_on_worker(CAPTURE_SLOT.clone(), DEADLINE, move || async move {
+ capture(id, &filters, sources).await
+ })
+ .await
+}
+
+// Construct the future on its native worker: ScreenCaptureKit objects must stay
+// on that thread and inside its autorelease pool.
+async fn capture_on_worker<F, Fut>(
+ slot: Arc<Semaphore>,
+ deadline: Duration,
+ capture_job: F,
+) -> anyhow::Result<DynamicImage>
+where
+ F: FnOnce() -> Fut + Send + 'static,
+ Fut: Future<Output = anyhow::Result<DynamicImage>>,
+{
+ let permit = tokio::time::timeout(Duration::from_secs(1), slot.acquire_owned())
+ .await
+ .map_err(|_| anyhow!("window-filtered capture is still busy"))??;
let runtime = tokio::runtime::Handle::current();
let work = tokio::task::spawn_blocking(move || {
let _permit = permit;
cidre::objc::ar_pool(|| {
runtime
- .block_on(capture(id, &filters, sources))
+ .block_on(async {
+ // Timing out the JoinHandle alone detaches a still-running
+ // worker. Bound the native completion future here so a lost
+ // callback drops that future and releases the capture slot.
+ tokio::time::timeout(deadline, capture_job())
+ .await
+ .map_err(|_| anyhow!("window-filtered capture timed out"))?
+ })
.map_err(|e| e.to_string())
})
.map_err(anyhow::Error::msg)
});
- tokio::time::timeout(DEADLINE, work)
+ tokio::time::timeout(deadline, work)
.await
.map_err(|_| anyhow!("window-filtered capture timed out"))??
}
@@ -469,3 +494,115 @@ fn rgba(buf: &mut cv::ImageBuf) -> anyhow::Result<DynamicImage> {
unsafe { buf.unlock_lock_base_addr(flags) };
result
}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+ use std::sync::atomic::{AtomicBool, Ordering};
+ use tokio::sync::oneshot;
+
+ #[tokio::test]
+ async fn stalled_completion_releases_slot_for_next_capture() {
+ let slot = Arc::new(Semaphore::new(1));
+ let (release, completion) = oneshot::channel::<()>();
+ let cancelled = Arc::new(AtomicBool::new(false));
+ let worker_cancelled = cancelled.clone();
+ struct OnDrop(Arc<AtomicBool>);
+ impl Drop for OnDrop {
+ fn drop(&mut self) {
+ self.0.store(true, Ordering::SeqCst);
+ }
+ }
+
+ let first = capture_on_worker(
+ slot.clone(),
+ Duration::from_millis(50),
+ move || async move {
+ let _on_drop = OnDrop(worker_cancelled);
+ let _ = completion.await;
+ Ok(DynamicImage::new_rgba8(2, 2))
+ },
+ )
+ .await;
+ let second = capture_on_worker(slot.clone(), Duration::from_secs(1), || async {
+ Ok(DynamicImage::new_rgba8(3, 2))
+ })
+ .await;
+ let cancelled_before_late_completion = cancelled.load(Ordering::SeqCst);
+ // Always unblock the old implementation before asserting so a failing
+ // regression test cannot leave runtime shutdown waiting on its worker.
+ let _ = release.send(());
+ let _drained = tokio::time::timeout(Duration::from_secs(1), slot.acquire_owned())
+ .await
+ .expect("worker must drain after its completion is released")
+ .unwrap();
+
+ assert!(first.unwrap_err().to_string().contains("timed out"));
+ let image = second.expect("next screenshot must succeed after a missing completion");
+ assert_eq!((image.width(), image.height()), (3, 2));
+ assert!(
+ cancelled_before_late_completion,
+ "timed-out native future must be dropped"
+ );
+ }
+
+ #[tokio::test]
+ async fn privacy_failure_is_returned_and_does_not_poison_next_capture() {
+ let slot = Arc::new(Semaphore::new(1));
+ let result = capture_on_worker(slot.clone(), Duration::from_secs(1), || async {
+ Err(anyhow!("desktop scene changed during privacy capture"))
+ })
+ .await;
+ assert_eq!(
+ result.unwrap_err().to_string(),
+ "desktop scene changed during privacy capture"
+ );
+ let image = capture_on_worker(slot, Duration::from_secs(1), || async {
+ Ok(DynamicImage::new_rgba8(2, 2))
+ })
+ .await
+ .unwrap();
+ assert_eq!((image.width(), image.height()), (2, 2));
+ }
+
+ #[tokio::test]
+ async fn synchronous_native_stall_does_not_spawn_replacement_workers() {
+ let slot = Arc::new(Semaphore::new(1));
+ let (release, blocked) = std::sync::mpsc::channel::<()>();
+ let replacement_started = Arc::new(AtomicBool::new(false));
+ let started = replacement_started.clone();
+ let first = capture_on_worker(
+ slot.clone(),
+ Duration::from_millis(50),
+ move || async move {
+ // A synchronous native IPC cannot be cancelled by polling a timer.
+ let _ = blocked.recv();
+ Ok(DynamicImage::new_rgba8(2, 2))
+ },
+ )
+ .await;
+ let second = capture_on_worker(
+ slot.clone(),
+ Duration::from_millis(50),
+ move || async move {
+ started.store(true, Ordering::SeqCst);
+ Ok(DynamicImage::new_rgba8(2, 2))
+ },
+ )
+ .await;
+ // Unblock before asserting, including when the regression fails.
+ let _ = release.send(());
+ let third = capture_on_worker(slot, Duration::from_secs(1), || async {
+ Ok(DynamicImage::new_rgba8(2, 2))
+ })
+ .await;
+
+ assert!(first.unwrap_err().to_string().contains("timed out"));
+ assert!(second.unwrap_err().to_string().contains("still busy"));
+ assert!(!replacement_started.load(Ordering::SeqCst));
+ assert!(
+ third.is_ok(),
+ "native completion should release the worker slot"
+ );
+ }
+}
diff --git a/docs/COVERAGE.md b/docs/COVERAGE.md
index fa79448b2..60bbeb99b 100644
--- a/docs/COVERAGE.md
+++ b/docs/COVERAGE.md
@@ -37,16 +37,16 @@ results and `cargo llvm-cov` data on top when judging release confidence.
### Core Engine
- Mapped suites: 37
-- Mapped Rust files: 407
-- Active test blocks: 3966
+- Mapped Rust files: 408
+- Active test blocks: 3970
- Ignored/manual test blocks: 189
-- Weighted coverage points: 3267.3
+- Weighted coverage points: 3271.3
| Platform | Suites | Active tests | Ignored tests | Weighted points | Layers | Flows | Critical score |
| --- | --- | --- | --- | --- | --- | --- | --- |
-| windows | 33 | 3803 | 171 | 3194.3 | 21 | 11 | 100% |
-| macos | 32 | 3846 | 150 | 3189.6 | 22 | 11 | 100% |
-| linux | 29 | 3381 | 146 | 2812.6 | 20 | 11 | 100% |
+| windows | 33 | 3807 | 171 | 3198.3 | 21 | 11 | 100% |
+| macos | 32 | 3850 | 150 | 3193.6 | 22 | 11 | 100% |
+| linux | 29 | 3385 | 146 | 2816.6 | 20 | 11 | 100% |
## Refresh
diff --git a/docs/coverage/CORE.md b/docs/coverage/CORE.md
index 8b4223977..94a6c9e7e 100644
--- a/docs/coverage/CORE.md
+++ b/docs/coverage/CORE.md
@@ -8,11 +8,11 @@ confidence, and criticality.
- Manifest: `docs/coverage/core-engine-map.json`
- Tracked crates: screenpipe-engine, screenpipe-db, screenpipe-sqlite-coordinator, screenpipe-audio, screenpipe-screen, screenpipe-a11y, screenpipe-fs
- Mapped suites: 37
-- Mapped Rust files: 407
-- Active test blocks: 3966
+- Mapped Rust files: 408
+- Active test blocks: 3970
- Ignored/manual test blocks: 189
-- Declared test blocks: 4155
-- Weighted coverage points: 3267.3
+- Declared test blocks: 4159
+- Weighted coverage points: 3271.3
Confidence weights: strong=1.0, partial=0.7, conditional=0.4, smoke=0.3.
Criticality weights: high=1.0, medium=0.7, low=0.4.
@@ -23,19 +23,19 @@ are explicitly enabled in a runtime lane.
| Platform | Suites | Active tests | Ignored tests | Weighted points | Layers | Flows | Critical score |
| --- | --- | --- | --- | --- | --- | --- | --- |
-| windows | 33 | 3803 | 171 | 3194.3 | 21 | 11 | 100% |
-| macos | 32 | 3846 | 150 | 3189.6 | 22 | 11 | 100% |
-| linux | 29 | 3381 | 146 | 2812.6 | 20 | 11 | 100% |
+| windows | 33 | 3807 | 171 | 3198.3 | 21 | 11 | 100% |
+| macos | 32 | 3850 | 150 | 3193.6 | 22 | 11 | 100% |
+| linux | 29 | 3385 | 146 | 2816.6 | 20 | 11 | 100% |
## Crate Summary
| Crate | Suites | Integration files | Source unit files | Active tests | Ignored tests | Weighted points | Flows |
| --- | --- | --- | --- | --- | --- | --- | --- |
-| screenpipe-engine | 12 | 22 | 133 | 1896 | 53 | 1458.2 | 10 |
+| screenpipe-engine | 12 | 22 | 133 | 1897 | 53 | 1459.2 | 10 |
| screenpipe-db | 5 | 69 | 29 | 640 | 32 | 609.2 | 9 |
| screenpipe-sqlite-coordinator | 1 | 0 | 3 | 27 | 0 | 27.0 | 2 |
| screenpipe-audio | 8 | 29 | 54 | 706 | 56 | 617.0 | 5 |
-| screenpipe-screen | 6 | 9 | 22 | 293 | 10 | 261.4 | 4 |
+| screenpipe-screen | 6 | 9 | 23 | 296 | 10 | 264.4 | 4 |
| screenpipe-a11y | 4 | 2 | 34 | 401 | 38 | 291.5 | 3 |
| screenpipe-fs | 1 | 0 | 1 | 3 | 0 | 3.0 | 3 |
@@ -65,25 +65,25 @@ bun run coverage:core -- --llvm-cov-summary ../../docs/coverage/core-llvm-cov-su
| accessibility | 4 suites / 384 active / 35 ignored / 349.0 pts | 4 suites / 440 active / 14 ignored / 350.7 pts | 4 suites / 342 active / 7 ignored / 314.0 pts |
| audio | 10 suites / 844 active / 60 ignored / 755.0 pts | 9 suites / 838 active / 60 ignored / 750.8 pts | 8 suites / 759 active / 59 ignored / 695.5 pts |
| audio-device | 2 suites / 243 active / 10 ignored / 219.3 pts | 2 suites / 243 active / 10 ignored / 219.3 pts | 1 suites / 164 active / 9 ignored / 164.0 pts |
-| configuration | 2 suites / 154 active / 3 ignored / 139.7 pts | 2 suites / 154 active / 3 ignored / 139.7 pts | 2 suites / 154 active / 3 ignored / 139.7 pts |
+| configuration | 2 suites / 155 active / 3 ignored / 140.7 pts | 2 suites / 155 active / 3 ignored / 140.7 pts | 2 suites / 155 active / 3 ignored / 140.7 pts |
| database | 7 suites / 596 active / 28 ignored / 565.2 pts | 7 suites / 596 active / 28 ignored / 565.2 pts | 7 suites / 596 active / 28 ignored / 565.2 pts |
| db-search | 2 suites / 120 active / 9 ignored / 120.0 pts | 2 suites / 120 active / 9 ignored / 120.0 pts | 2 suites / 120 active / 9 ignored / 120.0 pts |
-| engine-lifecycle | 6 suites / 285 active / 1 ignored / 252.8 pts | 6 suites / 285 active / 1 ignored / 252.8 pts | 6 suites / 281 active / 9 ignored / 251.9 pts |
+| engine-lifecycle | 6 suites / 286 active / 1 ignored / 253.8 pts | 6 suites / 286 active / 1 ignored / 253.8 pts | 6 suites / 282 active / 9 ignored / 252.9 pts |
| local-api | 3 suites / 494 active / 12 ignored / 349.7 pts | 3 suites / 494 active / 12 ignored / 349.7 pts | 3 suites / 494 active / 12 ignored / 349.7 pts |
| meeting | 6 suites / 1766 active / 32 ignored / 1443.5 pts | 6 suites / 1766 active / 32 ignored / 1443.5 pts | 4 suites / 1412 active / 28 ignored / 1113.2 pts |
| ocr | 4 suites / 141 active / 7 ignored / 130.8 pts | 4 suites / 134 active / 7 ignored / 128.6 pts | 3 suites / 125 active / 6 ignored / 119.6 pts |
| os-integration | 1 suites / 6 active / 0 ignored / 1.7 pts | 1 suites / 6 active / 0 ignored / 1.7 pts | - |
-| performance | 13 suites / 1743 active / 87 ignored / 1537.7 pts | 14 suites / 1868 active / 95 ignored / 1587.7 pts | 13 suites / 1743 active / 87 ignored / 1537.7 pts |
+| performance | 13 suites / 1747 active / 87 ignored / 1541.7 pts | 14 suites / 1872 active / 95 ignored / 1591.7 pts | 13 suites / 1747 active / 87 ignored / 1541.7 pts |
| pipes | 1 suites / 555 active / 3 ignored / 388.5 pts | 1 suites / 555 active / 3 ignored / 388.5 pts | 1 suites / 555 active / 3 ignored / 388.5 pts |
-| privacy | 5 suites / 1032 active / 43 ignored / 834.6 pts | 5 suites / 1088 active / 22 ignored / 836.3 pts | 5 suites / 990 active / 15 ignored / 799.5 pts |
+| privacy | 5 suites / 1035 active / 43 ignored / 837.6 pts | 5 suites / 1091 active / 22 ignored / 839.3 pts | 5 suites / 993 active / 15 ignored / 802.5 pts |
| real-app | - | 1 suites / 125 active / 8 ignored / 50.0 pts | - |
| speaker | 2 suites / 416 active / 18 ignored / 416.0 pts | 2 suites / 416 active / 18 ignored / 416.0 pts | 2 suites / 416 active / 18 ignored / 416.0 pts |
| storage | 4 suites / 710 active / 41 ignored / 591.5 pts | 4 suites / 710 active / 41 ignored / 591.5 pts | 4 suites / 710 active / 41 ignored / 591.5 pts |
| sync | 1 suites / 555 active / 3 ignored / 388.5 pts | 1 suites / 555 active / 3 ignored / 388.5 pts | 1 suites / 555 active / 3 ignored / 388.5 pts |
-| timeline | 4 suites / 1276 active / 49 ignored / 1050.1 pts | 4 suites / 1276 active / 49 ignored / 1050.1 pts | 4 suites / 1276 active / 49 ignored / 1050.1 pts |
+| timeline | 4 suites / 1279 active / 49 ignored / 1053.1 pts | 4 suites / 1279 active / 49 ignored / 1053.1 pts | 4 suites / 1279 active / 49 ignored / 1053.1 pts |
| transcription | 7 suites / 904 active / 53 ignored / 706.4 pts | 6 suites / 898 active / 53 ignored / 702.2 pts | 6 suites / 898 active / 53 ignored / 702.2 pts |
| ui-events | 4 suites / 832 active / 34 ignored / 630.5 pts | 3 suites / 763 active / 5 ignored / 582.2 pts | 3 suites / 763 active / 5 ignored / 582.2 pts |
-| vision-capture | 6 suites / 599 active / 33 ignored / 473.8 pts | 6 suites / 592 active / 33 ignored / 471.6 pts | 5 suites / 583 active / 32 ignored / 462.6 pts |
+| vision-capture | 6 suites / 602 active / 33 ignored / 476.8 pts | 6 suites / 595 active / 33 ignored / 474.6 pts | 5 suites / 586 active / 32 ignored / 465.6 pts |
## Critical Flow Matrix
@@ -138,7 +138,7 @@ bun run coverage:core -- --llvm-cov-summary ../../docs/coverage/core-llvm-cov-su
| db-timeline-frames | screenpipe-db | windows, macos, linux | database, timeline, storage, performance | timeline-streaming, performance-liveness | high | strong | mixed | 40 | 315 | 15 | Frame/audio joins, timeline query shape, suggestions frames, write queue, DB primitives (src/db.rs split into src/db/ modules), feedback record upserts, media eviction anti-join regressions, SAF output registry, semantic storage, and timeline performance. |
| engine-api-routes | screenpipe-engine | windows, macos, linux | local-api, timeline, meeting, transcription | local-api-search, timeline-streaming, meeting-live-notes, audio-record-transcribe | high | partial | mixed | 47 | 441 | 7 | Route/unit coverage for search, health, streaming, meetings, time/timezone, and transcription. Legacy endpoint/websocket tests require local data and remain ignored. |
| engine-capture-timeline | screenpipe-engine | windows, macos, linux | vision-capture, timeline, storage, performance | capture-ocr-pipeline, timeline-streaming, performance-liveness | high | partial | mixed | 25 | 312 | 26 | Covers capture trigger logic, frame/audio linking, hot cache, timeline refresh regressions, fragmented MP4 extraction, and HD-mode control. Several real-data tests are intentionally ignored by default. |
-| engine-config-lifecycle | screenpipe-engine | windows, macos, linux | configuration, engine-lifecycle, performance | settings-to-engine-config, engine-health-lifecycle, performance-liveness | high | strong | mixed | 13 | 126 | 1 | Fast logic coverage for the config bridge, health-endpoint identity, tray health debounce, sleep/power policies, and queue backpressure. |
+| engine-config-lifecycle | screenpipe-engine | windows, macos, linux | configuration, engine-lifecycle, performance | settings-to-engine-config, engine-health-lifecycle, performance-liveness | high | strong | mixed | 13 | 127 | 1 | Fast logic coverage for the config bridge, health-endpoint identity, tray health debounce, sleep/power policies, and queue backpressure. |
| engine-db-recovery-cli | screenpipe-engine | windows, macos, linux | database, engine-lifecycle | engine-health-lifecycle, performance-liveness | high | strong | unit | 1 | 33 | 0 | Exact DB/WAL/SHM working-copy preservation, rollback on archive failure, and restart repair for crashes during the multi-file generation swap. |
| engine-focus-os | screenpipe-engine | windows, macos | engine-lifecycle, os-integration | engine-health-lifecycle, performance-liveness | medium | conditional | unit | 3 | 6 | 0 | Platform focus-tracker parsing/helpers. These files are cfg-gated and only execute on their target OS. The separately invoked harness=false tests/native_multi_monitor.rs acceptance is documented in scripts/native-test-fixtures/macos/README.md and is not counted as an automatic Rust test block. |
| engine-linux-keep-awake | screenpipe-engine | linux | engine-lifecycle | engine-health-lifecycle | high | conditional | mixed | 1 | 2 | 8 | Existing isolated-process missing/stalled bus regressions plus ignored live logind inhibitor tests. Live tests require logind and explicit execution. |
@@ -150,7 +150,7 @@ bun run coverage:core -- --llvm-cov-summary ../../docs/coverage/core-llvm-cov-su
| engine-workflows | screenpipe-engine | windows, macos, linux | local-api, storage | local-api-search | high | partial | mixed | 7 | 40 | 0 | Catalog identity and persistence, revision-scoped feedback, workflow evidence and pipeline contracts, and denial of agent-granted rollout access. Does not assert live cloud discovery quality. Workflow publication orchestration deadlines and nested query backpressure are covered with virtual-time router tests. |
| filesystem-durable-sync | screenpipe-fs | macos, linux, windows | database, vision-capture, audio | capture-ocr-pipeline, audio-record-transcribe, engine-health-lifecycle | high | strong | unit | 1 | 3 | 0 | Durable flushes preserve local full-sync behavior, fall back to fsync only for macOS ENOTSUP, and propagate real I/O or fallback failures. Real SMB migration and continued recording are covered by the marked-volume integration test. |
| screen-capture-ocr-contract | screenpipe-screen | windows, macos, linux | vision-capture, ocr | capture-ocr-pipeline | high | partial | unit | 3 | 18 | 0 | Cross-platform cached-OCR unit coverage for RawCaptureResult to CaptureResult metadata, browser URL, focus state, window-to-screen OCR coordinate transformation, Tesseract output parsing, and contour-based text-region detection for the meeting OCR gate. |
-| screen-capture-windowing | screenpipe-screen | windows, macos, linux | vision-capture, timeline, performance, privacy | capture-ocr-pipeline, timeline-streaming, privacy-and-redaction, performance-liveness | high | strong | mixed | 17 | 208 | 1 | Window filtering, empty-window regressions, retry policy, URL timing, monitor cache, OCR cache, snapshots, and image comparison. |
+| screen-capture-windowing | screenpipe-screen | windows, macos, linux | vision-capture, timeline, performance, privacy | capture-ocr-pipeline, timeline-streaming, privacy-and-redaction, performance-liveness | high | strong | mixed | 18 | 211 | 1 | Window filtering, empty-window regressions, retry policy, URL timing, monitor cache, OCR cache, snapshots, and image comparison. |
| screen-custom-ocr | screenpipe-screen | windows, macos, linux | ocr | capture-ocr-pipeline | medium | conditional | manual | 1 | 0 | 2 | Custom OCR tests are ignored by default and only contribute when explicitly run. |
| screen-macos-ocr | screenpipe-screen | macos | ocr, vision-capture | capture-ocr-pipeline | high | strong | mixed | 2 | 9 | 1 | Apple Vision OCR source/unit coverage and fixture OCR assertions. |
| screen-monitor-platform | screenpipe-screen | windows, macos, linux | vision-capture | capture-ocr-pipeline | medium | partial | unit | 5 | 42 | 5 | Per-OS monitor enumeration (Windows, macOS, Wayland/portal on Linux) and the persistent Windows.Graphics.Capture session. Each file is cfg-gated and only executes on its target OS. |
@@ -496,7 +496,7 @@ bun run coverage:core -- --llvm-cov-summary ../../docs/coverage/core-llvm-cov-su
| engine-api-routes | screenpipe-engine | src/search_only.rs | source | 2 | 0 | 2 |
| engine-capture-timeline | screenpipe-engine | src/semantic_worker.rs | source | 12 | 0 | 12 |
| engine-api-routes | screenpipe-engine | src/server.rs | source | 13 | 0 | 13 |
-| engine-config-lifecycle | screenpipe-engine | src/sleep_monitor.rs | source | 11 | 1 | 12 |
+| engine-config-lifecycle | screenpipe-engine | src/sleep_monitor.rs | source | 12 | 1 | 13 |
| engine-capture-timeline | screenpipe-engine | src/snapshot_compaction.rs | source | 21 | 0 | 21 |
| engine-meeting-privacy-sync | screenpipe-engine | src/structured_outputs.rs | source | 8 | 0 | 8 |
| engine-meeting-privacy-sync | screenpipe-engine | src/sync_api.rs | source | 13 | 0 | 13 |
@@ -549,6 +549,7 @@ bun run coverage:core -- --llvm-cov-summary ../../docs/coverage/core-llvm-cov-su
| screen-capture-windowing | screenpipe-screen | src/ocr_cache.rs | source | 15 | 0 | 15 |
| screen-windows-ocr | screenpipe-screen | src/ocr_worker.rs | source | 3 | 0 | 3 |
| screen-capture-windowing | screenpipe-screen | src/screenshot_privacy.rs | source | 4 | 0 | 4 |
+| screen-capture-windowing | screenpipe-screen | src/screenshot_privacy/macos.rs | source | 3 | 0 | 3 |
| screen-capture-windowing | screenpipe-screen | src/screenshot_privacy/scene.rs | source | 6 | 0 | 6 |
| screen-capture-windowing | screenpipe-screen | src/screenshot_privacy/windows.rs | source | 5 | 1 | 6 |
| screen-capture-windowing | screenpipe-screen | src/snapshot_writer.rs | source | 5 | 0 | 5 |
diff --git a/docs/coverage/core-engine-map.json b/docs/coverage/core-engine-map.json
index 92b63c404..78173b128 100644
--- a/docs/coverage/core-engine-map.json
+++ b/docs/coverage/core-engine-map.json
@@ -1161,6 +1161,7 @@
"src/snapshot_writer.rs",
"src/screenshot_privacy.rs",
"src/screenshot_privacy/scene.rs",
+ "src/screenshot_privacy/macos.rs",
"src/screenshot_privacy/windows.rs",
"src/utils.rs",
"tests/capture_error_test.rs",