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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(enterprise): make current_sync_streams available in enterprise builds
Louis Beaumontff5c958aa973
diff --git a/ee/desktop-rust/enterprise_policy.rs b/ee/desktop-rust/enterprise_policy.rsindex 2e4776b2e..57ba6c50b 100644--- a/ee/desktop-rust/enterprise_policy.rs+++ b/ee/desktop-rust/enterprise_policy.rs@@ -194,7 +194,12 @@ pub fn set_sync_streams(/// machine on every tick. Returns the defaults (all-true) if the lock is/// poisoned — fail-open here mirrors the centralized-data master-switch/// behavior: the ingest endpoint will still enforce policy server-side.-#[cfg(test)]+//+// Available under `enterprise-build` (the sync state machine in+// enterprise_sync::run_one_sync reads it on every tick) and under `test`.+// Consumer builds never reach the sync path, so it stays gated out there to+// avoid an unused-function warning.+#[cfg(any(test, feature = "enterprise-build"))]pub fn current_sync_streams() -> SyncStreams {SYNC_STREAMS.read().map(|guard| *guard).unwrap_or_default()}