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(timeline): drop from sidebar + suppress shortcut overlay when disabled
Louis Beaumontfd564bb42855
diff --git a/apps/screenpipe-app-tauri/app/home/page.tsx b/apps/screenpipe-app-tauri/app/home/page.tsxindex 3885f75a8..aff8f90f8 100644--- a/apps/screenpipe-app-tauri/app/home/page.tsx+++ b/apps/screenpipe-app-tauri/app/home/page.tsx@@ -166,6 +166,14 @@ function HomeContent() {setActiveSection(fallback ?? "home");}, [activeSection, isSectionHidden, setActiveSection]);+ // Timeline can be turned off in Display settings. When it is, the nav item is+ // gone, so bounce out of the (now unreachable) timeline section to chat.+ useEffect(() => {+ if ((settings.disableTimeline ?? false) && activeSection === "timeline") {+ setActiveSection("home");+ }+ }, [settings.disableTimeline, activeSection, setActiveSection]);+// Mount the Pi event router once, app-wide. Listens for `pi_event` /// `pi_session_evicted` outside any chat-component lifecycle and mirrors// per-session liveness into the chat store. This is what lets the chat@@ -764,6 +772,10 @@ function HomeContent() {// means the case branch falls through to the always-mounted chat.return null;case "timeline":+ // Timeline can be disabled in Display settings; when it is, fall through+ // to chat (the redirect effect also resets activeSection to "home"). This+ // avoids a flash of the disabled placeholder on reload.+ if (settings.disableTimeline) return null;return <Timeline embedded />;case "memories":return <MemoriesSection />;@@ -820,7 +832,11 @@ function HomeContent() {{ id: "meetings", label: "Meeting notes", icon: <NotebookPen className="h-3.5 w-3.5" /> },{ id: "memories", label: "Memories", icon: <Sparkles className="h-3.5 w-3.5" /> },{ id: "connections", label: "Connections", icon: <Plug className="h-3.5 w-3.5" /> },- ].filter((s) => !isSectionHidden(s.id));+ ]+ .filter((s) => !isSectionHidden(s.id))+ // Timeline can be turned off in Display settings — when it is, drop it from+ // the sidebar entirely (the "Timeline Disabled" placeholder was poor UX).+ .filter((s) => !(s.id === "timeline" && (settings.disableTimeline ?? false)));// Listen for navigation events from other windows (e.g. tray, Rust-side links)useEffect(() => {diff --git a/apps/screenpipe-app-tauri/components/settings/display-section.tsx b/apps/screenpipe-app-tauri/components/settings/display-section.tsxindex 4b139256e..76ee28f72 100644--- a/apps/screenpipe-app-tauri/components/settings/display-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/display-section.tsx@@ -111,7 +111,22 @@ export function DisplaySection() {id="disableTimeline"checked={settings?.disableTimeline ?? false}onCheckedChange={async (checked) => {- handleSettingsChange({ disableTimeline: checked });+ // Persist first (awaited) so the backend reads the new value on+ // restart and the shortcut-reminder guard sees it immediately.+ await updateSettings({ disableTimeline: checked });+ // The screenpipe shortcut only opens the timeline, so its+ // reminder overlay is meaningless once the timeline is off —+ // tear it down on disable, restore it on re-enable.+ try {+ if (checked) {+ await commands.hideShortcutReminder();+ } else if (settings?.showShortcutOverlay) {+ await commands.showShortcutReminder(settings.showScreenpipeShortcut);+ }+ } catch {}+ // disableTimeline gates timeline-only backend work (hot-cache+ // warm-up + frame/audio buffering) wired at server startup, so+ // it needs a full screenpipe restart to take effect.try {await commands.stopScreenpipe();await new Promise((r) => setTimeout(r, 500));@@ -283,6 +298,10 @@ export function DisplaySection() {</Card>)}+ {/* Shortcut reminder advertises the screenpipe shortcut, which only+ opens the timeline — hide the whole section when the timeline is off. */}+ {!(settings?.disableTimeline ?? false) && (+ <><Card className="border-border bg-card"><CardContent className="px-3 py-2.5"><div className="flex items-center justify-between">@@ -357,6 +376,8 @@ export function DisplaySection() {</CardContent></Card>)}+ </>+ )}</div></div>diff --git a/apps/screenpipe-app-tauri/src-tauri/src/commands.rs b/apps/screenpipe-app-tauri/src-tauri/src/commands.rsindex 9bdc77c91..8d2a6ed38 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/commands.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/commands.rs@@ -2123,6 +2123,19 @@ pub async fn show_shortcut_reminder(info!("show_shortcut_reminder called");+ // The screenpipe shortcut only opens the timeline/rewind overlay, so the+ // reminder is pointless when the timeline is disabled. Suppress it here so+ // every caller (startup, settings toggles, shortcut edits) is covered.+ let timeline_disabled = crate::store::SettingsStore::get(&app_handle)+ .unwrap_or_default()+ .unwrap_or_default()+ .recording+ .disable_timeline;+ if timeline_disabled {+ info!("timeline disabled: skipping shortcut reminder overlay");+ return Ok(());+ }+let shortcut_overlay_size = crate::store::SettingsStore::get(&app_handle).unwrap_or_default().unwrap_or_default()diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rsindex 456ef350d..3ef499100 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs@@ -1287,8 +1287,14 @@ async fn main() {// auto-stops it after 5 minutes of inactivity to avoid stale processes.// Show shortcut reminder overlay on app startup if enabled AND onboarding is completed- // Don't show reminder during first-time onboarding to reduce overwhelm- if store.show_shortcut_overlay && onboarding_store.is_completed && !app_ui_hidden {+ // Don't show reminder during first-time onboarding to reduce overwhelm.+ // Skip entirely when the timeline is disabled — the shortcut it+ // advertises only opens the (now-off) timeline overlay.+ if store.show_shortcut_overlay+ && onboarding_store.is_completed+ && !app_ui_hidden+ && !store.recording.disable_timeline+ {let shortcut = store.show_screenpipe_shortcut.clone();let app_handle_reminder = app.handle().clone();tauri::async_runtime::spawn(async move {