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: faster power state UI updates and correct default mode
Louis Beaumont0b32cc9a9282
diff --git a/apps/screenpipe-app-tauri/components/settings/battery-saver-section.tsx b/apps/screenpipe-app-tauri/components/settings/battery-saver-section.tsxindex 50b3a4b8e..46cb8f353 100644--- a/apps/screenpipe-app-tauri/components/settings/battery-saver-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/battery-saver-section.tsx@@ -64,7 +64,7 @@ export function BatterySaverSection() {useEffect(() => {fetchStatus();- const interval = setInterval(fetchStatus, 10000);+ const interval = setInterval(fetchStatus, 5000);return () => clearInterval(interval);}, [fetchStatus]);diff --git a/crates/screenpipe-server/src/power/manager.rs b/crates/screenpipe-server/src/power/manager.rsindex 9167d8627..a795c1243 100644--- a/crates/screenpipe-server/src/power/manager.rs+++ b/crates/screenpipe-server/src/power/manager.rs@@ -84,7 +84,7 @@ pub fn start_power_manager() -> Arc<PowerManagerHandle> {let initial_profile = PowerProfile::performance(); // assume AC until first polllet (profile_tx, profile_rx) = watch::channel(initial_profile);let state = Arc::new(RwLock::new(PowerState::default()));- let user_pref = Arc::new(RwLock::new(PowerMode::Auto));+ let user_pref = Arc::new(RwLock::new(PowerMode::default()));let handle = Arc::new(PowerManagerHandle {profile_tx,diff --git a/crates/screenpipe-server/src/power/monitor.rs b/crates/screenpipe-server/src/power/monitor.rsindex d1f8e8266..b6897b135 100644--- a/crates/screenpipe-server/src/power/monitor.rs+++ b/crates/screenpipe-server/src/power/monitor.rs@@ -88,7 +88,7 @@ pub async fn poll_power_state() -> PowerState {}/// Poll interval for the power monitor.-pub const POLL_INTERVAL: Duration = Duration::from_secs(30);+pub const POLL_INTERVAL: Duration = Duration::from_secs(10);// ─── macOS ──────────────────────────────────────────────────────────────────