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: stats cache back to 24h, force cursor pointer via style attr
Louis Beaumontbdbb52b7bc4d
diff --git a/apps/screenpipe-app-tauri/components/chat/summary-cards.tsx b/apps/screenpipe-app-tauri/components/chat/summary-cards.tsxindex 30cc258fe..1f5002fae 100644--- a/apps/screenpipe-app-tauri/components/chat/summary-cards.tsx+++ b/apps/screenpipe-app-tauri/components/chat/summary-cards.tsx@@ -97,9 +97,7 @@ export function SummaryCards({One-click summaries from your screen activity</p>- <div className="mb-3">- <HomeStatsBadge />- </div>+ <HomeStatsBadge />{/* Featured template cards */}<div className="grid grid-cols-3 gap-1.5 w-full max-w-lg mb-2">diff --git a/apps/screenpipe-app-tauri/components/home-stats-badge.tsx b/apps/screenpipe-app-tauri/components/home-stats-badge.tsxindex fa4799a89..5aeed70e3 100644--- a/apps/screenpipe-app-tauri/components/home-stats-badge.tsx+++ b/apps/screenpipe-app-tauri/components/home-stats-badge.tsx@@ -56,7 +56,8 @@ export function HomeStatsBadge() {{/* Badge */}<buttononClick={() => setShowModal(true)}- className="inline-flex items-center gap-2.5 px-3 py-1 rounded-full bg-muted/30 hover:bg-muted/50 border border-border/20 hover:border-border/40 transition-all cursor-pointer text-xs"+ className="inline-flex items-center gap-2.5 px-3 py-1 mb-3 rounded-full bg-muted/30 hover:bg-muted/50 border border-border/20 hover:border-border/40 transition-all text-xs"+ style={{ cursor: "pointer" }}>{stats.all_time.recording_streak > 0 && (<>diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lockindex 263b67bbf..a75e3c237 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -9642,7 +9642,7 @@ dependencies = [[[package]]name = "screenpipe-app"-version = "2.2.298"+version = "2.3.0"dependencies = ["anyhow","arboard",diff --git a/crates/screenpipe-engine/src/stats.rs b/crates/screenpipe-engine/src/stats.rsindex 550701525..6eaa47736 100644--- a/crates/screenpipe-engine/src/stats.rs+++ b/crates/screenpipe-engine/src/stats.rs@@ -12,8 +12,8 @@ use serde::{Deserialize, Serialize};use tokio::sync::RwLock;use tracing::debug;-/// How long the cache is valid (1 hour — today's stats change throughout the day).-const CACHE_TTL_SECS: u64 = 3600;+/// How long the cache is valid (24 hours).+const CACHE_TTL_SECS: u64 = 86400;/// Cached stats with timestamp.static STATS_CACHE: std::sync::LazyLock<RwLock<(u64, Option<UserStats>)>> =