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: settings window hide for shortcuts + live text embedded fallback

Louis Beaumontf6c810182048
diff --git a/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx
index f89e76a07..70fa3915e 100644
--- a/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx
@@ -249,11 +249,12 @@ export const CurrentFrameTimeline: FC<CurrentFrameTimelineProps> = ({
}, [frameContext?.text, textPositions]);
// --- Live Text hook (native macOS VisionKit overlay) ---
- // VisionKit attaches at the NSWindow level, so it can only work on
- // dedicated timeline panels (overlay/window mode), NOT on the embedded
- // timeline inside the settings window (would cover sidebar, chat, etc.)
+ // In overlay/window mode, attach to the correct NSPanel.
+ // In embedded mode, VisionKit can't work (it covers the entire NSWindow
+ // including sidebar/chat), so pass "main" which will fail gracefully
+ // and the web-based SelectableTextLayer kicks in as fallback.
const liveTextWindowLabel = embedded
- ? undefined // disable Live Text in embedded mode
+ ? "main"
: settings?.overlayMode === "window" ? "main-window" : "main";
const { nativeLiveTextActive } = useLiveText({
@@ -263,7 +264,7 @@ export const CurrentFrameTimeline: FC<CurrentFrameTimelineProps> = ({
isSearchModalOpen,
highlightTerms,
highlightDismissed,
- isMac: isMac && !embedded, // disable native Live Text in embedded mode
+ isMac,
containerRef,
useVideoMode,
videoRef,
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index 26b75fbed..eb65a6175 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.2.74"
+version = "2.2.75"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs b/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs
index 276cd82f5..6acbe44a9 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs
@@ -1947,6 +1947,16 @@ impl ShowRewindWindow {
// }
if let Some(window) = id.get(app) {
+ // On macOS, the settings window has prevent_close to avoid
+ // workspace swipe issues. Use hide() instead of close() so
+ // programmatic close (shortcut toggle, close button) works.
+ #[cfg(target_os = "macos")]
+ if id.label() == RewindWindowId::Settings.label() {
+ window.hide().ok();
+ } else {
+ window.close().ok();
+ }
+ #[cfg(not(target_os = "macos"))]
window.close().ok();
}
Ok(())