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: standardize retention default to 14 days, remove unused workflow events setting
Louis Beaumont95066bb2f19c
diff --git a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsxindex 16b3ce1cf..b084d9210 100644--- a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx+++ b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx@@ -1888,29 +1888,6 @@ Your screen is a pipe. Everything you see, hear, and type flows through it. Scre</div></LockedSetting>- {/* Workflow event detection (cloud) */}- {settings.user?.cloud_subscribed && (- <Card className="border-border bg-card">- <CardContent className="px-3 py-2.5">- <div className="flex items-center justify-between">- <div className="flex items-center space-x-2.5">- <Zap className="h-4 w-4 text-muted-foreground shrink-0" />- <div>- <h3 className="text-sm font-medium text-foreground flex items-center gap-1.5">- Workflow events- <span className="text-[10px] font-normal text-muted-foreground bg-muted px-1.5 py-0.5 rounded">cloud</span>- </h3>- <p className="text-xs text-muted-foreground">AI detects your workflow patterns and triggers event-based pipes</p>- </div>- </div>- <Switch- checked={settings.enableWorkflowEvents || false}- onCheckedChange={(checked) => handleSettingsChange({ enableWorkflowEvents: checked } as any, true)}- />- </div>- </CardContent>- </Card>- )}{/* System */}<div className="space-y-2 pt-2">diff --git a/apps/screenpipe-app-tauri/components/settings/retention-settings.tsx b/apps/screenpipe-app-tauri/components/settings/retention-settings.tsxindex c8dfcec7d..290cf4e8c 100644--- a/apps/screenpipe-app-tauri/components/settings/retention-settings.tsx+++ b/apps/screenpipe-app-tauri/components/settings/retention-settings.tsx@@ -65,7 +65,7 @@ export function RetentionSettings() {const [showConfirm, setShowConfirm] = useState(false);const enabled = settings.localRetentionEnabled ?? false;- const retentionDays = settings.localRetentionDays ?? 30;+ const retentionDays = settings.localRetentionDays ?? 14;const fetchStatus = useCallback(async () => {try {diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsxindex 3ef90f72e..24d0c00f9 100644--- a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx+++ b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx@@ -163,7 +163,7 @@ export type Settings = SettingsStore & {appendTypedTextToMeetingNotes?: boolean;/** Auto-delete local data older than retention days (free alternative to cloud archive) */localRetentionEnabled?: boolean;- /** Days to keep data locally before auto-deleting (default: 30) */+ /** Days to keep data locally before auto-deleting (default: 14) */localRetentionDays?: number;/** Apply macOS vibrancy effect to sidebar for a translucent glass look */translucentSidebar?: boolean;diff --git a/crates/screenpipe-engine/src/retention.rs b/crates/screenpipe-engine/src/retention.rsindex 01b804c82..a246c71ac 100644--- a/crates/screenpipe-engine/src/retention.rs+++ b/crates/screenpipe-engine/src/retention.rs@@ -201,7 +201,7 @@ pub async fn retention_status(match guard.as_ref() {None => Ok(JsonResponse(RetentionStatusResponse {enabled: false,- retention_days: 30,+ retention_days: 14,last_cleanup: None,last_error: None,total_deleted: 0,