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(windows): Alt+S toggle now shows window after hiding

louis03019568eed3653e3c
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 b5f186ff6..bd01571c7 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs
@@ -1871,9 +1871,12 @@ impl ShowRewindWindow {
}
#[cfg(target_os = "windows")]
{
+ // Hide instead of close/destroy so the webview survives for reopen.
+ // Destroying the window causes re-creation with visible(false) and
+ // the overlay show path never makes it visible again.
for label in &["main", "main-window"] {
if let Some(window) = app.get_webview_window(label) {
- window.close().ok();
+ window.hide().ok();
}
}
}