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

Update settings and timeline components

Louis Beaumont0ada9a54ef95
diff --git a/screenpipe-app-tauri/app/settings/page.tsx b/screenpipe-app-tauri/app/settings/page.tsx
index 0493ab467..4ddb7d285 100644
--- a/screenpipe-app-tauri/app/settings/page.tsx
+++ b/screenpipe-app-tauri/app/settings/page.tsx
@@ -9,6 +9,7 @@ import {
User,
Settings as SettingsIcon,
HardDrive,
+ Plug,
} from "lucide-react";
import { cn } from "@/lib/utils";
import { AccountSection } from "@/components/settings/account-section";
@@ -17,6 +18,7 @@ import { AIPresets } from "@/components/settings/ai-presets";
import { RecordingSettings } from "@/components/settings/recording-settings";
import GeneralSettings from "@/components/settings/general-settings";
import { DiskUsageSection } from "@/components/settings/disk-usage-section";
+import { ConnectionsSection } from "@/components/settings/connections-section";
import { useRouter } from "next/navigation";
import { useQueryState } from "nuqs";
import { listen } from "@tauri-apps/api/event";
@@ -27,14 +29,15 @@ type SettingsSection =
| "shortcuts"
| "recording"
| "account"
- | "disk-usage";
+ | "disk-usage"
+ | "connections";
function SettingsPageContent() {
const router = useRouter();
const [activeSection, setActiveSection] = useQueryState("section", {
defaultValue: "general" as SettingsSection,
parse: (value) => {
- if (["general", "ai", "shortcuts", "recording", "account", "disk-usage"].includes(value)) {
+ if (["general", "ai", "shortcuts", "recording", "account", "disk-usage", "connections"].includes(value)) {
return value as SettingsSection;
}
return "general" as SettingsSection;
@@ -58,6 +61,8 @@ function SettingsPageContent() {
return <ShortcutSection />;
case "disk-usage":
return <DiskUsageSection />;
+ case "connections":
+ return <ConnectionsSection />;
}
};
@@ -98,6 +103,12 @@ function SettingsPageContent() {
icon: <HardDrive className="h-4 w-4" />,
description: "Monitor storage usage for Screenpipe data",
},
+ {
+ id: "connections",
+ label: "Connections",
+ icon: <Plug className="h-4 w-4" />,
+ description: "Connect to AI assistants like Claude",
+ },
];
// Listen for navigation events from other windows
@@ -105,7 +116,7 @@ function SettingsPageContent() {
const unlisten = listen<{ url: string }>("navigate", (event) => {
const url = new URL(event.payload.url, window.location.origin);
const section = url.searchParams.get("section");
- if (section && ["general", "ai", "shortcuts", "recording", "account", "disk-usage"].includes(section)) {
+ if (section && ["general", "ai", "shortcuts", "recording", "account", "disk-usage", "connections"].includes(section)) {
setActiveSection(section as SettingsSection);
}
});
diff --git a/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx b/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx
index 358321fb8..ec7c30ccb 100644
--- a/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx
+++ b/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx
@@ -31,6 +31,8 @@ import {
Eye,
EyeOff,
Settings,
+ LogIn,
+ AlertTriangle,
} from "lucide-react";
import { cn } from "@/lib/utils";
import { toast } from "sonner";
@@ -263,6 +265,46 @@ export function AIProviderConfig({
}
};
+ // Check if editing a screenpipe-cloud preset while not logged in
+ const isScreenpipeCloudWithoutLogin =
+ selectedProvider === "screenpipe-cloud" && !settings?.user?.token;
+
+ // If editing an existing screenpipe-cloud preset without being logged in, show login prompt
+ if (defaultPreset?.provider === "screenpipe-cloud" && !settings?.user?.token) {
+ return (
+ <div className="w-full space-y-6 rounded-lg bg-card p-6">
+ <div>
+ <h2 className="text-lg font-semibold">edit ai provider</h2>
+ <p className="text-sm text-muted-foreground">
+ modify your ai provider settings
+ </p>
+ </div>
+
+ <div className="flex flex-col items-center justify-center py-8 space-y-4">
+ <div className="p-4 rounded-full bg-amber-500/10">
+ <LogIn className="h-8 w-8 text-amber-500" />
+ </div>
+ <div className="text-center space-y-2">
+ <h3 className="font-semibold text-lg">Login Required</h3>
+ <p className="text-sm text-muted-foreground max-w-sm">
+ This preset uses Screenpipe Cloud. Please log in to your Screenpipe account to edit it.
+ </p>
+ </div>
+ <Button
+ onClick={() => {
+ // Navigate to account settings
+ window.location.href = "/settings?section=account";
+ }}
+ className="gap-2"
+ >
+ <LogIn className="h-4 w-4" />
+ Go to Login
+ </Button>
+ </div>
+ </div>
+ );
+ }
+
return (
<div className="w-full space-y-6 rounded-lg bg-card p-6">
<div>
@@ -770,6 +812,12 @@ export const AIPresetsSelector = ({
return defaultPreset?.id || settings?.aiPresets?.[0]?.id || undefined;
}, [settings?.aiPresets]);
+ // Check if selected preset requires login
+ const selectedPresetRequiresLogin = useMemo(() => {
+ const preset = aiPresets.find((p) => p.id === selectedPreset);
+ return preset?.provider === "screenpipe-cloud" && !settings?.user?.token;
+ }, [aiPresets, selectedPreset, settings?.user?.token]);
+
useEffect(() => {
if (onPresetChange) {
onPresetChange(aiPresets.find((p) => p.id === selectedPreset) as AIPreset);
@@ -980,7 +1028,27 @@ export const AIPresetsSelector = ({
return (
<>
- <div className="flex w-full items-center gap-2">
+ <div className="flex flex-col w-full gap-2">
+ {selectedPresetRequiresLogin && (
+ <div className="flex items-center gap-2 p-2 text-sm bg-amber-500/10 border border-amber-500/20 rounded-lg">
+ <AlertTriangle className="h-4 w-4 text-amber-500 shrink-0" />
+ <span className="text-amber-600 dark:text-amber-400 flex-1">
+ Login required to use Screenpipe Cloud
+ </span>
+ <Button
+ variant="outline"
+ size="sm"
+ className="shrink-0 h-7 text-xs border-amber-500/30 hover:bg-amber-500/10"
+ onClick={() => {
+ window.location.href = "/settings?section=account";
+ }}
+ >
+ <LogIn className="h-3 w-3 mr-1" />
+ Login
+ </Button>
+ </div>
+ )}
+ <div className="flex w-full items-center gap-2">
<Popover open={open} onOpenChange={setOpen}>
<TooltipProvider>
<Tooltip>
@@ -989,17 +1057,25 @@ export const AIPresetsSelector = ({
variant="outline"
role="combobox"
aria-expanded={open}
- className="w-full justify-between"
+ className={cn(
+ "w-full justify-between",
+ selectedPresetRequiresLogin && "border-amber-500/50"
+ )}
>
{selectedPreset ? (
<div className="flex w-full items-center justify-between gap-2 overflow-hidden">
- <span className="font-medium min-w-[80px] max-w-[30%] truncate text-left">
- {formatPresetName(
- aiPresets.find(
- (preset) => preset.id === selectedPreset,
- )?.id || ''
+ <div className="flex items-center gap-2 min-w-[80px] max-w-[30%]">
+ {selectedPresetRequiresLogin && (
+ <AlertTriangle className="h-4 w-4 text-amber-500 shrink-0" />
)}
- </span>
+ <span className="font-medium truncate text-left">
+ {formatPresetName(
+ aiPresets.find(
+ (preset) => preset.id === selectedPreset,
+ )?.id || ''
+ )}
+ </span>
+ </div>
<div className="flex items-center gap-2 text-xs text-muted-foreground overflow-hidden">
<span className="rounded bg-muted px-1.5 py-0.5 whitespace-nowrap">
{
@@ -1032,13 +1108,19 @@ export const AIPresetsSelector = ({
</Button>
</PopoverTrigger>
<TooltipContent>
- <p className="flex items-center gap-2">
- <span>Press</span>
- <kbd className="px-1.5 py-0.5 text-xs font-semibold bg-muted rounded">
- ⌘/
- </kbd>
- <span>to cycle presets</span>
- </p>
+ {selectedPresetRequiresLogin ? (
+ <p className="text-amber-500">
+ Login required to use this preset
+ </p>
+ ) : (
+ <p className="flex items-center gap-2">
+ <span>Press</span>
+ <kbd className="px-1.5 py-0.5 text-xs font-semibold bg-muted rounded">
+ ⌘/
+ </kbd>
+ <span>to cycle presets</span>
+ </p>
+ )}
</TooltipContent>
</Tooltip>
</TooltipProvider>
@@ -1246,6 +1328,7 @@ export const AIPresetsSelector = ({
</Command>
</PopoverContent>
</Popover>
+ </div>
</div>
<AIPresetDialog
open={dialogOpen}
diff --git a/screenpipe-app-tauri/components/rewind/timeline.tsx b/screenpipe-app-tauri/components/rewind/timeline.tsx
index 1513ad073..6212aa021 100644
--- a/screenpipe-app-tauri/components/rewind/timeline.tsx
+++ b/screenpipe-app-tauri/components/rewind/timeline.tsx
@@ -78,7 +78,7 @@ export default function Timeline() {
setShowAudioTranscript(true);
}, [currentIndex]);
- const { currentDate, setCurrentDate, fetchTimeRange, hasDateBeenFetched } =
+ const { currentDate, setCurrentDate, fetchTimeRange, hasDateBeenFetched, loadingProgress } =
useTimelineStore();
const { frames, isLoading, error, message, fetchNextDayData } =
@@ -86,6 +86,18 @@ export default function Timeline() {
setCurrentFrame(frame);
});
+ // Progressive loading: show UI immediately once we have any frames
+ const hasInitialFrames = frames.length > 0;
+ const showBlockingLoader = isLoading && !hasInitialFrames;
+
+ // Auto-select first frame when frames arrive and no frame is selected
+ useEffect(() => {
+ if (!currentFrame && frames.length > 0) {
+ setCurrentFrame(frames[0]);
+ setCurrentIndex(0);
+ }
+ }, [frames.length, currentFrame, setCurrentFrame]);
+
useEffect(() => {
const getStartDateAndSet = async () => {
const data = await getStartDate();
@@ -354,21 +366,16 @@ export default function Timeline() {
<div className="absolute inset-0 z-10">
{currentFrame ? (
<CurrentFrameTimeline currentFrame={currentFrame} />
- ) : (
- !isLoading && !error && frames.length === 0 && (
+ ) : !showBlockingLoader && !error && frames.length === 0 && !isLoading ? (
<div className="absolute inset-0 flex items-center justify-center bg-background/90">
<div className="text-center text-foreground p-8">
<h3 className="text-lg font-medium mb-2">No Frame Available</h3>
<p className="text-sm text-muted-foreground">
- {isLoading ? 'Loading timeline data...' :
- error ? 'Failed to load timeline data' :
- frames.length === 0 ? 'No frames found for this date' :
- 'Select a frame from the timeline below'}
+ No frames found for this date
</p>
</div>
</div>
- )
- )}
+ ) : null}
</div>
{/* Top Gradient Overlay - Very subtle */}
@@ -387,8 +394,8 @@ export default function Timeline() {
/>
</div>
- {/* Loading/Error States */}
- {isLoading && (
+ {/* Loading/Error States - Progressive loading: only block when no frames yet */}
+ {showBlockingLoader && (
<div className="absolute inset-0 z-50 flex items-center justify-center bg-background/90">
<div className="bg-card text-foreground p-6 rounded-2xl text-center space-y-3 max-w-md mx-4">
<h3 className="font-medium">Loading Timeline</h3>
@@ -400,6 +407,16 @@ export default function Timeline() {
</div>
)}
+ {/* Non-blocking streaming indicator - shows when frames are loading in background */}
+ {loadingProgress.isStreaming && hasInitialFrames && (
+ <div className="absolute top-20 left-1/2 -translate-x-1/2 z-45 pointer-events-none">
+ <div className="bg-card/80 backdrop-blur-sm text-foreground px-4 py-2 rounded-full text-sm flex items-center gap-2 border border-border shadow-lg">
+ <Loader2 className="h-3 w-3 animate-spin" />
+ <span>Loading frames... {loadingProgress.loaded.toLocaleString()}</span>
+ </div>
+ </div>
+ )}
+
{!error && message && (
<div className="absolute inset-0 z-50 flex items-center justify-center bg-background/90">
<div className="bg-card text-foreground p-6 border border-border rounded-2xl shadow-2xl text-center space-y-3 max-w-md mx-4">
@@ -463,17 +480,33 @@ export default function Timeline() {
startAndEndDates={startAndEndDates}
/>
) : (
- <div className="bg-card p-4 text-center border-t border-border">
+ <div className="bg-card/80 backdrop-blur-sm p-4 border-t border-border">
<div className="text-foreground text-sm">
{isLoading ? (
- <div className="flex items-center justify-center gap-2">
- <div className="w-4 h-4 border-2 border-border border-t-foreground rounded-full animate-spin"></div>
- Loading timeline...
+ <div className="space-y-3">
+ {/* Skeleton timeline slider */}
+ <div className="flex items-center gap-2 justify-center">
+ <Loader2 className="w-4 h-4 animate-spin" />
+ <span>Loading timeline...</span>
+ </div>
+ <div className="h-16 bg-muted/50 rounded-lg animate-pulse flex items-end gap-0.5 px-2 pb-2">
+ {/* Skeleton bars */}
+ {Array.from({ length: 60 }).map((_, i) => (
+ <div
+ key={i}
+ className="flex-1 bg-muted rounded-t"
+ style={{
+ height: `${Math.random() * 60 + 20}%`,
+ animationDelay: `${i * 20}ms`
+ }}
+ />
+ ))}
+ </div>
</div>
) : error ? (
- <div className="text-destructive">Failed to load timeline data</div>
+ <div className="text-destructive text-center">Failed to load timeline data</div>
) : (
- <div>No timeline data available for this date</div>
+ <div className="text-center">No timeline data available for this date</div>
)}
</div>
</div>
diff --git a/screenpipe-app-tauri/components/settings/connections-section.tsx b/screenpipe-app-tauri/components/settings/connections-section.tsx
new file mode 100644
index 000000000..8e5cf5e5a
--- /dev/null
+++ b/screenpipe-app-tauri/components/settings/connections-section.tsx
@@ -0,0 +1,203 @@
+"use client";
+
+import React, { useState } from "react";
+import { Card, CardContent } from "@/components/ui/card";
+import { Button } from "@/components/ui/button";
+import { Download, ExternalLink, Check, Loader2 } from "lucide-react";
+import { open, Command } from "@tauri-apps/plugin-shell";
+import { message } from "@tauri-apps/plugin-dialog";
+import { writeFile } from "@tauri-apps/plugin-fs";
+import { fetch as tauriFetch } from "@tauri-apps/plugin-http";
+import { platform } from "@tauri-apps/plugin-os";
+import { tempDir, join } from "@tauri-apps/api/path";
+
+const MCPB_RELEASE_URL = "https://github.com/mediar-ai/screenpipe/releases/download/mcp-v0.2.0/screenpipe-mcp.mcpb";
+
+export function ConnectionsSection() {
+ const [downloadState, setDownloadState] = useState<"idle" | "downloading" | "downloaded">("idle");
+
+ const handleClaudeConnect = async () => {
+ try {
+ setDownloadState("downloading");
+
+ // Use Tauri's HTTP client to avoid CORS issues
+ const response = await tauriFetch(MCPB_RELEASE_URL, {
+ method: "GET",
+ });
+
+ if (!response.ok) throw new Error("Failed to download");
+
+ const arrayBuffer = await response.arrayBuffer();
+ const uint8Array = new Uint8Array(arrayBuffer);
+
+ // Save to temp directory automatically (no dialog)
+ const tmpDir = await tempDir();
+ const filePath = await join(tmpDir, "screenpipe-mcp.mcpb");
+
+ await writeFile(filePath, uint8Array);
+
+ // Open Claude first, then open the .mcpb file to trigger the install modal
+ const os = platform();
+ if (os === "macos") {
+ // Open Claude Desktop first
+ const openClaude = Command.create("open", ["-a", "Claude"]);
+ await openClaude.execute();
+
+ // Wait for Claude to open
+ await new Promise(resolve => setTimeout(resolve, 1500));
+
+ // Then open the .mcpb file - Claude will show the install modal
+ const openFile = Command.create("open", [filePath]);
+ await openFile.execute();
+ } else if (os === "windows") {
+ // Open Claude Desktop first
+ const openClaude = Command.create("cmd", ["/c", "start", "", "Claude"]);
+ await openClaude.execute();
+
+ // Wait for Claude to open
+ await new Promise(resolve => setTimeout(resolve, 1500));
+
+ // Then open the .mcpb file
+ const openFile = Command.create("cmd", ["/c", "start", "", filePath]);
+ await openFile.execute();
+ }
+
+ setDownloadState("downloaded");
+ } catch (error) {
+ console.error("Failed to download mcpb:", error);
+ await message("Failed to download extension. Please try again.", {
+ title: "Download Error",
+ kind: "error",
+ });
+ setDownloadState("idle");
+ }
+ };
+
+ const openClaudeDesktop = async () => {
+ try {
+ const os = platform();
+
+ if (os === "macos") {
+ // On macOS, use 'open' command to launch Claude.app
+ const cmd = Command.create("open", ["-a", "Claude"]);
+ await cmd.execute();
+ } else if (os === "windows") {
+ // On Windows, try to open Claude from typical install locations
+ const cmd = Command.create("cmd", ["/c", "start", "", "Claude"]);
+ await cmd.execute();
+ } else {
+ // Fallback to download page
+ await open("https://claude.ai/download");
+ }
+ } catch {
+ // If launching fails, show download page
+ await open("https://claude.ai/download");
+ }
+ };
+
+ return (
+ <div className="space-y-8">
+ <div className="space-y-3">
+ <h1 className="text-3xl font-bold tracking-tight text-foreground">
+ Connections
+ </h1>
+ <p className="text-muted-foreground text-lg">
+ Connect Screenpipe to AI assistants and other applications
+ </p>
+ </div>
+
+ <div className="space-y-6">
+ <Card className="border-border bg-card shadow-sm overflow-hidden">
+ <CardContent className="p-0">
+ <div className="flex items-start p-6 gap-6">
+ {/* Claude Logo */}
+ <div className="flex-shrink-0">
+ <svg
+ width="64"
+ height="64"
+ viewBox="0 0 512 509.64"
+ xmlns="http://www.w3.org/2000/svg"
+ className="rounded-2xl"
+ >
+ <path fill="#D77655" d="M115.612 0h280.775C459.974 0 512 52.026 512 115.612v278.415c0 63.587-52.026 115.612-115.613 115.612H115.612C52.026 509.639 0 457.614 0 394.027V115.612C0 52.026 52.026 0 115.612 0z"/>
+ <path fill="#FCF2EE" fillRule="nonzero" d="M142.27 316.619l73.655-41.326 1.238-3.589-1.238-1.996-3.589-.001-12.31-.759-42.084-1.138-36.498-1.516-35.361-1.896-8.897-1.895-8.34-10.995.859-5.484 7.482-5.03 10.717.935 23.683 1.617 35.537 2.452 25.782 1.517 38.193 3.968h6.064l.86-2.451-2.073-1.517-1.618-1.517-36.776-24.922-39.81-26.338-20.852-15.166-11.273-7.683-5.687-7.204-2.451-15.721 10.237-11.273 13.75.935 3.513.936 13.928 10.716 29.749 23.027 38.848 28.612 5.687 4.727 2.275-1.617.278-1.138-2.553-4.271-21.13-38.193-22.546-38.848-10.035-16.101-2.654-9.655c-.935-3.968-1.617-7.304-1.617-11.374l11.652-15.823 6.445-2.073 15.545 2.073 6.547 5.687 9.655 22.092 15.646 34.78 24.265 47.291 7.103 14.028 3.791 12.992 1.416 3.968 2.449-.001v-2.275l1.997-26.641 3.69-32.707 3.589-42.084 1.239-11.854 5.863-14.206 11.652-7.683 9.099 4.348 7.482 10.716-1.036 6.926-4.449 28.915-8.72 45.294-5.687 30.331h3.313l3.792-3.791 15.342-20.372 25.782-32.227 11.374-12.789 13.27-14.129 8.517-6.724 16.1-.001 11.854 17.617-5.307 18.199-16.581 21.029-13.75 17.819-19.716 26.54-12.309 21.231 1.138 1.694 2.932-.278 44.536-9.479 24.062-4.347 28.714-4.928 12.992 6.066 1.416 6.167-5.106 12.613-30.71 7.583-36.018 7.204-53.636 12.689-.657.48.758.935 24.164 2.275 10.337.556h25.301l47.114 3.514 12.309 8.139 7.381 9.959-1.238 7.583-18.957 9.655-25.579-6.066-59.702-14.205-20.474-5.106-2.83-.001v1.694l17.061 16.682 31.266 28.233 39.152 36.397 1.997 8.999-5.03 7.102-5.307-.758-34.401-25.883-13.27-11.651-30.053-25.302-1.996-.001v2.654l6.926 10.136 36.574 54.975 1.895 16.859-2.653 5.485-9.479 3.311-10.414-1.895-21.408-30.054-22.092-33.844-17.819-30.331-2.173 1.238-10.515 113.261-4.929 5.788-11.374 4.348-9.478-7.204-5.03-11.652 5.03-23.027 6.066-30.052 4.928-23.886 4.449-29.674 2.654-9.858-.177-.657-2.173.278-22.37 30.71-34.021 45.977-26.919 28.815-6.445 2.553-11.173-5.789 1.037-10.337 6.243-9.2 37.257-47.392 22.47-29.371 14.508-16.961-.101-2.451h-.859l-98.954 64.251-17.618 2.275-7.583-7.103.936-11.652 3.589-3.791 29.749-20.474-.101.102.024.101z"/>
+ </svg>
+ </div>
+
+ {/* Content */}
+ <div className="flex-1 min-w-0">
+ <div className="flex items-center gap-2 mb-2">
+ <h3 className="text-xl font-semibold text-foreground">
+ Claude Desktop
+ </h3>
+ <span className="px-2 py-0.5 text-xs font-medium bg-primary/10 text-primary rounded-full">
+ by Anthropic
+ </span>
+ </div>
+ <p className="text-muted-foreground mb-4">
+ Connect Screenpipe to Claude Desktop to search your screen recordings,
+ audio transcriptions, and control your computer using natural language.
+ </p>
+
+ <div className="flex flex-wrap gap-3">
+ <Button
+ onClick={handleClaudeConnect}
+ disabled={downloadState === "downloading"}
+ className="gap-2"
+ >
+ {downloadState === "downloading" ? (
+ <>
+ <Loader2 className="h-4 w-4 animate-spin" />
+ Downloading...
+ </>
+ ) : downloadState === "downloaded" ? (
+ <>
+ <Check className="h-4 w-4" />
+ Installed
+ </>
+ ) : (
+ <>
+ <Download className="h-4 w-4" />
+ Install Extension
+ </>
+ )}
+ </Button>
+
+ <Button
+ variant="outline"
+ onClick={openClaudeDesktop}
+ className="gap-2"
+ >
+ <ExternalLink className="h-4 w-4" />
+ Open Claude
+ </Button>
+ </div>
+ </div>
+ </div>
+
+ {/* Success message */}
+ {downloadState === "downloaded" && (
+ <div className="px-6 pb-6">
+ <div className="p-4 bg-green-500/10 border border-green-500/20 rounded-lg">
+ <p className="text-sm text-green-600 dark:text-green-400">
+ <strong>Screenpipe is now connected to Claude!</strong> Try asking Claude:
+ &quot;What did I do in the last 5 minutes?&quot; or &quot;Search my screen for meetings today&quot;
+ </p>
+ </div>
+ </div>
+ )}
+ </CardContent>
+ </Card>
+
+ {/* Info card */}
+ <div className="p-4 bg-primary/5 border border-primary/20 rounded-lg">
+ <p className="text-sm text-primary">
+ <strong>How it works:</strong> The extension allows Claude to search through your
+ Screenpipe recordings and transcriptions. Make sure Screenpipe is running when you
+ use Claude with Screenpipe features.
+ </p>
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/screenpipe-app-tauri/components/settings/recording-settings.tsx b/screenpipe-app-tauri/components/settings/recording-settings.tsx
index 77d18581c..e8a2739af 100644
--- a/screenpipe-app-tauri/components/settings/recording-settings.tsx
+++ b/screenpipe-app-tauri/components/settings/recording-settings.tsx
@@ -624,16 +624,6 @@ export function RecordingSettings() {
handleSettingsChange({ dataDir: settings.dataDir }, true);
};
- const handleFrameCacheToggle = (checked: boolean) => {
- handleSettingsChange(
- {
- enableFrameCache: checked,
- },
- true
- );
- };
-
-
const handleIgnoredWindowsChange = (values: string[]) => {
// Convert all values to lowercase for comparison
const lowerCaseValues = values.map((v) => v.toLowerCase());
@@ -757,15 +747,6 @@ export function RecordingSettings() {
</Alert>
)}
- {settings.devMode || (!isUpdating && isDisabled) ? (
- <Alert>
- <Terminal className="h-4 w-4" />
- <AlertTitle>Development Mode</AlertTitle>
- <AlertDescription>
- Make sure to turn off dev mode and start screenpipe recorder first (go to status)
- </AlertDescription>
- </Alert>
- ) : null}
{/* Enhanced Deepgram API Key Section */}
{settings.audioTranscriptionEngine === "deepgram" && (
@@ -1475,37 +1456,6 @@ export function RecordingSettings() {
/>
</div>
- <div className="flex items-center justify-between">
- <div className="space-y-1">
- <Label htmlFor="enableRealtimeVision">Enable realtime vision</Label>
- <p className="text-sm text-muted-foreground">
- Process screen content in real-time for immediate analysis
- </p>
- </div>
- <Switch
- id="enableRealtimeVision"
- checked={settings.enableRealtimeVision}
- onCheckedChange={(checked) =>
- handleSettingsChange({ enableRealtimeVision: checked }, true)
- }
- />
- </div>
-
- <div className="flex items-center justify-between">
- <div className="space-y-1">
- <Label htmlFor="enableFrameCache">Enable frame cache</Label>
- <p className="text-sm text-muted-foreground">
- Cache frames to improve performance and reduce resource usage
- </p>
- </div>
- <Switch
- id="enableFrameCache"
- checked={settings.enableFrameCache}
- onCheckedChange={handleFrameCacheToggle}
- />
- </div>
-
-
</div>
</div>
@@ -1594,40 +1544,6 @@ export function RecordingSettings() {
helperText="Port for the Screenpipe server (requires restart)"
/>
- {/* Restart Interval */}
- <div className="flex flex-col space-y-2">
- <Label htmlFor="restartInterval" className="flex items-center space-x-2">
- <span>Restart interval (minutes)</span>
- <TooltipProvider>
- <Tooltip>
- <TooltipTrigger>
- <HelpCircle className="h-4 w-4 cursor-default" />
- </TooltipTrigger>
- <TooltipContent side="right">
- <p>
- Automatically restart the recording process at this interval. Set to 0 to disable.
- </p>
- </TooltipContent>
- </Tooltip>
- </TooltipProvider>
- </Label>
- <div className="flex items-center space-x-4">
- <Slider
- id="restartInterval"
- min={0}
- max={1440}
- step={15}
- value={[settings.restartInterval]}
- onValueChange={(value) =>
- handleSettingsChange({ restartInterval: value[0] }, true)
- }
- className="flex-grow"
- />
- <span className="w-16 text-right">
- {settings.restartInterval === 0 ? "Disabled" : `${settings.restartInterval}m`}
- </span>
- </div>
- </div>
{/* System Toggles */}
<div className="space-y-4">
@@ -1659,37 +1575,6 @@ export function RecordingSettings() {
/>
</div>
- <div className="flex items-center justify-between">
- <div className="space-y-1">
- <Label htmlFor="devMode">Developer mode</Label>
- <p className="text-sm text-muted-foreground">
- Enable developer features and debug logging
- </p>
- </div>
- <Switch
- id="devMode"
- checked={settings.devMode}
- onCheckedChange={(checked) =>
- handleSettingsChange({ devMode: checked }, false)
- }
- />
- </div>
-
- <div className="flex items-center justify-between">
- <div className="space-y-1">
- <Label htmlFor="enableBeta">Enable beta features</Label>
- <p className="text-sm text-muted-foreground">
- Access experimental features (may be unstable)
- </p>
- </div>
- <Switch
- id="enableBeta"
- checked={settings.enableBeta}
- onCheckedChange={(checked) =>
- handleSettingsChange({ enableBeta: checked }, false)
- }
- />
- </div>
</div>
</div>
diff --git a/screenpipe-app-tauri/lib/hooks/use-timeline-store.tsx b/screenpipe-app-tauri/lib/hooks/use-timeline-store.tsx
index 85e7ba9d4..315a78859 100644
--- a/screenpipe-app-tauri/lib/hooks/use-timeline-store.tsx
+++ b/screenpipe-app-tauri/lib/hooks/use-timeline-store.tsx
@@ -5,7 +5,9 @@ import { subDays } from "date-fns";
interface TimelineState {
frames: StreamTimeSeriesResponse[];
+ frameTimestamps: Set<string>; // For O(1) deduplication lookups
isLoading: boolean;
+ loadingProgress: { loaded: number; isStreaming: boolean }; // Track loading progress
error: string | null;
message: string | null;
currentDate: Date;
@@ -26,7 +28,9 @@ interface TimelineState {
export const useTimelineStore = create<TimelineState>((set, get) => ({
frames: [],
+ frameTimestamps: new Set<string>(), // O(1) lookup for deduplication
isLoading: true,
+ loadingProgress: { loaded: 0, isStreaming: false },
error: null,
message: null,
currentDate: new Date(),
@@ -48,7 +52,13 @@ export const useTimelineStore = create<TimelineState>((set, get) => ({
const ws = new WebSocket("ws://localhost:3030/stream/frames");
ws.onopen = () => {
- set({ websocket: ws, error: null, message: null, isLoading: true });
+ set({
+ websocket: ws,
+ error: null,
+ message: null,
+ isLoading: true,
+ loadingProgress: { loaded: 0, isStreaming: true }
+ });
console.log("WebSocket connection established");
};
@@ -75,32 +85,49 @@ export const useTimelineStore = create<TimelineState>((set, get) => ({
return;
}
- // Handle batched frames
+ // Handle batched frames - OPTIMIZED: incremental deduplication
if (Array.isArray(data)) {
set((state) => {
- const newFrames = [...state.frames];
- const uniqueFrames = new Map();
+ // Filter out frames we already have using O(1) Set lookup
+ const newUniqueFrames = data.filter(
+ (frame) => !state.frameTimestamps.has(frame.timestamp)
+ );
- // First, add existing frames to the map
- newFrames.forEach((frame) => {
- uniqueFrames.set(frame.timestamp, frame);
- });
+ // If no new frames, just update loading state
+ if (newUniqueFrames.length === 0) {
+ return {
+ isLoading: false,
+ loadingProgress: {
+ loaded: state.frames.length,
+ isStreaming: true
+ },
+ message: null,
+ error: null,
+ };
+ }
- // Add new frames to the map (this automatically handles duplicates)
- data.forEach((frame) => {
- uniqueFrames.set(frame.timestamp, frame);
+ // Add new timestamps to the Set
+ const updatedTimestamps = new Set(state.frameTimestamps);
+ newUniqueFrames.forEach((frame) => {
+ updatedTimestamps.add(frame.timestamp);
});
- // Convert map back to array and sort by timestamp
- const sortedFrames = Array.from(uniqueFrames.values()).sort(
+ // Merge and sort only when we have new frames
+ // Use insertion sort optimization for mostly-sorted data
+ const mergedFrames = [...state.frames, ...newUniqueFrames].sort(
(a, b) =>
new Date(b.timestamp).getTime() -
new Date(a.timestamp).getTime(),
);
return {
- frames: sortedFrames,
+ frames: mergedFrames,
+ frameTimestamps: updatedTimestamps,
isLoading: false,
+ loadingProgress: {
+ loaded: mergedFrames.length,
+ isStreaming: true
+ },
message: null,
error: null,
};
@@ -108,21 +135,20 @@ export const useTimelineStore = create<TimelineState>((set, get) => ({
return;
}
- // Handle single frame (legacy support)
+ // Handle single frame (legacy support) - OPTIMIZED with Set lookup
if (data.timestamp && data.devices) {
set((state) => {
- const timestamp = new Date(data.timestamp).getTime();
-
- // Check for duplicate
- if (
- state.frames.some(
- (f) => new Date(f.timestamp).getTime() === timestamp,
- )
- ) {
+ // O(1) duplicate check using Set
+ if (state.frameTimestamps.has(data.timestamp)) {
return state;
}
+ // Add to timestamps Set
+ const updatedTimestamps = new Set(state.frameTimestamps);
+ updatedTimestamps.add(data.timestamp);
+
// Use binary search to find insertion point
+ const timestamp = new Date(data.timestamp).getTime();
const newFrames = [...state.frames];
let left = 0;
let right = newFrames.length;
@@ -140,7 +166,12 @@ export const useTimelineStore = create<TimelineState>((set, get) => ({
newFrames.splice(left, 0, data);
return {
frames: newFrames,
+ frameTimestamps: updatedTimestamps,
isLoading: false,
+ loadingProgress: {
+ loaded: newFrames.length,
+ isStreaming: true
+ },
message: null,
error: null,
};
@@ -161,7 +192,11 @@ export const useTimelineStore = create<TimelineState>((set, get) => ({
};
ws.onclose = () => {
- set({ message: "Connection closed", isLoading: false });
+ set({
+ message: "Connection closed",
+ isLoading: false,
+ loadingProgress: { loaded: get().frames.length, isStreaming: false }
+ });
// Attempt to reconnect after a delay
setTimeout(() => get().connectWebSocket(), 5000);
};
diff --git a/screenpipe-app-tauri/src-tauri/capabilities/main.json b/screenpipe-app-tauri/src-tauri/capabilities/main.json
index a6a2f2293..4a701eb2a 100644
--- a/screenpipe-app-tauri/src-tauri/capabilities/main.json
+++ b/screenpipe-app-tauri/src-tauri/capabilities/main.json
@@ -328,10 +328,41 @@
},
{
"path": "$APPLOCALDATA/**"
+ },
+ {
+ "path": "$TEMP"
+ },
+ {
+ "path": "$TEMP/*"
+ },
+ {
+ "path": "$TEMP/**"
}
]
},
"opener:default",
- "opener:default"
+ "opener:default",
+ {
+ "identifier": "shell:allow-execute",
+ "allow": [
+ {
+ "name": "open",
+ "cmd": "open",
+ "args": true,
+ "sidecar": false
+ }
+ ]
+ },
+ {
+ "identifier": "shell:allow-execute",
+ "allow": [
+ {
+ "name": "cmd",
+ "cmd": "cmd",
+ "args": true,
+ "sidecar": false
+ }
+ ]
+ }
]
}
\ No newline at end of file
diff --git a/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json b/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json
index 085d8ea08..d974d89ce 100644
--- a/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json
+++ b/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json
@@ -1 +1 @@
-{"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","remote":{"urls":["http://localhost:*"]},"local":true,"windows":["*"],"permissions":["core:event:allow-listen","core:event:default","core:app:allow-version","process:allow-restart","process:allow-exit","notification:default","core:resources:default","core:menu:default","core:tray:default","shell:default","shell:allow-open","store:default","shell:allow-open","fs:allow-watch","fs:allow-open","fs:default","fs:allow-read-file","fs:allow-read-dir","fs:allow-read","fs:allow-write-file","fs:read-dirs","fs:allow-copy-file","fs:allow-exists","fs:allow-read-text-file","fs:allow-create","fs:allow-mkdir","fs:allow-remove","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-unregister","global-shortcut:allow-unregister-all","global-shortcut:default","sentry:default","opener:allow-open-url","core:window:default","core:window:allow-get-all-windows","core:window:allow-close","core:window:allow-destroy","core:window:allow-start-dragging",{"identifier":"fs:scope","allow":[{"path":"$XDG_DATA_HOME","requireLiteralLeadingDot":false},{"path":"$XDG_DATA_HOME/**","requireLiteralLeadingDot":false},{"path":"$LOCALAPPDATA/*","requireLiteralLeadingDot":false},{"path":"$LOCALAPPDATA/**","requireLiteralLeadingDot":false},{"path":"$APPLOCALDATA/*","requireLiteralLeadingDot":false},{"path":"$APPLOCALDATA/**","requireLiteralLeadingDot":false},{"path":"$APPDATA/*","requireLiteralLeadingDot":false},{"path":"$APPDATA/**","requireLiteralLeadingDot":false},{"path":"$APPCONFIG/*","requireLiteralLeadingDot":false},{"path":"$RESOURCE/*","requireLiteralLeadingDot":false},{"path":"$RESOURCE/.screenpipe/*","requireLiteralLeadingDot":false},{"path":"$HOME/*","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/*","requireLiteralLeadingDot":false},{"path":"$APP/*","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/data/**","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/**","requireLiteralLeadingDot":false},{"path":"$RESOURCE/.screenpipe/**","requireLiteralLeadingDot":false}]},{"identifier":"shell:allow-execute","allow":[{"args":["-c",{"validator":"\\S+"}],"cmd":"sh","name":"exec-sh","sidecar":false}]},{"identifier":"shell:allow-execute","allow":[{"args":true,"cmd":"screenpipe","name":"screenpipe","sidecar":true}]},"cli:default","shell:default","shell:allow-spawn","dialog:default","updater:default","os:default","os:allow-arch","os:allow-hostname","os:allow-os-type","core:path:default","process:default","core:webview:allow-internal-toggle-devtools","core:webview:allow-create-webview-window",{"identifier":"shell:allow-execute","allow":[{"args":["pipe","list","--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-list","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","download",{"validator":"\\S+"},"--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-download","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","enable",{"validator":"\\S+"}],"cmd":"screenpipe","name":"screenpipe-pipe-enable","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","disable",{"validator":"\\S+"}],"cmd":"screenpipe","name":"screenpipe-pipe-disable","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","update",{"validator":"\\S+"},{"validator":"\\{.*\\}"}],"cmd":"screenpipe","name":"screenpipe-pipe-update","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","delete",{"validator":"\\S+"},"--yes"],"cmd":"screenpipe","name":"screenpipe-pipe-delete","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","info",{"validator":"\\S+"},"--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-info","sidecar":true}]},{"identifier":"http:default","allow":[{"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"url":"http://**/*"},{"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"url":"https://**/*"}]},"deep-link:default","fs:allow-write-text-file",{"identifier":"fs:scope","allow":[{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/**"}]},"opener:default","opener:default"]}}
\ No newline at end of file
+{"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","remote":{"urls":["http://localhost:*"]},"local":true,"windows":["*"],"permissions":["core:event:allow-listen","core:event:default","core:app:allow-version","process:allow-restart","process:allow-exit","notification:default","core:resources:default","core:menu:default","core:tray:default","shell:default","shell:allow-open","store:default","shell:allow-open","fs:allow-watch","fs:allow-open","fs:default","fs:allow-read-file","fs:allow-read-dir","fs:allow-read","fs:allow-write-file","fs:read-dirs","fs:allow-copy-file","fs:allow-exists","fs:allow-read-text-file","fs:allow-create","fs:allow-mkdir","fs:allow-remove","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-unregister","global-shortcut:allow-unregister-all","global-shortcut:default","sentry:default","opener:allow-open-url","core:window:default","core:window:allow-get-all-windows","core:window:allow-close","core:window:allow-destroy","core:window:allow-start-dragging",{"identifier":"fs:scope","allow":[{"path":"$XDG_DATA_HOME","requireLiteralLeadingDot":false},{"path":"$XDG_DATA_HOME/**","requireLiteralLeadingDot":false},{"path":"$LOCALAPPDATA/*","requireLiteralLeadingDot":false},{"path":"$LOCALAPPDATA/**","requireLiteralLeadingDot":false},{"path":"$APPLOCALDATA/*","requireLiteralLeadingDot":false},{"path":"$APPLOCALDATA/**","requireLiteralLeadingDot":false},{"path":"$APPDATA/*","requireLiteralLeadingDot":false},{"path":"$APPDATA/**","requireLiteralLeadingDot":false},{"path":"$APPCONFIG/*","requireLiteralLeadingDot":false},{"path":"$RESOURCE/*","requireLiteralLeadingDot":false},{"path":"$RESOURCE/.screenpipe/*","requireLiteralLeadingDot":false},{"path":"$HOME/*","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/*","requireLiteralLeadingDot":false},{"path":"$APP/*","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/data/**","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/**","requireLiteralLeadingDot":false},{"path":"$RESOURCE/.screenpipe/**","requireLiteralLeadingDot":false}]},{"identifier":"shell:allow-execute","allow":[{"args":["-c",{"validator":"\\S+"}],"cmd":"sh","name":"exec-sh","sidecar":false}]},{"identifier":"shell:allow-execute","allow":[{"args":true,"cmd":"screenpipe","name":"screenpipe","sidecar":true}]},"cli:default","shell:default","shell:allow-spawn","dialog:default","updater:default","os:default","os:allow-arch","os:allow-hostname","os:allow-os-type","core:path:default","process:default","core:webview:allow-internal-toggle-devtools","core:webview:allow-create-webview-window",{"identifier":"shell:allow-execute","allow":[{"args":["pipe","list","--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-list","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","download",{"validator":"\\S+"},"--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-download","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","enable",{"validator":"\\S+"}],"cmd":"screenpipe","name":"screenpipe-pipe-enable","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","disable",{"validator":"\\S+"}],"cmd":"screenpipe","name":"screenpipe-pipe-disable","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","update",{"validator":"\\S+"},{"validator":"\\{.*\\}"}],"cmd":"screenpipe","name":"screenpipe-pipe-update","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","delete",{"validator":"\\S+"},"--yes"],"cmd":"screenpipe","name":"screenpipe-pipe-delete","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","info",{"validator":"\\S+"},"--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-info","sidecar":true}]},{"identifier":"http:default","allow":[{"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"url":"http://**/*"},{"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"url":"https://**/*"}]},"deep-link:default","fs:allow-write-text-file",{"identifier":"fs:scope","allow":[{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/**"},{"path":"$TEMP"},{"path":"$TEMP/*"},{"path":"$TEMP/**"}]},"opener:default","opener:default",{"identifier":"shell:allow-execute","allow":[{"args":true,"cmd":"open","name":"open","sidecar":false}]},{"identifier":"shell:allow-execute","allow":[{"args":true,"cmd":"cmd","name":"cmd","sidecar":false}]}]}}
\ No newline at end of file
diff --git a/screenpipe-app-tauri/src-tauri/src/commands.rs b/screenpipe-app-tauri/src-tauri/src/commands.rs
index 889fcec35..d7b9868bb 100644
--- a/screenpipe-app-tauri/src-tauri/src/commands.rs
+++ b/screenpipe-app-tauri/src-tauri/src/commands.rs
@@ -29,8 +29,11 @@ pub fn set_tray_health_icon(app_handle: tauri::AppHandle) {
#[tauri::command]
#[specta::specta]
pub fn show_main_window(app_handle: &tauri::AppHandle, _overlay: bool) {
- let window = ShowRewindWindow::Main.show(app_handle).unwrap();
- window.set_focus().unwrap();
+ let _window = ShowRewindWindow::Main.show(app_handle).unwrap();
+ // Don't call set_focus() on macOS as it causes space switching
+ // The panel's order_front_regardless() already handles visibility
+ #[cfg(not(target_os = "macos"))]
+ _window.set_focus().unwrap();
}
#[tauri::command]
diff --git a/screenpipe-app-tauri/src-tauri/src/window_api.rs b/screenpipe-app-tauri/src-tauri/src/window_api.rs
index d6847063e..68447fcec 100644
--- a/screenpipe-app-tauri/src-tauri/src/window_api.rs
+++ b/screenpipe-app-tauri/src-tauri/src/window_api.rs
@@ -288,10 +288,29 @@ impl ShowRewindWindow {
info!("showing panel");
#[cfg(target_os = "macos")]
{
+ // CRITICAL: Set Accessory activation policy BEFORE showing the panel
+ // This is required for the panel to appear above fullscreen apps on macOS
+ let _ = app.set_activation_policy(tauri::ActivationPolicy::Accessory);
+
let app_clone = app.clone();
app.run_on_main_thread(move || {
+ use tauri_nspanel::cocoa::appkit::NSWindowCollectionBehavior;
+
if let Ok(panel) = app_clone.get_webview_panel(RewindWindowId::Main.label()) {
- panel.show();
+ // Re-apply window level each time we show to ensure it stays above fullscreen
+ // CGShieldingWindowLevel (1000) + 1 ensures it appears above everything
+ panel.set_level(1001);
+
+ // Re-apply collection behaviors
+ panel.set_collection_behaviour(
+ NSWindowCollectionBehavior::NSWindowCollectionBehaviorCanJoinAllSpaces |
+ NSWindowCollectionBehavior::NSWindowCollectionBehaviorIgnoresCycle |
+ NSWindowCollectionBehavior::NSWindowCollectionBehaviorFullScreenAuxiliary |
+ NSWindowCollectionBehavior::NSWindowCollectionBehaviorStationary
+ );
+
+ // Use order_front_regardless to show above fullscreen apps without switching spaces
+ panel.order_front_regardless();
}
}).ok();
}
@@ -336,6 +355,10 @@ impl ShowRewindWindow {
// macOS uses fullscreen transparent panel overlay
#[cfg(target_os = "macos")]
let window = {
+ // CRITICAL: Set Accessory activation policy BEFORE creating the panel
+ // This is required for the panel to appear above fullscreen apps on macOS
+ let _ = app.set_activation_policy(tauri::ActivationPolicy::Accessory);
+
let monitor = app.primary_monitor().unwrap().unwrap();
let logical_size = monitor.size().to_logical(monitor.scale_factor());
let builder = self.window_builder(app, "/")
@@ -405,14 +428,19 @@ impl ShowRewindWindow {
use tauri_nspanel::cocoa::appkit::{NSWindowCollectionBehavior};
if let Ok(panel) = window_clone.to_panel() {
- panel.set_level(26);
+ // Use a very high window level to appear above fullscreen apps
+ // CGShieldingWindowLevel (1000) + 1 ensures it appears above everything including fullscreen
+ panel.set_level(1001);
panel.released_when_closed(true);
panel.set_style_mask(0);
panel.set_collection_behaviour(
- NSWindowCollectionBehavior::NSWindowCollectionBehaviorCanJoinAllSpaces | NSWindowCollectionBehavior::NSWindowCollectionBehaviorIgnoresCycle | NSWindowCollectionBehavior::NSWindowCollectionBehaviorFullScreenAuxiliary
+ NSWindowCollectionBehavior::NSWindowCollectionBehaviorCanJoinAllSpaces |
+ NSWindowCollectionBehavior::NSWindowCollectionBehaviorIgnoresCycle |
+ NSWindowCollectionBehavior::NSWindowCollectionBehaviorFullScreenAuxiliary |
+ NSWindowCollectionBehavior::NSWindowCollectionBehaviorStationary
);
}
}).ok();
@@ -516,6 +544,10 @@ impl ShowRewindWindow {
panel.order_out(None);
}
}).ok();
+
+ // Reset to Regular activation policy when hiding the panel
+ // so other windows (like Settings) work normally
+ let _ = app.set_activation_policy(tauri::ActivationPolicy::Regular);
}
#[cfg(not(target_os = "macos"))]
@@ -524,7 +556,7 @@ impl ShowRewindWindow {
window.close().ok();
}
}
-
+
return Ok(());
}
diff --git a/screenpipe-integrations/screenpipe-mcp/manifest.json b/screenpipe-integrations/screenpipe-mcp/manifest.json
index 43a68846f..0a91a3937 100644
--- a/screenpipe-integrations/screenpipe-mcp/manifest.json
+++ b/screenpipe-integrations/screenpipe-mcp/manifest.json
@@ -6,7 +6,7 @@
"description": "Search your screen recordings, audio transcriptions, and control your computer with AI",
"long_description": "Screenpipe is a 24/7 screen and audio recorder that lets you search everything you've seen or heard. This extension connects Claude to your local screenpipe instance, enabling AI-powered search through your digital memory and computer control capabilities.",
"author": {
- "name": "Mediar AI",
+ "name": "screenpipe",
"url": "https://screenpi.pe"
},
"repository": {
diff --git a/screenpipe-integrations/screenpipe-mcp/screenpipe-mcp.mcpb b/screenpipe-integrations/screenpipe-mcp/screenpipe-mcp.mcpb
index a8e80913e..9d7049829 100644
Binary files a/screenpipe-integrations/screenpipe-mcp/screenpipe-mcp.mcpb and b/screenpipe-integrations/screenpipe-mcp/screenpipe-mcp.mcpb differ