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
chore: remove dead code, gate non-macOS focus helpers, drop unused warn import
Louis Beaumont7fb0be5ca111
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/commands.rs b/apps/screenpipe-app-tauri/src-tauri/src/commands.rsindex 80edac135..e20aaf49f 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/commands.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/commands.rs@@ -2158,13 +2158,16 @@ pub(crate) fn unregister_window_shortcuts_if_generation_unchanged(/// True if any Tauri webview in this process currently holds keyboard focus./// Used on Windows/Linux to tell "focus left Main for another app" from-/// "focus moved to Home while overlay stays visible".+/// "focus moved to Home while overlay stays visible". macOS uses NSPanel+/// ordering instead and doesn't need this.+#[cfg(not(target_os = "macos"))]pub(crate) fn any_screenpipe_webview_has_focus(app: &tauri::AppHandle) -> bool {app.webview_windows().values().any(|w| w.is_focused().unwrap_or(false))}+#[cfg(not(target_os = "macos"))]pub(crate) fn main_overlay_is_visible(app: &tauri::AppHandle) -> bool {for label in [RewindWindowId::Main.label(), "main-window"] {if let Some(w) = app.get_webview_window(label) {@@ -2179,6 +2182,7 @@ pub(crate) fn main_overlay_is_visible(app: &tauri::AppHandle) -> bool {/// Re-register Escape when a non-Main window (e.g. Home) gains focus while the/// overlay is still shown — otherwise Main's blur path unregisters Escape and/// Esc stops working until Main is focused again.+#[cfg(not(target_os = "macos"))]pub(crate) fn register_window_shortcuts_if_main_visible(app: tauri::AppHandle) {if is_main_close_in_progress() {info!("shortcut-sync: skip register_if_visible (reason=main_close_in_progress)");diff --git a/apps/screenpipe-app-tauri/src-tauri/src/secrets.rs b/apps/screenpipe-app-tauri/src-tauri/src/secrets.rsindex 95820463c..eb7e76998 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/secrets.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/secrets.rs@@ -25,10 +25,3 @@ pub fn get_key_if_encryption_enabled() -> KeyResult {get_key()}-/// Create-if-missing keychain key, gated on opt-in.-pub fn get_or_create_key_if_encryption_enabled() -> Option<[u8; 32]> {- if !is_encryption_enabled() {- return None;- }- get_or_create_key()-}diff --git a/crates/screenpipe-engine/src/server.rs b/crates/screenpipe-engine/src/server.rsindex 40f40603b..b9f20ea07 100644--- a/crates/screenpipe-engine/src/server.rs+++ b/crates/screenpipe-engine/src/server.rs@@ -10,7 +10,7 @@ use screenpipe_db::DatabaseManager;use screenpipe_audio::audio_manager::AudioManager;use screenpipe_core::sync::SyncServiceHandle;-use tracing::{debug, error, info, warn};+use tracing::{debug, error, info};use crate::{analytics,