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(permissions): re-show recovery modal when permissions stay denied
Louis Beaumont2664d62256ab
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/permissions.rs b/apps/screenpipe-app-tauri/src-tauri/src/permissions.rsindex a1d344509..0d0d56000 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/permissions.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/permissions.rs@@ -1002,10 +1002,10 @@ pub async fn start_permission_monitor(app: tauri::AppHandle) {}// Only trigger when we have REQUIRED_CONSECUTIVE_FAILURES in a row- let screen_confirmed_lost = screen_fail_count == REQUIRED_CONSECUTIVE_FAILURES;- let mic_confirmed_lost = mic_fail_count == REQUIRED_CONSECUTIVE_FAILURES;+ let screen_confirmed_lost = screen_fail_count >= REQUIRED_CONSECUTIVE_FAILURES;+ let mic_confirmed_lost = mic_fail_count >= REQUIRED_CONSECUTIVE_FAILURES;let accessibility_confirmed_lost =- accessibility_fail_count == REQUIRED_CONSECUTIVE_FAILURES;+ accessibility_fail_count >= REQUIRED_CONSECUTIVE_FAILURES;// Browser automation is tracked but NOT used to trigger the recovery modal —// it's optional and shouldn't block the user (#2510).let _ = browser_fail_count; // keep tracking for payload, suppress unused warning