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
release-app reenable setting to restart at interval
Louis Beaumont059e1cee102b
diff --git a/screenpipe-app-tauri/components/recording-settings.tsx b/screenpipe-app-tauri/components/recording-settings.tsxindex ce8840dbe..72d6421c9 100644--- a/screenpipe-app-tauri/components/recording-settings.tsx+++ b/screenpipe-app-tauri/components/recording-settings.tsx@@ -1372,6 +1372,49 @@ export function RecordingSettings() {<div className="space-y-8 py-4"><div className="space-y-6">+ <div className="flex flex-col space-y-2">+ <Label+ htmlFor="restartInterval"+ className="flex items-center space-x-2"+ >+ <span>auto restart interval (minutes)</span>+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger>+ <HelpCircle className="h-4 w-4 cursor-default" />+ </TooltipTrigger>+ <TooltipContent side="right">+ <p>+ automatically restart screenpipe after the specified+ interval.+ <br />+ 0 means no automatic restart.+ <br />+ useful if you face memory issues and ensure stable+ recording.+ </p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </Label>+ <div className="flex items-center space-x-4">+ <Slider+ id="restartInterval"+ min={0}+ max={1440}+ step={30}+ value={[settings.restartInterval || 0]}+ onValueChange={(value) =>+ handleSettingsChange({ restartInterval: value[0] })+ }+ className="flex-grow"+ />+ <span className="w-16 text-right">+ {settings.restartInterval || 0} min+ </span>+ </div>+ </div>+<div className="flex items-center justify-between"><div className="space-y-1"><h4 className="font-medium">diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lockindex c2c0f9acf..1e227b078 100755--- a/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -5289,7 +5289,7 @@ dependencies = [[[package]]name = "screenpipe-app"-version = "0.32.13"+version = "0.32.14"dependencies = ["anyhow","async-stream",diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 96b6378fa..a7a0cee33 100644--- a/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "0.32.13"+version = "0.32.14"description = ""authors = ["you"]license = ""diff --git a/screenpipe-app-tauri/src-tauri/src/sidecar.rs b/screenpipe-app-tauri/src-tauri/src/sidecar.rsindex 435727fcf..c4b1da461 100644--- a/screenpipe-app-tauri/src-tauri/src/sidecar.rs+++ b/screenpipe-app-tauri/src-tauri/src/sidecar.rs@@ -590,6 +590,8 @@ impl SidecarManager {if let Some(child) = self.child.take() {let _ = child.kill();}+ // sleep for 5 seconds+ sleep(Duration::from_secs(5)).await;let child = spawn_sidecar(app)?;self.child = Some(child);self.last_restart = Instant::now();