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: app build
Louis Beaumont27f90c16bc8e
diff --git a/examples/apps/screenpipe-app-tauri/app/page.tsx b/examples/apps/screenpipe-app-tauri/app/page.tsxindex 3a98db992..37ff6f9bb 100644--- a/examples/apps/screenpipe-app-tauri/app/page.tsx+++ b/examples/apps/screenpipe-app-tauri/app/page.tsx@@ -20,7 +20,7 @@ import { checkForAppUpdates } from "@/components/updater";export default function Home() {const { settings } = useSettings();- console.log("settings", settings);+ // console.log("settings", settings);useEffect(() => {checkForAppUpdates();diff --git a/examples/apps/screenpipe-app-tauri/bun.lockb b/examples/apps/screenpipe-app-tauri/bun.lockbindex 0116c9c97..8644cdd31 100755Binary files a/examples/apps/screenpipe-app-tauri/bun.lockb and b/examples/apps/screenpipe-app-tauri/bun.lockb differdiff --git a/examples/apps/screenpipe-app-tauri/components/header.tsx b/examples/apps/screenpipe-app-tauri/components/header.tsxindex f11e7a476..c8f05b6fa 100644--- a/examples/apps/screenpipe-app-tauri/components/header.tsx+++ b/examples/apps/screenpipe-app-tauri/components/header.tsx@@ -1,3 +1,4 @@+"use client";import Image from "next/image";import { Button } from "@/components/ui/button";import { Settings } from "@/components/settings";diff --git a/examples/apps/screenpipe-app-tauri/components/settings.tsx b/examples/apps/screenpipe-app-tauri/components/settings.tsxindex 29ad3cbe2..e4b8b4b4b 100644--- a/examples/apps/screenpipe-app-tauri/components/settings.tsx+++ b/examples/apps/screenpipe-app-tauri/components/settings.tsx@@ -1,3 +1,4 @@+"use client";import React, { useState } from "react";import { Input } from "@/components/ui/input";import { Label } from "@/components/ui/label";@@ -30,6 +31,7 @@ export function Settings({ className }: { className?: string }) {const { settings, updateSettings } = useSettings();const [localSettings, setLocalSettings] = React.useState(settings);const [isLoading, setIsLoading] = React.useState(false);+ const [currentPlatform, setCurrentPlatform] = React.useState<string>("");const handleApiKeyChange = (e: React.ChangeEvent<HTMLInputElement>) => {setLocalSettings({ ...localSettings, openaiApiKey: e.target.value });@@ -42,53 +44,9 @@ export function Settings({ className }: { className?: string }) {updateSettings({ ...localSettings, useOllama: checked });};- const handleCloudAudioToggle = async (checked: boolean) => {- if (isLoading) return;- setIsLoading(true);- try {- setLocalSettings({ ...localSettings, useCloudAudio: checked });- await updateSettings({ ...localSettings, useCloudAudio: checked });- // Restart screenpipe with new settings- await restartScreenpipe();- // user feedback- await new Promise((resolve) => setTimeout(resolve, 1000));- } catch (error) {- console.error("Failed to update cloud audio setting:", error);- } finally {- setIsLoading(false);- }- };-- const handleCloudOCRToggle = async (checked: boolean) => {- if (isLoading) return;- setIsLoading(true);- try {- setLocalSettings({ ...localSettings, useCloudOcr: checked });- await updateSettings({ ...localSettings, useCloudOcr: checked });- // Restart screenpipe with new settings- await restartScreenpipe();- // user feedback- await new Promise((resolve) => setTimeout(resolve, 1000));- } catch (error) {- console.error("Failed to update cloud OCR setting:", error);- } finally {- setIsLoading(false);- }- };-- const restartScreenpipe = async () => {- try {- await invoke("kill_all_sreenpipes");- // sleep 1s- await new Promise((resolve) => setTimeout(resolve, 1000));- await invoke("spawn_screenpipe");- } catch (error) {- console.error("Failed to restart screenpipe:", error);- }- };-React.useEffect(() => {setLocalSettings(settings);+ setCurrentPlatform(platform());}, [settings]);return (@@ -212,7 +170,7 @@ export function Settings({ className }: { className?: string }) {),}}>- {platform() === "windows"+ {currentPlatform === "windows"? "You need to [install Ollama](https://ollama.com/) and run `set OLLAMA_ORIGINS=* && ollama run llama3.1` first. Currently only supports Llama 3.1": "You need to [install Ollama](https://ollama.com/) and run `ollama run llama3.1` first. Currently only supports Llama 3.1"}</MemoizedReactMarkdown>diff --git a/examples/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/examples/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex abf27774e..de7091f98 100644--- a/examples/apps/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/examples/apps/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "0.1.17"+version = "0.1.18"description = ""authors = ["you"]license = ""