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: disable chat history
Louis Beaumont99196605eed9
diff --git a/screenpipe-app-tauri/app/page.tsx b/screenpipe-app-tauri/app/page.tsxindex c49c0c681..a09d66d52 100644--- a/screenpipe-app-tauri/app/page.tsx+++ b/screenpipe-app-tauri/app/page.tsx@@ -72,19 +72,19 @@ export default function Home() {};return (- <SidebarProvider defaultOpen={false}>- {settings.aiUrl && (- <AppSidebar- searches={searches}- currentSearchId={currentSearchId}- onSelectSearch={setCurrentSearchId}- onDeleteSearch={deleteSearch}- />- )}- <SidebarInset>+ // <SidebarProvider defaultOpen={false}>+ // {settings.aiUrl && (+ // <AppSidebar+ // searches={searches}+ // currentSearchId={currentSearchId}+ // onSelectSearch={setCurrentSearchId}+ // onDeleteSearch={deleteSearch}+ // />+ // )}+ // <SidebarInset><div className="flex flex-col items-center flex-1"><div className="fixed top-4 left-4 z-50 flex items-center gap-2">- <SidebarTrigger className="h-8 w-8" />+ {/* <SidebarTrigger className="h-8 w-8" /> */}<Buttonvariant="ghost"size="icon"@@ -176,7 +176,7 @@ export default function Home() {</div>)}</div>- </SidebarInset>- </SidebarProvider>+ // </SidebarInset>+ // </SidebarProvider>);}diff --git a/screenpipe-app-tauri/components/header.tsx b/screenpipe-app-tauri/components/header.tsxindex 2ccee13b3..8e24c9b9a 100644--- a/screenpipe-app-tauri/components/header.tsx+++ b/screenpipe-app-tauri/components/header.tsx@@ -4,12 +4,7 @@ import { Button } from "@/components/ui/button";import { Settings } from "@/components/settings";import { PrettyLink } from "@/components/pretty-link";import HealthStatus from "@/components/screenpipe-status";-import {- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@/components/ui/tooltip";+import React from "react";import PipeDialog from "@/components/pipe-store";import MeetingHistory from "@/components/meeting-history";@@ -31,24 +26,7 @@ import { useHealthCheck } from "@/lib/hooks/use-health-check";import { Skeleton } from "@/components/ui/skeleton";import { useChangelogDialog } from "@/lib/hooks/use-changelog-dialog";-function IconNewChat() {- return (- <svg- width="15"- height="15"- viewBox="0 0 15 15"- fill="none"- xmlns="http://www.w3.org/2000/svg"- >- <path- d="M12.1464 1.14645C12.3417 0.951184 12.6583 0.951184 12.8535 1.14645L14.8535 3.14645C15.0488 3.34171 15.0488 3.65829 14.8535 3.85355L10.9109 7.79618C10.8349 7.87218 10.7471 7.93543 10.651 7.9835L6.72359 9.94721C6.53109 10.0435 6.29861 10.0057 6.14643 9.85355C5.99425 9.70137 5.95652 9.46889 6.05277 9.27639L8.01648 5.34897C8.06455 5.25283 8.1278 5.16507 8.2038 5.08907L12.1464 1.14645ZM12.5 2.20711L8.91091 5.79618L7.87266 7.87267L8.12731 8.12732L10.2038 7.08907L13.7929 3.5L12.5 2.20711ZM9.99998 2L8.99998 3H4.9C4.47171 3 4.18056 3.00039 3.95552 3.01877C3.73631 3.03668 3.62421 3.06915 3.54601 3.10899C3.35785 3.20487 3.20487 3.35785 3.10899 3.54601C3.06915 3.62421 3.03669 3.73631 3.01878 3.95552C3.00039 4.18056 3 4.47171 3 4.9V11.1C3 11.5283 3.00039 11.8194 3.01878 12.0445C3.03669 12.2637 3.06915 12.3758 3.10899 12.454C3.20487 12.6422 3.35785 12.7951 3.54601 12.891C3.62421 12.9309 3.73631 12.9633 3.95552 12.9812C4.18056 12.9996 4.47171 13 4.9 13H11.1C11.5283 13 11.8194 12.9996 12.0445 12.9812C12.2637 12.9633 12.3758 12.9309 12.454 12.891C12.6422 12.7951 12.7951 12.6422 12.891 12.454C12.9309 12.3758 12.9633 12.2637 12.9812 12.0445C12.9996 11.8194 13 11.5283 13 11.1V6.99998L14 5.99998V11.1V11.1207C14 11.5231 14 11.8553 13.9779 12.1259C13.9549 12.407 13.9057 12.6653 13.782 12.908C13.5903 13.2843 13.2843 13.5903 12.908 13.782C12.6653 13.9057 12.407 13.9549 12.1259 13.9779C11.8553 14 11.5231 14 11.1207 14H11.1H4.9H4.87934C4.47686 14 4.14468 14 3.87409 13.9779C3.59304 13.9549 3.33469 13.9057 3.09202 13.782C2.7157 13.5903 2.40973 13.2843 2.21799 12.908C2.09434 12.6653 2.04506 12.407 2.0221 12.1259C1.99999 11.8553 1.99999 11.5231 2 11.1207V11.1206V11.1V4.9V4.87935V4.87931C1.99999 4.47685 1.99999 4.14468 2.0221 3.87409C2.04506 3.59304 2.09434 3.33469 2.21799 3.09202C2.40973 2.71569 2.7157 2.40973 3.09202 2.21799C3.33469 2.09434 3.59304 2.04506 3.87409 2.0221C4.14468 1.99999 4.47685 1.99999 4.87932 2H4.87935H4.9H9.99998Z"- fill="currentColor"- fillRule="evenodd"- clipRule="evenodd"- ></path>- </svg>- );-}+export default function Header() {const [showInbox, setShowInbox] = useState(false);@@ -120,26 +98,6 @@ export default function Header() {<HeaderSkeleton />) : (<>- <div className="absolute left-8 top-4">- {/* <TooltipProvider>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="secondary"- className="cursor-pointer"- onClick={() => {- location.reload();- }}- >- <IconNewChat />- </Button>- </TooltipTrigger>- <TooltipContent>- <p>New chat</p>- </TooltipContent>- </Tooltip>- </TooltipProvider> */}- </div><div className="relative z-[-1] flex flex-col items-center"><div className="relative flex flex-col items-center before:absolute before:h-[300px] before:w-full before:-translate-x-1/2 before:rounded-full before:bg-gradient-radial before:from-white before:to-transparent before:blur-2xl before:content-[''] after:absolute after:-z-20 after:h-[180px] after:w-full after:translate-x-1/3 after:bg-gradient-conic after:from-sky-200 after:via-blue-200 after:blur-2xl after:content-[''] before:dark:bg-gradient-to-br before:dark:from-transparent before:dark:to-blue-700 before:dark:opacity-10 after:dark:from-sky-900 after:dark:via-[#0141ff] after:dark:opacity-40 sm:before:w-[480px] sm:after:w-[240px] before:lg:h-[360px] gap-4"><div className="w-[180px] h-[50px]" />@@ -226,9 +184,6 @@ export default function Header() {function HeaderSkeleton() {return (<div className="w-full">- <div className="absolute left-8 top-4">- <Skeleton className="w-10 h-10 rounded-md" />- </div><div className="flex justify-center"><Skeleton className="w-[180px] h-[50px] mt-4" /></div>diff --git a/screenpipe-app-tauri/components/timeline/current-time-indicator.tsx b/screenpipe-app-tauri/components/timeline/current-time-indicator.tsxdeleted file mode 100644index e050cec21..000000000--- a/screenpipe-app-tauri/components/timeline/current-time-indicator.tsx+++ /dev/null@@ -1,63 +0,0 @@-import { cn } from "@/lib/utils";--interface CurrentTimeIndicatorProps {- currentFrame: {- metadata: {- timestamp: string;- };- } | null;- frames: any[]; // Replace with your StreamTimeSeriesResponse type- currentIndex: number;- timeRange: {- start: Date;- end: Date;- };- className?: string;-}--export function CurrentTimeIndicator({- currentFrame,- frames,- currentIndex,- timeRange,- className,-}: CurrentTimeIndicatorProps) {- const getCurrentTimePercentage = () => {- if (!currentFrame) return 0;-- const frameTime = new Date(- currentFrame.metadata.timestamp || frames[currentIndex].timestamp || ""- );-- const totalMs = timeRange.end.getTime() - timeRange.start.getTime();- const currentMs = frameTime.getTime() - timeRange.start.getTime();-- return (currentMs / totalMs) * 100;- };-- if (!currentFrame) return null;-- return (- <div- className={cn(- "absolute top-0 bottom-0 flex flex-col items-center pointer-events-none z-10",- className- )}- style={{- left: `${Math.max(0, Math.min(100, getCurrentTimePercentage()))}%`,- }}- >- <div className="w-0.5 h-full bg-foreground/50" />- <div className="absolute bottom-[-20px] text-xs text-foreground bg-background px-1 rounded-sm border whitespace-nowrap">- {new Date(- currentFrame.metadata.timestamp ||- frames[currentIndex].timestamp ||- ""- ).toLocaleTimeString([], {- hour: "2-digit",- minute: "2-digit",- })}- </div>- </div>- );-}diff --git a/screenpipe-app-tauri/components/timeline/time-labels.tsx b/screenpipe-app-tauri/components/timeline/time-labels.tsxdeleted file mode 100644index 6c8394746..000000000--- a/screenpipe-app-tauri/components/timeline/time-labels.tsx+++ /dev/null@@ -1,48 +0,0 @@-import { cn } from "@/lib/utils";--interface TimeLabelsProps {- timeRange: {- start: Date;- end: Date;- };- className?: string;-}--export function TimeLabels({ timeRange, className }: TimeLabelsProps) {- const totalHours =- (timeRange.end.getTime() - timeRange.start.getTime()) / (1000 * 60 * 60);- const labelCount = Math.min(7, Math.ceil(totalHours / 2)); // One label every ~2 hours, max 7 labels-- return (- <div- className={cn(- "flex items-center justify-start px-6 text-[10px] text-muted-foreground absolute bottom-2 w-full",- className- )}- >- {Array(labelCount)- .fill(0)- .map((_, i) => {- const msPerLabel =- (timeRange.end.getTime() - timeRange.start.getTime()) /- (labelCount - 1);- const timestamp = new Date(- timeRange.start.getTime() + i * msPerLabel- );-- return (- <div- key={i}- className="absolute transform -translate-x-1/2"- style={{ left: `${(i * 100) / (labelCount - 1)}%` }}- >- {timestamp.toLocaleTimeString([], {- hour: "2-digit",- minute: "2-digit",- })}- </div>- );- })}- </div>- );-}diff --git a/screenpipe-app-tauri/components/timeline/timeline-dock-section.tsx b/screenpipe-app-tauri/components/timeline/timeline-dock-section.tsxindex e2459d430..bfc33c02c 100644--- a/screenpipe-app-tauri/components/timeline/timeline-dock-section.tsx+++ b/screenpipe-app-tauri/components/timeline/timeline-dock-section.tsx@@ -3,6 +3,7 @@ import { platform } from "@tauri-apps/plugin-os";import { invoke } from "@tauri-apps/api/core";import { StreamTimeSeriesResponse } from "@/app/timeline/page";import { stringToColor } from "@/lib/utils";+import { motion, useAnimation } from "framer-motion";interface ProcessedBlock {appName: string;@@ -17,6 +18,7 @@ export function TimelineIconsSection({blocks: StreamTimeSeriesResponse[];}) {const [iconCache, setIconCache] = useState<{ [key: string]: string }>({});+ const [hoveredIndex, setHoveredIndex] = useState<number | null>(null);// Get the visible time rangeconst timeRange = useMemo(() => {@@ -153,23 +155,38 @@ export function TimelineIconsSection({}, [processedBlocks, loadAppIcon]);return (- <div className="absolute -top-8 inset-x-0 pointer-events-none h-8">+ <div className="absolute -top-8 inset-x-0 h-8">{processedBlocks.map((block, i) => {const bgColor = stringToColor(block.appName);+return (- <div+ <motion.divkey={`${block.appName}-${i}`}- className="absolute top-0 h-full w-full"+ className="absolute top-0 h-full pointer-events-auto cursor-pointer"style={{left: `${block.percentThroughDay}%`,- transform: "translateX(-50%)",+ transform: 'translateX(-50%)',+ border: '1px solid red',+ zIndex: 50,+ }}+ onMouseEnter={() => {+ console.log('hover on:', block.appName);+ }}+ whileHover={{+ scale: 1.5,+ backgroundColor: 'red',+ }}+ transition={{+ type: "spring",+ stiffness: 300,+ damping: 30}}>{block.iconSrc ? (- <div+ <motion.divclassName="w-5 h-5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full"style={{- backgroundColor: `${bgColor}40`, // 40 is for 25% opacity+ backgroundColor: `${bgColor}40`,padding: "2px",}}>@@ -180,14 +197,14 @@ export function TimelineIconsSection({loading="lazy"decoding="async"/>- </div>+ </motion.div>) : (- <div+ <motion.divclassName="w-5 h-5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full"style={{ backgroundColor: bgColor }}/>)}- </div>+ </motion.div>);})}</div>diff --git a/screenpipe-app-tauri/components/timeline/timeline-dock.tsx b/screenpipe-app-tauri/components/timeline/timeline-dock.tsxdeleted file mode 100644index d5f171ada..000000000--- a/screenpipe-app-tauri/components/timeline/timeline-dock.tsx+++ /dev/null@@ -1,156 +0,0 @@-import React, { useMemo } from "react";-import { motion, AnimatePresence } from "framer-motion";-import { cn } from "@/lib/utils";-import { debounce } from "lodash";--interface TimelineDockProps {- children: React.ReactNode;- magnification?: number;- distance?: number;- className?: string;-}--interface TimelineDockIconProps {- children: React.ReactNode;- className?: string;- timestamp?: Date;- appName?: string;- mouseX?: number | null;- index?: number;- magnification?: number;- distance?: number;- style?: React.CSSProperties;-}--export function TimelineDock({- children,- magnification = 2,- distance = 100,- className,-}: TimelineDockProps) {- const [mouseX, setMouseX] = React.useState<null | number>(null);-- // Debounce mouse move handler- const handleMouseMove = useMemo(- () =>- debounce((e: React.MouseEvent) => {- if (!e.currentTarget) return;- const bounds = e.currentTarget.getBoundingClientRect();- setMouseX(e.clientX - bounds.left);- }, 16), // ~60fps- []- );-- return (- <motion.div- onMouseMove={handleMouseMove}- onMouseLeave={() => setMouseX(null)}- className={cn(- "flex items-center justify-start h-8 relative px-2 w-full",- className- )}- >- {useMemo(- () =>- React.Children.map(children, (child, index) => {- if (!React.isValidElement(child)) return null;- return React.cloneElement(- child as React.ReactElement<TimelineDockIconProps>,- {- mouseX,- index,- magnification,- distance,- }- );- }),- [children, mouseX, magnification, distance]- )}- </motion.div>- );-}--// Memoize the TimelineDockIcon component-export const TimelineDockIcon = React.memo(function TimelineDockIcon({- children,- className,- timestamp,- appName,- mouseX,- index,- magnification = 2,- distance = 50,- style,-}: TimelineDockIconProps) {- const ref = React.useRef<HTMLDivElement>(null);-- // Calculate scale based on percentage position rather than pixel position- let scale = 1;- let isClosest = false;- let spacing = 0;-- if (mouseX != null && style?.left) {- // Convert left percentage to actual position- const iconPosition = parseFloat(style.left as string);- const mousePosition =- (mouseX / (ref.current?.parentElement?.offsetWidth || 1)) * 100;-- // Calculate distance as percentage difference- const distanceFromMouse = Math.abs(mousePosition - iconPosition);-- if (distanceFromMouse < 15) {- // Increased distance threshold to 15%- scale = Math.max(- 1,- magnification - (distanceFromMouse / 15) * (magnification - 1)- );-- spacing = scale > 1 ? 4 * (1 - distanceFromMouse / 15) : 0;- isClosest = distanceFromMouse < 5; // Increased tooltip threshold to 5%- }- }-- const yOffset = scale > 1 ? (scale - 1) * 16 : 0;- const xOffset = mouseX != null ? spacing : 0;-- return (- <motion.div- ref={ref}- style={{- scale,- y: -yOffset,- x: xOffset,- zIndex: scale > 1 ? 1 : 0,- position: "absolute",- transform: `translate(-50%, -50%)`,- ...style,- }}- transition={{- type: "spring",- stiffness: 400,- damping: 25,- }}- className={cn(- "flex items-center justify-center w-4 h-4 origin-center",- className- )}- >- <div className="relative flex items-center justify-center">- {children}- <AnimatePresence>- {isClosest && (- <motion.div- initial={{ opacity: 0, y: -10 }}- animate={{ opacity: 1, y: 0 }}- exit={{ opacity: 0, y: -10 }}- className="absolute top-full mt-2 left-1/2 -translate-x-1/2 flex flex-col items-center bg-background/80 backdrop-blur-sm px-2 py-1 rounded-md border shadow-sm text-xs whitespace-nowrap"- >- <span>{appName}</span>- <span>{timestamp?.toLocaleTimeString()}</span>- </motion.div>- )}- </AnimatePresence>- </div>- </motion.div>- );-});diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lockindex 951c97259..3dbbe5c9c 100755--- a/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -3777,7 +3777,7 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"[[package]]name = "screenpipe-app"-version = "0.9.24"+version = "0.9.29"dependencies = ["anyhow","axum",diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 1a157ec63..e09df6786 100644--- a/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "0.9.28"+version = "0.9.29"description = ""authors = ["you"]license = ""