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
Bump app to v2.4.123, Bump CLI to v0.3.306 — viewer faster/copy + meeting-notes timeline fix — release-app release-cli
Louis Beaumontbf0fe0e68dc6
diff --git a/Cargo.toml b/Cargo.tomlindex 0c5281caf..a496d61a9 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -6,7 +6,7 @@ exclude = ["apps/screenpipe-app-tauri/src-tauri", "crates/screenpipe-integrationresolver = "2"[workspace.package]-version = "0.3.305"+version = "0.3.306"authors = ["louis030195 <[email protected]>"]description = ""repository = "https://github.com/screenpipe/screenpipe"diff --git a/apps/screenpipe-app-tauri/app/viewer/page.tsx b/apps/screenpipe-app-tauri/app/viewer/page.tsxindex b0fefedb5..fe567366c 100644--- a/apps/screenpipe-app-tauri/app/viewer/page.tsx+++ b/apps/screenpipe-app-tauri/app/viewer/page.tsx@@ -6,7 +6,14 @@import { useEffect, useMemo, useState, useCallback, useRef } from "react";import { invoke } from "@tauri-apps/api/core";-import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";+// PrismAsyncLight lazy-loads each language pack only when a code block+// in that language is actually rendered — keeps the initial viewer+// bundle small. The Prism build (root export) eager-imports every+// language definition; first-paint after window-create grew to ~10s in+// `bun tauri dev` because every language module went through the dev+// server. Async-light cuts that to a small base bundle plus per-language+// chunks fetched on demand.+import { PrismAsyncLight as SyntaxHighlighter } from "react-syntax-highlighter";import { coldarkDark, coldarkCold } from "react-syntax-highlighter/dist/cjs/styles/prism";import { MemoizedReactMarkdown } from "@/components/markdown";import remarkGfm from "remark-gfm";@@ -197,6 +204,7 @@ export default function ViewerPage() {const [content, setContent] = useState<ViewerContent | null>(null);const [path, setPath] = useState<string>("");const [copyToast, setCopyToast] = useState(false);+ const [copyContentToast, setCopyContentToast] = useState(false);const isDark = useDarkMode();const mainRef = useRef<HTMLElement | null>(null);@@ -258,6 +266,22 @@ export default function ViewerPage() {}}, [path]);+ // Copy file CONTENT (not the path). For text files we copy the rendered+ // text (JSON gets prettified, others as-is). Disabled for image/binary/+ // error states; the button hides itself when there's nothing to copy.+ const copyContent = useCallback(async () => {+ if (!content || content.kind !== "text" || !content.text) return;+ const text =+ detection?.kind === "json" ? prettifyJson(content.text) : content.text;+ try {+ await invoke("copy_text_to_clipboard", { text });+ setCopyContentToast(true);+ setTimeout(() => setCopyContentToast(false), 1200);+ } catch (e) {+ console.error("copy content failed:", e);+ }+ }, [content, detection]);+const closeWindow = useCallback(async () => {try {const w = await import("@tauri-apps/api/webviewWindow");@@ -281,10 +305,14 @@ export default function ViewerPage() {if (k === "e") { e.preventDefault(); void openInDefault(); }else if (k === "r") { e.preventDefault(); void revealInFinder(); }else if (k === "l") { e.preventDefault(); void copyPath(); }+ // ⇧⌘C copies file content. Plain ⌘C is reserved for the OS-level+ // copy of the user's selection (text they highlighted) — overriding+ // it would steal the natural "select then copy" gesture.+ else if (k === "c" && e.shiftKey) { e.preventDefault(); void copyContent(); }};window.addEventListener("keydown", onKey);return () => window.removeEventListener("keydown", onKey);- }, [openInDefault, revealInFinder, copyPath, closeWindow]);+ }, [openInDefault, revealInFinder, copyPath, copyContent, closeWindow]);const fileName = content && "name" in content ? content.name : path.split("/").pop() || path;const breadcrumb = useMemo(() => pathBreadcrumb(path), [path]);@@ -322,6 +350,16 @@ export default function ViewerPage() {</div><ToolbarButton label="open" shortcut="⌘E" onClick={openInDefault} primary /><ToolbarButton label="reveal" shortcut="⌘R" onClick={revealInFinder} />+ {/* Copy file CONTENT (only meaningful for text files; hidden for+ images / binaries / errors). ⇧⌘C avoids stealing the OS-level+ ⌘C the user expects on their text selection. */}+ {content?.kind === "text" && content.text !== "" && (+ <ToolbarButton+ label={copyContentToast ? "copied" : "copy"}+ shortcut="⇧⌘C"+ onClick={copyContent}+ />+ )}<ToolbarButtonlabel={copyToast ? "copied" : "copy path"}shortcut="⌘L"diff --git a/apps/screenpipe-app-tauri/components/meeting-notes/replay-strip.tsx b/apps/screenpipe-app-tauri/components/meeting-notes/replay-strip.tsxindex d59ee703e..9d3c9bfe3 100644--- a/apps/screenpipe-app-tauri/components/meeting-notes/replay-strip.tsx+++ b/apps/screenpipe-app-tauri/components/meeting-notes/replay-strip.tsx@@ -8,7 +8,6 @@ import { Loader2, Rewind, ExternalLink } from "lucide-react";import { useRouter } from "next/navigation";import { emit } from "@tauri-apps/api/event";import { getApiBaseUrl, appendAuthToken } from "@/lib/api";-import { commands } from "@/lib/utils/tauri";import { useTimelineStore } from "@/lib/hooks/use-timeline-store";import { SpeakerAssignPopover } from "@/components/speaker-assign-popover";import {@@ -241,7 +240,13 @@ export function ReplayStrip({ segments, timeRange }: ReplayStripProps) {// while the user is on the meetings tab — only one ?section= renders).setPendingNavigation({ timestamp: iso });router.push("/home?section=timeline");- try { await commands.showWindow("Main"); } catch {}+ // Note: we used to also call `commands.showWindow("Main")` here as a+ // belt-and-suspenders for the case where the user invoked this from+ // the floating overlay. That popped the separate NSPanel rewind+ // window in addition to the embedded timeline → two surfaces open+ // for the same action. Meeting notes only live inside the home+ // window today, so the embedded timeline is sufficient and the+ // overlay-pop was a regression vector.// Belt-and-suspenders for already-mounted Timeline (e.g. tab swap).setTimeout(() => { void emit("navigate-to-timestamp", iso); }, 250);} catch (e) {diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 675349f53..d39b17c53 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "2.4.122"+version = "2.4.123"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""