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: Windows taskbar, shortcut overlay, chat focus, and icon lookup
Louis Beaumont5c4138ec493f
diff --git a/apps/screenpipe-app-tauri/app/shortcut-reminder/page.tsx b/apps/screenpipe-app-tauri/app/shortcut-reminder/page.tsxindex efe7bf12f..3171d7128 100644--- a/apps/screenpipe-app-tauri/app/shortcut-reminder/page.tsx+++ b/apps/screenpipe-app-tauri/app/shortcut-reminder/page.tsx@@ -4,10 +4,12 @@"use client";-import { useEffect, useState, useCallback } from "react";+import { useEffect, useState, useCallback, useRef } from "react";import { listen } from "@tauri-apps/api/event";import { getCurrentWindow } from "@tauri-apps/api/window";import { invoke } from "@tauri-apps/api/core";+import { readTextFile } from "@tauri-apps/plugin-fs";+import { homeDir } from "@tauri-apps/api/path";import posthog from "posthog-js";import { usePlatform } from "@/lib/hooks/use-platform";import { getStore } from "@/lib/hooks/use-settings";@@ -22,61 +24,57 @@ export default function ShortcutReminderPage() {const [overlayShortcut, setOverlayShortcut] = useState<string | null>(null);const [chatShortcut, setChatShortcut] = useState<string | null>(null);const overlayData = useOverlayData();+ const isMacRef = useRef(isMac);+ isMacRef.current = isMac;- // Load shortcuts from store on mount- useEffect(() => {- const loadShortcutsFromStore = async () => {- try {- const store = await getStore();- const settings = await store.get<{- showScreenpipeShortcut?: string;- showChatShortcut?: string;- }>("settings");- if (settings?.showScreenpipeShortcut) {- setOverlayShortcut(formatShortcut(settings.showScreenpipeShortcut, isMac));- }- if (settings?.showChatShortcut) {- setChatShortcut(formatShortcut(settings.showChatShortcut, isMac));- }- } catch (e) {- console.error("Failed to load shortcuts from store:", e);+ // Read shortcuts directly from the store.bin file on disk (bypasses TS store plugin)+ const loadShortcutsFromFile = useCallback(async () => {+ try {+ const home = await homeDir();+ const raw = await readTextFile(`${home}/.screenpipe/store.bin`);+ const data = JSON.parse(raw);+ const settings = data?.settings;+ if (settings?.showScreenpipeShortcut) {+ setOverlayShortcut(formatShortcut(settings.showScreenpipeShortcut, isMacRef.current));}- };- if (!isLoading) {- loadShortcutsFromStore();+ if (settings?.showChatShortcut) {+ setChatShortcut(formatShortcut(settings.showChatShortcut, isMacRef.current));+ }+ } catch (e) {+ console.error("Failed to read shortcuts from store file:", e);}- }, [isLoading, isMac]);+ }, []);- // Set default shortcuts once platform is detected (fallback if store fails)+ // Load shortcuts on mount + listen for updatesuseEffect(() => {- if (!isLoading && overlayShortcut === null) {- setOverlayShortcut(isMac ? "⌘⌃S" : "Alt+S");- }- if (!isLoading && chatShortcut === null) {- setChatShortcut(isMac ? "⌘⌃L" : "Alt+L");- }- }, [isMac, isLoading, overlayShortcut, chatShortcut]);+ if (isLoading) return;++ // Initial load from file+ loadShortcutsFromFile().then(() => {+ // Set platform-appropriate defaults if file had no values+ setOverlayShortcut(prev => prev ?? (isMac ? "⌘⌃S" : "Alt+S"));+ setChatShortcut(prev => prev ?? (isMac ? "⌘⌃L" : "Alt+L"));+ });++ // Also listen for store changes via plugin (for live updates when user changes shortcuts)+ let unlistenStore: (() => void) | null = null;+ getStore().then(store => {+ store.onKeyChange("settings", () => {+ loadShortcutsFromFile();+ }).then(unlisten => {+ unlistenStore = unlisten;+ });+ }).catch(() => {});++ return () => {+ unlistenStore?.();+ };+ }, [isLoading, isMac, loadShortcutsFromFile]);useEffect(() => {- // Listen for shortcut updates and reload both from store- const unlistenShortcut = listen<string>("shortcut-reminder-update", async () => {- if (!isLoading) {- try {- const store = await getStore();- const settings = await store.get<{- showScreenpipeShortcut?: string;- showChatShortcut?: string;- }>("settings");- if (settings?.showScreenpipeShortcut) {- setOverlayShortcut(formatShortcut(settings.showScreenpipeShortcut, isMac));- }- if (settings?.showChatShortcut) {- setChatShortcut(formatShortcut(settings.showChatShortcut, isMac));- }- } catch (e) {- console.error("Failed to reload shortcuts:", e);- }- }+ // Listen for explicit shortcut-reminder-update event (from Rust side)+ const unlistenShortcut = listen<string>("shortcut-reminder-update", () => {+ loadShortcutsFromFile();});posthog.capture("shortcut_reminder_shown");@@ -84,7 +82,7 @@ export default function ShortcutReminderPage() {return () => {unlistenShortcut.then((fn) => fn());};- }, [isMac, isLoading]);+ }, [loadShortcutsFromFile]);// Use Tauri's native startDragging for window movementconst handleMouseDown = useCallback(async (e: React.MouseEvent) => {@@ -256,7 +254,7 @@ export default function ShortcutReminderPage() {/*** Format a shortcut string for display.* On macOS: replace modifier names with compact symbols (⌘, ⌃, ⌥, ⇧).- * On other platforms: show the actual key names as configured.+ * On Windows/Linux: translate to platform-standard names (Super→Win, Control→Ctrl).*/function formatShortcut(shortcut: string, isMac: boolean): string {if (!shortcut) return "";@@ -273,8 +271,14 @@ function formatShortcut(shortcut: string, isMac: boolean): string {return parts.map(p => macSymbols[p] || p.toUpperCase()).join("");}- // Windows/Linux: show exactly what the user set, just capitalized+ // Windows/Linux: translate modifier names to platform-standard display+ const winNames: Record<string, string> = {+ super: "Win", command: "Win", cmd: "Win", meta: "Win",+ ctrl: "Ctrl", control: "Ctrl",+ alt: "Alt", option: "Alt",+ shift: "Shift",+ };return parts- .map(p => p.charAt(0).toUpperCase() + p.slice(1))+ .map(p => winNames[p] || p.toUpperCase()).join("+");}diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lockindex 5d3761a4a..4d217a5bc 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -409,7 +409,7 @@ dependencies = ["clipboard-win","image 0.25.9","log",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-app-kit","objc2-core-foundation","objc2-core-graphics",@@ -1138,7 +1138,7 @@ version = "0.6.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5"dependencies = [- "objc2 0.6.4",+ "objc2 0.6.3",][[package]]@@ -1483,7 +1483,7 @@ dependencies = [[[package]]name = "cidre"version = "0.14.2"-source = "git+https://github.com/yury/cidre.git#72fdc77d6d4e35622e011627ebaadbb76f0c6c85"+source = "git+https://github.com/yury/cidre.git#fbed56a4990ca3703bf127e04b6aba5f68bcf89b"dependencies = ["cidre-macros 0.5.0","half",@@ -2471,14 +2471,14 @@ checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b"[[package]]name = "dispatch2"-version = "0.3.1"+version = "0.3.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38"+checksum = "89a09f22a6c6069a18470eb92d2298acf25463f14256d24778e1230d789a2aec"dependencies = ["bitflags 2.11.0","block2 0.6.2","libc",- "objc2 0.6.4",+ "objc2 0.6.3",][[package]]@@ -2494,9 +2494,9 @@ dependencies = [[[package]]name = "dlib"-version = "0.5.3"+version = "0.5.2"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ab8ecd87370524b461f8557c119c405552c396ed91fc0a8eec68679eab26f94a"+checksum = "330c60081dcc4c72131f8eb70510f1ac07223e5d4163db481a04a0befcffa412"dependencies = ["libloading 0.8.9",]@@ -2565,27 +2565,26 @@ dependencies = [[[package]]name = "drm"-version = "0.14.2"+version = "0.14.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c5b71449a23fe79542d6527ca572844b2016abf9573c49e43144d546b1735aec"+checksum = "80bc8c5c6c2941f70a55c15f8d9f00f9710ebda3ffda98075f996a0e6c92756f"dependencies = ["bitflags 2.11.0","bytemuck",- "bytemuck_derive","drm-ffi","drm-fourcc","libc",- "rustix 1.1.4",+ "rustix 0.38.44",][[package]]name = "drm-ffi"-version = "0.9.1"+version = "0.9.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "51a91c9b32ac4e8105dec255e849e0d66e27d7c34d184364fb93e469db08f690"+checksum = "d8e41459d99a9b529845f6d2c909eb9adf3b6d2f82635ae40be8de0601726e8b"dependencies = ["drm-sys",- "rustix 1.1.4",+ "rustix 0.38.44",][[package]]@@ -2596,12 +2595,12 @@ checksum = "0aafbcdb8afc29c1a7ee5fbe53b5d62f4565b35a042a662ca9fecd0b54dae6f4"[[package]]name = "drm-sys"-version = "0.8.1"+version = "0.8.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ecc8e1361066d91f5ffccff060a3c3be9c3ecde15be2959c1937595f7a82a9f8"+checksum = "bafb66c8dbc944d69e15cfcc661df7e703beffbaec8bd63151368b06c5f9858c"dependencies = ["libc",- "linux-raw-sys 0.9.4",+ "linux-raw-sys 0.6.5",][[package]]@@ -2839,7 +2838,7 @@ dependencies = ["block2 0.6.2","chrono","clap",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-event-kit","objc2-foundation 0.3.2","thiserror 2.0.18",@@ -3624,7 +3623,7 @@ checksum = "b9247516746aa8e53411a0db9b62b0e24efbcf6a76e0ba73e5a91b512ddabed7"dependencies = ["crossbeam-channel","keyboard-types",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-app-kit","once_cell","serde",@@ -4581,9 +4580,9 @@ dependencies = [[[package]]name = "js-sys"-version = "0.3.90"+version = "0.3.89"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "14dc6f6450b3f6d4ed5b16327f38fed626d375a886159ca555bd7822c0c3a5a6"+checksum = "f4eacb0641a310445a4c513f2a5e23e19952e269c6a38887254d5f837a305506"dependencies = ["once_cell","wasm-bindgen",@@ -4944,9 +4943,9 @@ checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"[[package]]name = "linux-raw-sys"-version = "0.9.4"+version = "0.6.5"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12"+checksum = "2a385b1be4e5c3e362ad2ffa73c392e53f031eaa5b7d648e64cd87f27f6063d7"[[package]]name = "linux-raw-sys"@@ -5051,7 +5050,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "65fd3f75411f4725061682ed91f131946e912859d0044d39c4ec0aac818d7621"dependencies = ["cc",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-foundation 0.3.2","time",]@@ -5354,7 +5353,7 @@ dependencies = ["dpi","gtk","keyboard-types",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-app-kit","objc2-core-foundation","objc2-foundation 0.3.2",@@ -5860,9 +5859,9 @@ dependencies = [[[package]]name = "objc2"-version = "0.6.4"+version = "0.6.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f"+checksum = "b7c2599ce0ec54857b29ce62166b0ed9b4f6f1a70ccc9a71165b6154caca8c05"dependencies = ["objc2-encode","objc2-exception-helper",@@ -5877,7 +5876,7 @@ dependencies = ["bitflags 2.11.0","block2 0.6.2","libc",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-cloud-kit","objc2-core-data","objc2-core-foundation",@@ -5898,7 +5897,7 @@ dependencies = ["bitflags 2.11.0","block2 0.6.2","dispatch2",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-avf-audio","objc2-core-audio-types","objc2-core-foundation",@@ -5917,7 +5916,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "13a380031deed8e99db00065c45937da434ca987c034e13b87e4441f9e4090be"dependencies = [- "objc2 0.6.4",+ "objc2 0.6.3","objc2-foundation 0.3.2",]@@ -5928,7 +5927,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c"dependencies = ["bitflags 2.11.0",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-foundation 0.3.2",]@@ -5939,7 +5938,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e1eebcea8b0dbff5f7c8504f3107c68fc061a3eb44932051c8cf8a68d969c3b2"dependencies = ["dispatch2",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-core-audio-types","objc2-core-foundation",]@@ -5951,7 +5950,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "5a89f2ec274a0cf4a32642b2991e8b351a404d290da87bb6a9a9d8632490bd1c"dependencies = ["bitflags 2.11.0",- "objc2 0.6.4",+ "objc2 0.6.3",][[package]]@@ -5961,7 +5960,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa"dependencies = ["bitflags 2.11.0",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-foundation 0.3.2",]@@ -5975,7 +5974,7 @@ dependencies = ["block2 0.6.2","dispatch2","libc",- "objc2 0.6.4",+ "objc2 0.6.3",][[package]]@@ -5988,7 +5987,7 @@ dependencies = ["block2 0.6.2","dispatch2","libc",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-core-foundation","objc2-io-surface","objc2-metal",@@ -6000,7 +5999,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006"dependencies = [- "objc2 0.6.4",+ "objc2 0.6.3","objc2-foundation 0.3.2",]@@ -6010,7 +6009,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009"dependencies = [- "objc2 0.6.4",+ "objc2 0.6.3","objc2-foundation 0.3.2",]@@ -6023,7 +6022,7 @@ dependencies = ["bitflags 2.11.0","block2 0.6.2","dispatch2",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-core-audio","objc2-core-audio-types","objc2-core-foundation",@@ -6037,7 +6036,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d"dependencies = ["bitflags 2.11.0",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-core-foundation","objc2-core-graphics",]@@ -6050,7 +6049,7 @@ checksum = "d425caf1df73233f29fd8a5c3e5edbc30d2d4307870f802d18f00d83dc5141a6"dependencies = ["bitflags 2.11.0","block2 0.6.2",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-core-foundation","objc2-core-graphics","objc2-io-surface",@@ -6071,7 +6070,7 @@ checksum = "51bc9ad7325642172110196bacd6af64027ec5549ded7fc6589ea03e0f792bf8"dependencies = ["bitflags 2.11.0","block2 0.6.2",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-app-kit","objc2-core-graphics","objc2-core-location",@@ -6109,7 +6108,7 @@ dependencies = ["bitflags 2.11.0","block2 0.6.2","libc",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-core-foundation",]@@ -6119,7 +6118,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "32b0446e98cf4a784cc7a0177715ff317eeaa8463841c616cfc78aa4f953c4ea"dependencies = [- "objc2 0.6.4",+ "objc2 0.6.3","objc2-core-foundation","objc2-core-graphics",]@@ -6131,7 +6130,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"dependencies = ["bitflags 2.11.0",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-core-foundation",]@@ -6141,7 +6140,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "2a1e6550c4caed348956ce3370c9ffeca70bb1dbed4fa96112e7c6170e074586"dependencies = [- "objc2 0.6.4",+ "objc2 0.6.3","objc2-core-foundation",]@@ -6151,7 +6150,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "579edede1c244621cd8229b70ea6e20e6ec3bab5a74afdfd494b446b681e1e64"dependencies = [- "objc2 0.6.4",+ "objc2 0.6.3","objc2-foundation 0.3.2",]@@ -6161,7 +6160,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "edd9fdde720df3da7046bb9097811000c1e7ab5cd579fa89d96b27d56781fb30"dependencies = [- "objc2 0.6.4",+ "objc2 0.6.3","objc2-core-audio-types","objc2-core-foundation","objc2-core-media",@@ -6174,7 +6173,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "a0125f776a10d00af4152d74616409f0d4a2053a6f57fa5b7d6aa2854ac04794"dependencies = ["bitflags 2.11.0",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-foundation 0.3.2",]@@ -6185,7 +6184,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f112d1746737b0da274ef79a23aac283376f335f4095a083a267a082f21db0c0"dependencies = ["bitflags 2.11.0",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-app-kit","objc2-foundation 0.3.2",]@@ -6197,7 +6196,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f"dependencies = ["bitflags 2.11.0",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-core-foundation","objc2-foundation 0.3.2",]@@ -6209,7 +6208,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "709fe137109bd1e8b5a99390f77a7d8b2961dafc1a1c5db8f2e60329ad6d895a"dependencies = ["bitflags 2.11.0",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-core-foundation",]@@ -6221,7 +6220,7 @@ checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22"dependencies = ["bitflags 2.11.0","block2 0.6.2",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-cloud-kit","objc2-core-data","objc2-core-foundation",@@ -6240,7 +6239,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e"dependencies = [- "objc2 0.6.4",+ "objc2 0.6.3","objc2-foundation 0.3.2",]@@ -6252,7 +6251,7 @@ checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f"dependencies = ["bitflags 2.11.0","block2 0.6.2",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-app-kit","objc2-core-foundation","objc2-foundation 0.3.2",@@ -6463,7 +6462,7 @@ dependencies = ["android_system_properties","log","nix 0.30.1",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-foundation 0.3.2","objc2-ui-kit","serde",@@ -6486,7 +6485,7 @@ version = "0.3.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "732c71caeaa72c065bb69d7ea08717bd3f4863a4f451402fc9513e29dbd5261b"dependencies = [- "objc2 0.6.4",+ "objc2 0.6.3","objc2-foundation 0.3.2","objc2-osa-kit","serde",@@ -7681,7 +7680,7 @@ dependencies = ["gtk-sys","js-sys","log",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-app-kit","objc2-core-foundation","objc2-foundation 0.3.2",@@ -7694,9 +7693,9 @@ dependencies = [[[package]]name = "rgb"-version = "0.8.53"+version = "0.8.52"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "47b34b781b31e5d73e9fbc8689c70551fd1ade9a19e3e28cfec8580a79290cc4"+checksum = "0c6a884d2998352bb4daf0183589aec883f16a6da1f4dde84d8e2e9a5409a1ce"dependencies = ["bytemuck",]@@ -8098,7 +8097,7 @@ dependencies = [[[package]]name = "screenpipe-app"-version = "2.0.569"+version = "2.0.567"dependencies = ["anyhow","arboard",@@ -8128,7 +8127,7 @@ dependencies = ["nokhwa-bindings-macos","notify","objc",- "objc2 0.6.4",+ "objc2 0.6.3","once_cell","raw-window-handle","regex",@@ -8193,7 +8192,7 @@ dependencies = [[[package]]name = "screenpipe-audio"-version = "0.3.158"+version = "0.3.157"dependencies = ["anyhow","bytemuck",@@ -8244,7 +8243,7 @@ dependencies = [[[package]]name = "screenpipe-core"-version = "0.3.158"+version = "0.3.157"dependencies = ["accessibility","accessibility-sys",@@ -8285,7 +8284,7 @@ dependencies = [[[package]]name = "screenpipe-db"-version = "0.3.158"+version = "0.3.157"dependencies = ["anyhow","chrono",@@ -8310,7 +8309,7 @@ dependencies = [[[package]]name = "screenpipe-events"-version = "0.3.158"+version = "0.3.157"dependencies = ["anyhow","chrono",@@ -8326,14 +8325,14 @@ dependencies = [[[package]]name = "screenpipe-integrations"-version = "0.3.158"+version = "0.3.157"dependencies = ["anyhow","chrono","eventkit-rs","image 0.25.9","log",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-event-kit","objc2-foundation 0.3.2","reqwest 0.12.12",@@ -8346,7 +8345,7 @@ dependencies = [[[package]]name = "screenpipe-server"-version = "0.3.158"+version = "0.3.157"dependencies = ["anyhow","async-trait",@@ -8401,7 +8400,7 @@ dependencies = [[[package]]name = "screenpipe-vision"-version = "0.3.158"+version = "0.3.157"dependencies = ["accessibility-sys","anyhow",@@ -8879,9 +8878,9 @@ dependencies = [[[package]]name = "serde_with"-version = "3.17.0"+version = "3.16.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "381b283ce7bc6b476d903296fb59d0d36633652b633b27f64db4fb46dcbfc3b9"+checksum = "4fa237f2807440d238e0364a218270b98f767a00d3dada77b1c53ae88940e2e7"dependencies = ["base64 0.22.1","chrono",@@ -8898,9 +8897,9 @@ dependencies = [[[package]]name = "serde_with_macros"-version = "3.17.0"+version = "3.16.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a6d4e30573c8cb306ed6ab1dca8423eec9a463ea0e155f45399455e0368b27e0"+checksum = "52a8e3ca0ca629121f70ab50f95249e5a6f925cc0f6ffe8256c45b728875706c"dependencies = ["darling","proc-macro2",@@ -9176,7 +9175,7 @@ dependencies = ["bytemuck","js-sys","ndk 0.9.0",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-core-foundation","objc2-core-graphics","objc2-foundation 0.3.2",@@ -9955,7 +9954,7 @@ dependencies = ["ndk 0.9.0","ndk-context","ndk-sys 0.6.0+11769913",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-app-kit","objc2-foundation 0.3.2","once_cell",@@ -10029,7 +10028,7 @@ dependencies = ["log","mime","muda",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-app-kit","objc2-foundation 0.3.2","objc2-ui-kit",@@ -10466,7 +10465,7 @@ dependencies = ["gtk","http 1.4.0","jni",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-ui-kit","objc2-web-kit","raw-window-handle",@@ -10490,7 +10489,7 @@ dependencies = ["http 1.4.0","jni","log",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-app-kit","objc2-foundation 0.3.2","once_cell",@@ -11196,7 +11195,7 @@ dependencies = ["dirs 6.0.0","libappindicator","muda",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-app-kit","objc2-core-foundation","objc2-core-graphics",@@ -11741,9 +11740,9 @@ checksum = "b8dad83b4f25e74f184f64c43b150b91efe7647395b42289f38e50566d82855b"[[package]]name = "wasm-bindgen"-version = "0.2.113"+version = "0.2.112"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "60722a937f594b7fde9adb894d7c092fc1bb6612897c46368d18e7a20208eff2"+checksum = "05d7d0fce354c88b7982aec4400b3e7fcf723c32737cef571bd165f7613557ee"dependencies = ["cfg-if 1.0.4","once_cell",@@ -11754,9 +11753,9 @@ dependencies = [[[package]]name = "wasm-bindgen-futures"-version = "0.4.63"+version = "0.4.62"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8a89f4650b770e4521aa6573724e2aed4704372151bd0de9d16a3bbabb87441a"+checksum = "ee85afca410ac4abba5b584b12e77ea225db6ee5471d0aebaae0861166f9378a"dependencies = ["cfg-if 1.0.4","futures-util",@@ -11768,9 +11767,9 @@ dependencies = [[[package]]name = "wasm-bindgen-macro"-version = "0.2.113"+version = "0.2.112"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0fac8c6395094b6b91c4af293f4c79371c163f9a6f56184d2c9a85f5a95f3950"+checksum = "55839b71ba921e4f75b674cb16f843f4b1f3b26ddfcb3454de1cf65cc021ec0f"dependencies = ["quote","wasm-bindgen-macro-support",@@ -11778,9 +11777,9 @@ dependencies = [[[package]]name = "wasm-bindgen-macro-support"-version = "0.2.113"+version = "0.2.112"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ab3fabce6159dc20728033842636887e4877688ae94382766e00b180abac9d60"+checksum = "caf2e969c2d60ff52e7e98b7392ff1588bffdd1ccd4769eba27222fd3d621571"dependencies = ["bumpalo","proc-macro2",@@ -11791,9 +11790,9 @@ dependencies = [[[package]]name = "wasm-bindgen-shared"-version = "0.2.113"+version = "0.2.112"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "de0e091bdb824da87dc01d967388880d017a0a9bc4f3bdc0d86ee9f9336e3bb5"+checksum = "0861f0dcdf46ea819407495634953cdcc8a8c7215ab799a7a7ce366be71c7b30"dependencies = ["unicode-ident",]@@ -11948,9 +11947,9 @@ dependencies = [[[package]]name = "web-sys"-version = "0.3.90"+version = "0.3.89"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "705eceb4ce901230f8625bd1d665128056ccbe4b7408faa625eec1ba80f59a97"+checksum = "10053fbf9a374174094915bbce141e87a6bf32ecd9a002980db4b638405e8962"dependencies = ["js-sys","wasm-bindgen",@@ -12208,7 +12207,7 @@ version = "0.6.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d9bec5a31f3f9362f2258fd0e9c9dd61a9ca432e7306cc78c444258f0dce9a9c"dependencies = [- "objc2 0.6.4",+ "objc2 0.6.3","objc2-app-kit","objc2-core-foundation","objc2-foundation 0.3.2",@@ -13011,7 +13010,7 @@ dependencies = ["kuchikiki","libc","ndk 0.9.0",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-app-kit","objc2-core-foundation","objc2-foundation 0.3.2",@@ -13093,7 +13092,7 @@ dependencies = ["lazy_static","libwayshot-xcap","log",- "objc2 0.6.4",+ "objc2 0.6.3","objc2-app-kit","objc2-av-foundation","objc2-core-foundation",diff --git a/apps/screenpipe-app-tauri/src-tauri/src/icons.rs b/apps/screenpipe-app-tauri/src-tauri/src/icons.rsindex 6d8aee9a9..0521b0256 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/icons.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/icons.rs@@ -176,10 +176,10 @@ fn get_exe_by_reg_key(app_name: &str) -> Option<String> {// Match on DisplayName or subkey name (App Paths uses exe name)let display_match = app_key.get_value::<String, _>("DisplayName")- .map(|d| d.to_lowercase().contains(&app_lower))+ .map(|d| names_match(&d, app_name)).unwrap_or(false);- let subkey_match = subkey_lower.contains(&app_lower)- || app_lower.contains(&subkey_lower.trim_end_matches(".exe"));+ let subkey_match = names_match(&subkey_lower, &app_lower)+ || names_match(&subkey_lower.trim_end_matches(".exe"), &app_lower);if display_match || subkey_match {if let Ok(path) = app_key.get_value::<String, _>("DisplayIcon") {@@ -239,6 +239,30 @@ fn powershell_exe() -> std::path::PathBuf {.join("powershell.exe")}+/// Strip dots, dashes, underscores and spaces so "screenpi.pe" matches "screenpipe",+/// "wezterm-gui" matches "wezterm", etc.+#[cfg(target_os = "windows")]+fn normalize_app_name(name: &str) -> String {+ name.chars()+ .filter(|c| c.is_alphanumeric())+ .collect::<String>()+ .to_lowercase()+}++/// Check whether two app names are "similar enough" to be considered the same app.+/// Uses both substring matching and normalized (punctuation-stripped) matching.+#[cfg(target_os = "windows")]+fn names_match(folder: &str, search: &str) -> bool {+ let fl = folder.to_lowercase();+ let sl = search.to_lowercase();+ if fl.contains(&sl) || sl.contains(&fl) {+ return true;+ }+ let fn_norm = normalize_app_name(folder);+ let sn_norm = normalize_app_name(search);+ fn_norm.contains(&sn_norm) || sn_norm.contains(&fn_norm)+}+#[cfg(target_os = "windows")]async fn get_exe_from_potential_path(app_name: &str) -> Option<String> {const CREATE_NO_WINDOW: u32 = 0x08000000;@@ -252,7 +276,7 @@ async fn get_exe_from_potential_path(app_name: &str) -> Option<String> {if let Ok(entries) = std::fs::read_dir(local_dir) {for entry in entries.flatten() {let folder_name = entry.file_name().to_string_lossy().to_lowercase();- if folder_name.contains(&app_lower) || app_lower.contains(&folder_name) {+ if names_match(&folder_name, &app_lower) {let entry_path = entry.path();// Electron pattern: %LOCALAPPDATA%\<app>\app-*\<app>.exeif let Ok(sub_entries) = std::fs::read_dir(&entry_path) {@@ -283,7 +307,7 @@ async fn get_exe_from_potential_path(app_name: &str) -> Option<String> {if let Ok(entries) = std::fs::read_dir(&programs_dir) {for entry in entries.flatten() {let folder_name = entry.file_name().to_string_lossy().to_lowercase();- if folder_name.contains(&app_lower) || app_lower.contains(&folder_name) {+ if names_match(&folder_name, &app_lower) {if let Ok(sub_entries) = std::fs::read_dir(entry.path()) {for sub in sub_entries.flatten() {let fname = sub.file_name().to_string_lossy().to_lowercase();@@ -307,7 +331,7 @@ async fn get_exe_from_potential_path(app_name: &str) -> Option<String> {if let Ok(entries) = std::fs::read_dir(base) {for entry in entries.flatten() {let folder_name = entry.file_name().to_string_lossy().to_lowercase();- if folder_name.contains(&app_lower) || app_lower.contains(&folder_name) {+ if names_match(&folder_name, &app_lower) {// Found matching folder, look for exe insideif let Ok(sub_entries) = std::fs::read_dir(entry.path()) {for sub in sub_entries.flatten() {diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rsindex 2d6678714..fed72ef0e 100755--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs@@ -1287,7 +1287,20 @@ async fn main() {let _ = window.set_visible_on_all_workspaces(false);#[cfg(target_os = "macos")]crate::window_api::reset_to_regular_and_refresh_tray(window.app_handle());- let _ = window.hide();+ // On Windows, minimize the main windowed window so it stays+ // visible in the taskbar instead of vanishing to the tray.+ #[cfg(target_os = "windows")]+ {+ if window.label() == "main-window" {+ let _ = window.minimize();+ } else {+ let _ = window.hide();+ }+ }+ #[cfg(not(target_os = "windows"))]+ {+ let _ = window.hide();+ }api.prevent_close();}_ => {}diff --git a/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs b/apps/screenpipe-app-tauri/src-tauri/src/window_api.rsindex 65aec48ec..c6480b80c 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs@@ -532,6 +532,7 @@ impl ShowRewindWindow {}#[cfg(not(target_os = "macos"))]{+ window.unminimize().ok();window.show().ok();window.set_focus().ok();let _ = app.emit("window-focused", true);@@ -767,6 +768,7 @@ impl ShowRewindWindow {#[cfg(not(target_os = "macos"))]{window.show().ok();+ window.set_focus().ok();return Ok(window);}}diff --git a/crates/screenpipe-core/src/agents/pi.rs b/crates/screenpipe-core/src/agents/pi.rsindex bb21c6d74..a2b80a266 100644--- a/crates/screenpipe-core/src/agents/pi.rs+++ b/crates/screenpipe-core/src/agents/pi.rs@@ -322,7 +322,6 @@ impl PiExecutor {#[cfg(windows)]{- use std::os::windows::process::CommandExt;const CREATE_NO_WINDOW: u32 = 0x08000000;cmd.creation_flags(CREATE_NO_WINDOW);}@@ -403,7 +402,6 @@ impl PiExecutor {#[cfg(windows)]{- use std::os::windows::process::CommandExt;const CREATE_NO_WINDOW: u32 = 0x08000000;cmd.creation_flags(CREATE_NO_WINDOW);}diff --git a/crates/screenpipe-core/src/pipes/mod.rs b/crates/screenpipe-core/src/pipes/mod.rsindex 6fce5abc0..75b11358d 100644--- a/crates/screenpipe-core/src/pipes/mod.rs+++ b/crates/screenpipe-core/src/pipes/mod.rs@@ -1974,6 +1974,7 @@ impl PipeManager {/// Copy built-in pipe templates into pipes_dir if they don't exist.pub fn install_builtin_pipes(&self) -> Result<()> {+ #[allow(unused_mut)]let mut builtins = vec![("obsidian-sync",diff --git a/crates/screenpipe-server/src/sleep_monitor.rs b/crates/screenpipe-server/src/sleep_monitor.rsindex 76e5487a6..903b2915d 100644--- a/crates/screenpipe-server/src/sleep_monitor.rs+++ b/crates/screenpipe-server/src/sleep_monitor.rs@@ -12,9 +12,10 @@use std::sync::atomic::{AtomicBool, Ordering};#[cfg(target_os = "macos")]use std::time::Duration;+#[cfg(not(any(target_os = "macos", target_os = "windows")))]use tracing::debug;#[cfg(target_os = "macos")]-use tracing::{error, info, warn};+use tracing::{debug, error, info, warn};#[cfg(target_os = "windows")]use tracing::info;