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: restore settings descriptions, optimize memories loading

Louis Beaumont947e63d59de5
diff --git a/apps/screenpipe-app-tauri/components/settings/ai-presets.tsx b/apps/screenpipe-app-tauri/components/settings/ai-presets.tsx
index c70142f92..0f3006613 100644
--- a/apps/screenpipe-app-tauri/components/settings/ai-presets.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/ai-presets.tsx
@@ -1643,6 +1643,10 @@ export const AIPresets = () => {
if (!settings.aiPresets?.length) {
return (
<div className="space-y-5">
+ <p className="text-muted-foreground text-sm mb-4">
+ Configure AI models and preferences
+ </p>
+
<div className="w-full h-[400px] flex flex-col items-center justify-center space-y-4">
<Settings2 className="w-12 h-12 text-muted-foreground" />
<h2 className="text-xl font-medium text-muted-foreground">
@@ -1663,6 +1667,10 @@ export const AIPresets = () => {
return (
<div className="space-y-5">
+ <p className="text-muted-foreground text-sm mb-4">
+ Configure AI models and preferences
+ </p>
+
<div className="flex items-center justify-between">
<div className="flex items-center gap-4">
<Badge variant="outline" className="px-3 py-1">
diff --git a/apps/screenpipe-app-tauri/components/settings/archive-settings.tsx b/apps/screenpipe-app-tauri/components/settings/archive-settings.tsx
index 8a612a591..1a2cd49db 100644
--- a/apps/screenpipe-app-tauri/components/settings/archive-settings.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/archive-settings.tsx
@@ -221,6 +221,15 @@ export function ArchiveSettings() {
if (!isProUser) {
return (
<div className="space-y-6">
+ <p className="text-muted-foreground text-sm mb-4">
+ Encrypt and archive old data to the cloud to free disk space.{" "}
+ <button
+ onClick={() => openUrl("https://docs.screenpi.pe/cloud-archive")}
+ className="underline underline-offset-2 hover:text-foreground transition-colors"
+ >
+ Learn more
+ </button>
+ </p>
<div className="flex items-center gap-2">
<Badge variant="secondary" className="text-[10px]">
pro
diff --git a/apps/screenpipe-app-tauri/components/settings/billing-section.tsx b/apps/screenpipe-app-tauri/components/settings/billing-section.tsx
index 0062da58c..910b81646 100644
--- a/apps/screenpipe-app-tauri/components/settings/billing-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/billing-section.tsx
@@ -156,6 +156,9 @@ export function BillingSection() {
if (!token) {
return (
<div className="space-y-6">
+ <p className="text-muted-foreground text-sm mb-4">
+ Sign in to view your usage and billing
+ </p>
<Card className="p-8 flex flex-col items-center text-center">
<Zap className="h-10 w-10 text-muted-foreground mb-4" />
<h3 className="text-lg font-semibold mb-1">Sign in required</h3>
@@ -214,6 +217,10 @@ export function BillingSection() {
return (
<div className="space-y-6">
+ <p className="text-muted-foreground text-sm mb-4">
+ Your AI usage and payment settings
+ </p>
+
{/* Tier display */}
<Card className="p-4">
<div className="flex items-center justify-between">
diff --git a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx b/apps/screenpipe-app-tauri/components/settings/connections-section.tsx
index 0a07e7c97..678d205b3 100644
--- a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/connections-section.tsx
@@ -1086,6 +1086,8 @@ export function ConnectionsSection() {
return (
<div className="space-y-5">
+ <p className="text-muted-foreground text-sm mb-4">Give AI access to your memory, and connect to the apps you use every day</p>
+
{/* Search */}
<div className="relative">
<Search className="absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground" />
diff --git a/apps/screenpipe-app-tauri/components/settings/disk-usage-section.tsx b/apps/screenpipe-app-tauri/components/settings/disk-usage-section.tsx
index 654398f0a..767525cb3 100644
--- a/apps/screenpipe-app-tauri/components/settings/disk-usage-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/disk-usage-section.tsx
@@ -24,6 +24,9 @@ export function DiskUsageSection() {
if (error) {
return (
<div className="space-y-6">
+ <p className="text-muted-foreground text-sm mb-4">
+ Monitor storage usage for your Screenpipe data
+ </p>
<Card>
<CardContent className="pt-6">
<div className="text-center text-destructive">
@@ -41,6 +44,10 @@ export function DiskUsageSection() {
return (
<div className="space-y-5">
+ <p className="text-muted-foreground text-sm mb-4">
+ Storage usage at ~/.screenpipe
+ </p>
+
<div className="flex items-center justify-end">
<Button
onClick={handleRefresh}
diff --git a/apps/screenpipe-app-tauri/components/settings/display-section.tsx b/apps/screenpipe-app-tauri/components/settings/display-section.tsx
index b1f3d3906..e71823f8e 100644
--- a/apps/screenpipe-app-tauri/components/settings/display-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/display-section.tsx
@@ -43,6 +43,10 @@ export function DisplaySection() {
return (
<div className="space-y-5">
+ <p className="text-muted-foreground text-sm mb-4">
+ Theme, windows, and overlay appearance
+ </p>
+
<div className="space-y-2">
<Card className="border-border bg-card">
<CardContent className="px-3 py-2.5">
diff --git a/apps/screenpipe-app-tauri/components/settings/feedback-section.tsx b/apps/screenpipe-app-tauri/components/settings/feedback-section.tsx
index c58b63fd8..614b7eeee 100644
--- a/apps/screenpipe-app-tauri/components/settings/feedback-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/feedback-section.tsx
@@ -17,6 +17,10 @@ export function FeedbackSection() {
return (
<div className="space-y-5">
+ <p className="text-muted-foreground text-sm mb-4">
+ Get support, send logs, or suggest features
+ </p>
+
<div className="space-y-2">
<div className="px-3 py-2.5 bg-card border border-border">
<div className="flex items-center gap-2.5 mb-2.5">
diff --git a/apps/screenpipe-app-tauri/components/settings/general-settings.tsx b/apps/screenpipe-app-tauri/components/settings/general-settings.tsx
index b7bf6a6e9..3f00e9f70 100644
--- a/apps/screenpipe-app-tauri/components/settings/general-settings.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/general-settings.tsx
@@ -84,6 +84,10 @@ export default function GeneralSettings() {
return (
<div className="space-y-5">
+ <p className="text-muted-foreground text-sm mb-4">
+ Startup, updates, and notifications
+ </p>
+
<div className="flex items-center justify-end">
<UpdateBanner compact />
</div>
diff --git a/apps/screenpipe-app-tauri/components/settings/memories-section.tsx b/apps/screenpipe-app-tauri/components/settings/memories-section.tsx
index b2a56d300..3e50b4f5b 100644
--- a/apps/screenpipe-app-tauri/components/settings/memories-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/memories-section.tsx
@@ -4,6 +4,7 @@
"use client";
import React, { useState, useEffect, useCallback } from "react";
+import { apiCache } from "@/lib/cache";
import { Button } from "@/components/ui/button";
import { Badge } from "@/components/ui/badge";
import { useToast } from "@/components/ui/use-toast";
@@ -55,19 +56,31 @@ export function MemoriesSection() {
const [confirmDeleteId, setConfirmDeleteId] = useState<number | null>(null);
const fetchMemories = useCallback(async () => {
- setLoading(true);
+ const cacheKey = "memories/list";
+ const cached = apiCache.getStale<MemoryListResponse>(cacheKey);
+ if (cached) {
+ setMemories(cached.data);
+ setTotal(cached.pagination.total);
+ if (apiCache.isFresh(cacheKey)) return;
+ } else {
+ setLoading(true);
+ }
+
try {
const res = await fetch("http://localhost:3030/memories?limit=100");
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data: MemoryListResponse = await res.json();
+ apiCache.set(cacheKey, data, 60_000); // 1 min TTL
setMemories(data.data);
setTotal(data.pagination.total);
} catch (err) {
- toast({
- title: "failed to load memories",
- description: String(err),
- variant: "destructive",
- });
+ if (!cached) {
+ toast({
+ title: "failed to load memories",
+ description: String(err),
+ variant: "destructive",
+ });
+ }
} finally {
setLoading(false);
}
@@ -86,6 +99,7 @@ export function MemoriesSection() {
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
toast({ title: "memory deleted" });
+ apiCache.invalidate("memories/list");
await fetchMemories();
} catch (err) {
toast({
@@ -100,6 +114,10 @@ export function MemoriesSection() {
return (
<div className="space-y-4 h-full flex flex-col">
+ <p className="text-muted-foreground text-sm mb-4">
+ facts and preferences the AI has learned from your activity
+ </p>
+
<div className="flex items-center gap-2">
{total > 0 && (
<Badge variant="secondary" className="text-xs">
diff --git a/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx b/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx
index 852c1d3d5..bef013868 100644
--- a/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx
@@ -348,6 +348,10 @@ export function PrivacySection() {
return (
<div className="space-y-5">
+ <p className="text-muted-foreground text-sm mb-4">
+ Content filtering, PII redaction, and telemetry
+ </p>
+
<div className="flex items-center justify-end">
{hasUnsavedChanges && (
<Button
diff --git a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx
index 75296c98e..53a0ca6cb 100644
--- a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx
@@ -1102,6 +1102,10 @@ Your screen is a pipe. Everything you see, hear, and type flows through it. Scre
return (
<div className="space-y-5">
+ <p className="text-muted-foreground text-sm mb-4">
+ Screen and audio recording preferences
+ </p>
+
<div className="flex items-center justify-end">
{hasUnsavedChanges && (
<Button
diff --git a/apps/screenpipe-app-tauri/components/settings/shortcut-section.tsx b/apps/screenpipe-app-tauri/components/settings/shortcut-section.tsx
index 4319d1e32..b9a4b77cc 100644
--- a/apps/screenpipe-app-tauri/components/settings/shortcut-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/shortcut-section.tsx
@@ -14,6 +14,10 @@ const ShortcutSection = () => {
return (
<div className="space-y-5">
+ <p className="text-muted-foreground text-sm mb-4">
+ Keyboard shortcuts and hotkeys
+ </p>
+
<div className="space-y-2">
<ShortcutRow type="global" shortcut="showScreenpipeShortcut" title="toggle screenpipe overlay" description="show/hide the main interface" value={settings.showScreenpipeShortcut} />
<ShortcutRow type="global" shortcut="showChatShortcut" title="toggle ai chat" description="show/hide the ai chat window" value={settings.showChatShortcut} />
diff --git a/apps/screenpipe-app-tauri/components/settings/storage-section.tsx b/apps/screenpipe-app-tauri/components/settings/storage-section.tsx
index 0e15401c7..40b375559 100644
--- a/apps/screenpipe-app-tauri/components/settings/storage-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/storage-section.tsx
@@ -30,6 +30,10 @@ export function StorageSection() {
return (
<div className="space-y-5">
+ <p className="text-muted-foreground text-sm mb-4">
+ Local disk, cloud archive, and sync
+ </p>
+
{/* Tabs */}
<div className="flex items-center gap-4 border-b border-border">
{visibleTabs.map((tab) => (
diff --git a/crates/screenpipe-engine/src/routes/memories.rs b/crates/screenpipe-engine/src/routes/memories.rs
index 4ebbb66d7..feb4764d9 100644
--- a/crates/screenpipe-engine/src/routes/memories.rs
+++ b/crates/screenpipe-engine/src/routes/memories.rs
@@ -143,9 +143,8 @@ pub(crate) async fn list_memories_handler(
State(state): State<Arc<AppState>>,
Query(query): Query<ListMemoriesQuery>,
) -> Result<JsonResponse<MemoryListResponse>, (StatusCode, JsonResponse<Value>)> {
- let memories = state
- .db
- .list_memories(
+ let (memories_result, total_result) = tokio::join!(
+ state.db.list_memories(
query.q.as_deref(),
query.source.as_deref(),
query.tags.as_deref(),
@@ -154,18 +153,8 @@ pub(crate) async fn list_memories_handler(
query.end_time.as_deref(),
query.limit,
query.offset,
- )
- .await
- .map_err(|e| {
- (
- StatusCode::INTERNAL_SERVER_ERROR,
- JsonResponse(json!({"error": e.to_string()})),
- )
- })?;
-
- let total = state
- .db
- .count_memories(
+ ),
+ state.db.count_memories(
query.q.as_deref(),
query.source.as_deref(),
query.tags.as_deref(),
@@ -173,13 +162,21 @@ pub(crate) async fn list_memories_handler(
query.start_time.as_deref(),
query.end_time.as_deref(),
)
- .await
- .map_err(|e| {
- (
- StatusCode::INTERNAL_SERVER_ERROR,
- JsonResponse(json!({"error": e.to_string()})),
- )
- })?;
+ );
+
+ let memories = memories_result.map_err(|e| {
+ (
+ StatusCode::INTERNAL_SERVER_ERROR,
+ JsonResponse(json!({"error": e.to_string()})),
+ )
+ })?;
+
+ let total = total_result.map_err(|e| {
+ (
+ StatusCode::INTERNAL_SERVER_ERROR,
+ JsonResponse(json!({"error": e.to_string()})),
+ )
+ })?;
Ok(JsonResponse(MemoryListResponse {
data: memories.into_iter().map(memory_to_response).collect(),