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

fix(settings): move "disable timeline" toggle to Display settings

Louis Beaumont62de9b154443
diff --git a/apps/screenpipe-app-tauri/components/settings/display-section.tsx b/apps/screenpipe-app-tauri/components/settings/display-section.tsx
index 3c5cf49c4..4b139256e 100644
--- a/apps/screenpipe-app-tauri/components/settings/display-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/display-section.tsx
@@ -9,7 +9,7 @@ import { commands } from "@/lib/utils/tauri";
import { useTheme } from "@/components/theme-provider";
import { Switch } from "@/components/ui/switch";
import { Card, CardContent } from "@/components/ui/card";
-import { Moon, Sun, Monitor, Layers, MessageSquare, PanelLeft, Maximize2 } from "lucide-react";
+import { Moon, Sun, Monitor, Layers, MessageSquare, PanelLeft, Maximize2, EyeOff } from "lucide-react";
import { usePlatform } from "@/lib/hooks/use-platform";
import { HelpTooltip } from "@/components/ui/help-tooltip";
import { useToast } from "@/components/ui/use-toast";
@@ -89,6 +89,50 @@ export function DisplaySection() {
</CardContent>
</Card>
+ {/* Disable Timeline / rewind. Gates timeline-only backend work
+ (hot-cache warm-up + frame/audio buffering) and the native macOS
+ Live Text overlay. Lives in Display next to Timeline Mode, but
+ unlike the other display toggles it needs a full screenpipe restart
+ to take effect, so the handler restarts the server inline. */}
+ <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">
+ <EyeOff 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">
+ Disable Timeline
+ <HelpTooltip text="Turn off the timeline / rewind feature. Skips the in-memory hot frame cache (warm-up + per-frame/audio buffering) that only the timeline uses, and disables the native macOS Live Text overlay that can otherwise leak a selection layer over other windows (e.g. the chat input) and block typing. Restarts screenpipe to apply." />
+ </h3>
+ <p className="text-xs text-muted-foreground">Hide rewind and skip its background work</p>
+ </div>
+ </div>
+ <Switch
+ id="disableTimeline"
+ checked={settings?.disableTimeline ?? false}
+ onCheckedChange={async (checked) => {
+ handleSettingsChange({ disableTimeline: checked });
+ try {
+ await commands.stopScreenpipe();
+ await new Promise((r) => setTimeout(r, 500));
+ await commands.spawnScreenpipe(null);
+ toast({
+ title: checked ? "timeline disabled" : "timeline enabled",
+ description: "screenpipe restarted to apply the change.",
+ });
+ } catch (e) {
+ toast({
+ title: "failed to restart screenpipe",
+ description: "restart screenpipe manually to apply the change.",
+ variant: "destructive",
+ });
+ }
+ }}
+ />
+ </div>
+ </CardContent>
+ </Card>
+
<Card className="border-border bg-card">
<CardContent className="px-3 py-2.5">
<div className="space-y-2.5">
diff --git a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx
index 8fc2bffae..fc43e8c66 100644
--- a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx
@@ -230,9 +230,6 @@ const SERVER_RESTART_SETTINGS = new Set<keyof SettingsStore>([
"piiBackend",
"useChineseMirror",
"enableWorkflowEvents",
- // Timeline gating (hot-cache warm-up + frame/audio buffering) is wired at
- // server startup, so it needs a full server restart, not just capture.
- "disableTimeline",
]);
type AudioPipelineSnapshot = {
@@ -3427,28 +3424,6 @@ Your screen is a pipe. Everything you see, hear, and type flows through it. Scre
</CardContent>
</Card>
- {/* Disable Timeline / rewind. Gates timeline-only backend work
- (hot-cache warm-up + frame/audio buffering) and the native macOS
- Live Text overlay. Uses handleSettingsChange(..., true) so it joins
- the "Apply & Restart" flow like the other recording toggles. */}
- <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">
- <EyeOff 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">
- Disable timeline
- <HelpTooltip text="Turn off the timeline / rewind feature. Skips the in-memory hot frame cache (warm-up + per-frame/audio buffering) that only the timeline uses, and disables the native macOS Live Text overlay that can otherwise leak a selection layer over other windows (e.g. the chat input) and block typing." />
- </h3>
- <p className="text-xs text-muted-foreground">Hide rewind and skip its background work</p>
- </div>
- </div>
- <ManagedSwitch settingKey="disableTimeline" id="disableTimeline" checked={settings.disableTimeline ?? false} onCheckedChange={(checked) => handleSettingsChange({ disableTimeline: checked }, true)} />
- </div>
- </CardContent>
- </Card>
-
{/* Use All Monitors - right below disable screen recording */}
{!settings.disableVision && (
<Card className="border-border bg-card">