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

feat: add restart notifications toggle in settings, fix CI type error, bump app to v2.2.160

Louis Beaumontf8b2e4250402
diff --git a/apps/screenpipe-app-tauri/components/settings/general-settings.tsx b/apps/screenpipe-app-tauri/components/settings/general-settings.tsx
index 3f00e9f70..a49f31262 100644
--- a/apps/screenpipe-app-tauri/components/settings/general-settings.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/general-settings.tsx
@@ -240,6 +240,28 @@ export default function GeneralSettings() {
</div>
</CardContent>
</Card>
+
+ {/* restart notifications */}
+ <Card>
+ <CardContent className="p-4">
+ <div className="flex items-center justify-between">
+ <div className="space-y-1">
+ <Label className="text-sm font-medium">
+ restart notifications
+ </Label>
+ <p className="text-xs text-muted-foreground">
+ show a notification when audio or screen capture stalls
+ </p>
+ </div>
+ <Switch
+ checked={settings?.showRestartNotifications !== false}
+ onCheckedChange={(checked) =>
+ handleSettingsChange({ showRestartNotifications: checked })
+ }
+ />
+ </div>
+ </CardContent>
+ </Card>
</div>
</div>
diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
index 93b7606e9..d3064d79e 100644
--- a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
+++ b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
@@ -139,6 +139,8 @@ export type Settings = SettingsStore & {
pipeSuggestionFrequencyHours?: number;
/** User's power mode preference — persisted so it survives app restarts */
powerMode?: "auto" | "performance" | "battery_saver";
+ /** Show restart notifications when audio/vision capture stalls (default: true) */
+ showRestartNotifications?: boolean;
}
export function getEffectiveFilters(settings: Settings) {
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index 6db311ed6..154757cb9 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -9203,7 +9203,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.2.158"
+version = "2.2.159"
dependencies = [
"anyhow",
"arboard",
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index 3ab7e04c3..625cdcab3 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "2.2.159"
+version = "2.2.160"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/health.rs b/apps/screenpipe-app-tauri/src-tauri/src/health.rs
index 1495fa958..280fbbe54 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/health.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/health.rs
@@ -541,10 +541,15 @@ pub async fn start_health_check(app: tauri::AppHandle) -> Result<()> {
wake_reset_done = false;
}
- // Show notification if threshold hit and cooldown expired
+ // Show notification if threshold hit, cooldown expired, and not disabled
+ let notifications_enabled = crate::store::SettingsStore::get(&app)
+ .ok()
+ .flatten()
+ .map(|s| s.show_restart_notifications)
+ .unwrap_or(true);
let now_instant = Instant::now();
- if consecutive_audio_stall == CAPTURE_STALL_THRESHOLD {
+ if consecutive_audio_stall == CAPTURE_STALL_THRESHOLD && notifications_enabled {
let cooldown_ok = last_audio_notification
.map(|t| now_instant.duration_since(t) >= NOTIFICATION_COOLDOWN)
.unwrap_or(true);
@@ -559,7 +564,7 @@ pub async fn start_health_check(app: tauri::AppHandle) -> Result<()> {
}
}
- if consecutive_vision_stall == CAPTURE_STALL_THRESHOLD {
+ if consecutive_vision_stall == CAPTURE_STALL_THRESHOLD && notifications_enabled {
let cooldown_ok = last_vision_notification
.map(|t| now_instant.duration_since(t) >= NOTIFICATION_COOLDOWN)
.unwrap_or(true);
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/store.rs b/apps/screenpipe-app-tauri/src-tauri/src/store.rs
index 37f0a8826..36c4980f8 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/store.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/store.rs
@@ -243,6 +243,11 @@ pub struct SettingsStore {
#[serde(rename = "ignoreIncognitoWindows", default = "default_true")]
pub ignore_incognito_windows: bool,
+ /// Show restart notifications when audio/vision capture stalls.
+ /// Disable to suppress all capture-stall notification popups.
+ #[serde(rename = "showRestartNotifications", default = "default_true")]
+ pub show_restart_notifications: bool,
+
/// Catch-all for fields added by the frontend (e.g. chatHistory, deviceId)
/// that the Rust struct doesn't know about. Without this, `save()` would
/// serialize only known fields and silently wipe frontend-only data.
@@ -585,6 +590,7 @@ impl Default for SettingsStore {
video_quality: "balanced".to_string(),
chat_always_on_top: true,
ignore_incognito_windows: true,
+ show_restart_notifications: true,
extra: std::collections::HashMap::new(),
}
}