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 default AI preset to use Claude Haiku 4.5 and add login check

Louis Beaumontf79a47ef90f6
diff --git a/screenpipe-app-tauri/components/onboarding/status.tsx b/screenpipe-app-tauri/components/onboarding/status.tsx
index c3f73a3e6..31444653e 100644
--- a/screenpipe-app-tauri/components/onboarding/status.tsx
+++ b/screenpipe-app-tauri/components/onboarding/status.tsx
@@ -33,7 +33,7 @@ const OnboardingStatus: React.FC<OnboardingStatusProps> = ({
id: crypto.randomUUID(),
provider: "screenpipe-cloud" as const,
url: "https://ai-proxy.i-f9f.workers.dev/v1",
- model: "gpt-4o-mini",
+ model: "claude-haiku-4-5",
maxContextChars: 512000,
defaultPreset: true,
prompt: DEFAULT_PROMPT,
diff --git a/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx b/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx
index b0b447d35..202922896 100644
--- a/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx
+++ b/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx
@@ -16,6 +16,7 @@ import {
TooltipTrigger,
} from "@/components/ui/tooltip";
import { useSettings } from "@/lib/hooks/use-settings";
+import { useLoginDialog } from "@/components/login-dialog";
import { ExportButton } from "../export-button";
import Image from "next/image";
import { AIPresetsSelector } from "../ai-presets-selector";
@@ -70,6 +71,7 @@ export function AIPanel({
const resizerRef = useRef<HTMLDivElement | null>(null);
const { toast } = useToast();
const { selectionRange, setSelectionRange } = useTimelineSelection();
+ const { checkLogin } = useLoginDialog();
const isAvailable = settings.aiPresets && settings.aiPresets.length > 0;
const error = !isAvailable ? "No AI presets configured" : "";
const [activePreset, setActivePreset] = useState<AIPreset | undefined>(undefined);
@@ -220,6 +222,11 @@ export function AIPanel({
e.preventDefault();
if (!selectionRange || !aiInput.trim()) return;
+ // Check login for screenpipe-cloud
+ if (activePreset?.provider === "screenpipe-cloud" && !checkLogin(settings.user)) {
+ return;
+ }
+
// Create new abort controller for this request
abortControllerRef.current = new AbortController();