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

release-app-publish v2.6.58: fix Windows search prewarm

Louis Beaumont9abf0e16a91f
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index f3ab93c22..9da663178 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -11137,7 +11137,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.6.57"
+version = "2.6.58"
dependencies = [
"aes 0.8.4",
"aes-gcm 0.10.3",
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index 3f3720733..6cb0597c1 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -7,7 +7,7 @@ members = ["wer-dump-helper"]
[package]
name = "screenpipe-app"
-version = "2.6.57"
+version = "2.6.58"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rs
index a7a17348d..f9feeabe9 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs
@@ -1697,22 +1697,24 @@ async fn main() {
// Pre-warm the floating search window (hidden, unfocused) so the
// FIRST search-shortcut press reuses a warm webview instead of
// cold-booting Next.js for ~5s (the "search frozen ~10s before you
- // can type" bug). Cross-platform: create_search_window builds it
- // hidden and never shows/activates it when unfocused, so there's no
- // blink or focus-steal. Guarded like the chat pre-create above.
- if onboarding_store.is_completed && !app_ui_hidden && !headless_startup {
- let app_handle_search = app.handle().clone();
- tauri::async_runtime::spawn(async move {
- // Stagger after the chat pre-create (3s) so the two hidden
- // webviews don't cold-boot at the same instant as the main
- // window.
- tokio::time::sleep(tokio::time::Duration::from_secs(4)).await;
- if app_handle_search.get_webview_window("search").is_none() {
- if let Err(e) = ShowRewindWindow::prewarm_search(&app_handle_search) {
- warn!("failed to pre-warm search window: {}", e);
+ // can type" bug). WebView2 can paint hidden transparent
+ // always-on-top windows during startup, so skip this on Windows.
+ #[cfg(not(target_os = "windows"))]
+ {
+ if onboarding_store.is_completed && !app_ui_hidden && !headless_startup {
+ let app_handle_search = app.handle().clone();
+ tauri::async_runtime::spawn(async move {
+ // Stagger after the chat pre-create (3s) so the two hidden
+ // webviews don't cold-boot at the same instant as the main
+ // window.
+ tokio::time::sleep(tokio::time::Duration::from_secs(4)).await;
+ if app_handle_search.get_webview_window("search").is_none() {
+ if let Err(e) = ShowRewindWindow::prewarm_search(&app_handle_search) {
+ warn!("failed to pre-warm search window: {}", e);
+ }
}
- }
- });
+ });
+ }
}
// Pi is NOT auto-started at boot — it starts lazily when the user opens
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/window/show.rs b/apps/screenpipe-app-tauri/src-tauri/src/window/show.rs
index d466008c4..9e71a32e2 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/window/show.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/window/show.rs
@@ -1915,11 +1915,13 @@ impl ShowRewindWindow {
Ok(window)
}
- /// Pre-warm the floating search window at startup: create it hidden and
+ /// Pre-warm the floating search window at startup on platforms where
+ /// hidden transparent webviews stay hidden: create it hidden and
/// unfocused so the FIRST user-triggered open reuses this warm webview
/// (instant) instead of cold-booting Next.js for several seconds (the
/// "search bar frozen ~10s before you can type" bug). No-op if the window
/// already exists or the UI is suppressed (enterprise hidden mode).
+ #[cfg(not(target_os = "windows"))]
pub fn prewarm_search(app: &AppHandle) -> tauri::Result<()> {
if crate::enterprise_policy::is_app_ui_hidden() {
return Ok(());