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 feat: properly show pipe on top of current app

Louis Beaumontb0dcdf690a8e
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lock
index 6ffe9c707..a6f2f1f83 100755
--- a/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -4966,7 +4966,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "0.18.7"
+version = "0.19.0"
dependencies = [
"anyhow",
"axum",
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index d08198781..a10b93d86 100644
--- a/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "0.18.9"
+version = "0.19.0"
description = ""
authors = ["you"]
license = ""
diff --git a/screenpipe-app-tauri/src-tauri/src/commands.rs b/screenpipe-app-tauri/src-tauri/src/commands.rs
index b4ed2c208..32c6b1d21 100644
--- a/screenpipe-app-tauri/src-tauri/src/commands.rs
+++ b/screenpipe-app-tauri/src-tauri/src/commands.rs
@@ -293,15 +293,24 @@ pub async fn open_pipe_window(
tokio::time::sleep(tokio::time::Duration::from_millis(100)).await;
}
- let _window = tauri::WebviewWindowBuilder::new(
+ let window = tauri::WebviewWindowBuilder::new(
&app_handle,
&title,
tauri::WebviewUrl::External(format!("http://localhost:{}", port).parse().unwrap()),
)
.title(title)
.inner_size(800.0, 600.0)
+ .always_on_top(true)
+ .visible_on_all_workspaces(true)
.build()
.map_err(|e| e.to_string())?;
+ // Force focus and show
+ let _ = window.set_focus();
+ let _ = window.show();
+
+ #[cfg(target_os = "macos")]
+ let _ = app_handle.set_activation_policy(tauri::ActivationPolicy::Accessory);
+
Ok(())
}