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
release-app: fix app reopen
Louis Beaumontadd293a9baae
diff --git a/pipes/search/src/components/search-chat.tsx b/pipes/search/src/components/search-chat.tsxindex 267db3a50..55bf5b7b6 100644--- a/pipes/search/src/components/search-chat.tsx+++ b/pipes/search/src/components/search-chat.tsx@@ -238,7 +238,6 @@ export function SearchChat() {const [offset, setOffset] = useState(0);const [totalResults, setTotalResults] = useState(0);const { settings } = useSettings();- console.log("settings", settings);const [isAiLoading, setIsAiLoading] = useState(false);const [minLength, setMinLength] = useState(50);const [maxLength, setMaxLength] = useState(10000);diff --git a/screenpipe-app-tauri/app/search/page.tsx b/screenpipe-app-tauri/app/search/page.tsxdeleted file mode 100644index a8c7047b4..000000000--- a/screenpipe-app-tauri/app/search/page.tsx+++ /dev/null@@ -1,27 +0,0 @@-"use client";--import { SearchChat } from "@/components/search-chat";-import { useSearchHistory } from "@/lib/hooks/use-search-history";--export default function SearchPage() {- const {- searches,- currentSearchId,- setCurrentSearchId,- addSearch,- deleteSearch,- isCollapsed,- toggleCollapse,- } = useSearchHistory();- return (- <div className="flex flex-col gap-4 items-center justify-center h-full mt-12">- <p className="text-xl font-bold">where pixels become magic</p>- <SearchChat- currentSearchId={currentSearchId}- setCurrentSearchId={setCurrentSearchId}- onAddSearch={addSearch}- searches={searches}- />- </div>- );-}diff --git a/screenpipe-app-tauri/components/header.tsx b/screenpipe-app-tauri/components/header.tsxindex b56e663c3..4305d317f 100644--- a/screenpipe-app-tauri/components/header.tsx+++ b/screenpipe-app-tauri/components/header.tsx@@ -19,7 +19,6 @@ import {Bell,Play,Folder,- Search,Book,User,Fingerprint,@@ -128,10 +127,6 @@ export default function Header() {await invoke("show_timeline");};- const handleShowSearch = async () => {- await invoke("show_search");- };-const handleShowMeetingHistory = async () => {await invoke("show_meetings");};@@ -191,14 +186,6 @@ export default function Header() {</DropdownMenuGroup><DropdownMenuSeparator /><DropdownMenuGroup>- <DropdownMenuItem- className="cursor-pointer"- onClick={handleShowSearch}- disabled={!health || health.status === "error"}- >- <Search className="mr-2 h-4 w-4" />- <span>search</span>- </DropdownMenuItem><DropdownMenuItemclassName="cursor-pointer"onClick={handleShowTimeline}diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lockindex 8175cc0e0..8b0bb50af 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.17.2"+version = "0.17.6"dependencies = ["anyhow","axum",diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.tomlindex a8757e76d..44c37e350 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.17.5"+version = "0.17.6"description = ""authors = ["you"]license = ""diff --git a/screenpipe-app-tauri/src-tauri/src/commands.rs b/screenpipe-app-tauri/src-tauri/src/commands.rsindex bd4b7c9d8..9a1414dd7 100644--- a/screenpipe-app-tauri/src-tauri/src/commands.rs+++ b/screenpipe-app-tauri/src-tauri/src/commands.rs@@ -307,51 +307,27 @@ pub async fn open_auth_window(app_handle: tauri::AppHandle<tauri::Wry>) -> Resul}#[tauri::command]-pub fn show_search(app_handle: tauri::AppHandle<tauri::Wry>) {- if let Some(window) = app_handle.get_webview_window("search") {- #[cfg(target_os = "macos")]- let _ = app_handle.set_activation_policy(tauri::ActivationPolicy::Accessory);-- let _ = window.set_decorations(true);- let _ = window.show();- let _ = window.set_focus();- } else {- let _window = tauri::WebviewWindowBuilder::new(- &app_handle,- "search",- tauri::WebviewUrl::App("search.html".into()),- )- .title("search")- .decorations(true)- .transparent(true)- .center()- .build()- .unwrap();- }-}---#[tauri::command]-pub async fn open_pipe_window(app_handle: tauri::AppHandle<tauri::Wry>, port: u16, title: String) -> Result<(), String> {- let window_label = format!("pipe-{}", port);-+pub async fn open_pipe_window(+ app_handle: tauri::AppHandle<tauri::Wry>,+ port: u16,+ title: String,+) -> Result<(), String> {// Close existing window if it exists- if let Some(existing_window) = app_handle.get_webview_window(&window_label) {- let _ = existing_window.close();+ if let Some(existing_window) = app_handle.get_webview_window(&title) {+ let _ = existing_window.destroy();// Give it a moment to properly closetokio::time::sleep(tokio::time::Duration::from_millis(100)).await;}let _window = tauri::WebviewWindowBuilder::new(&app_handle,- window_label,- tauri::WebviewUrl::External(format!("http://localhost:{}", port).parse().unwrap())+ &title,+ tauri::WebviewUrl::External(format!("http://localhost:{}", port).parse().unwrap()),).title(title).inner_size(800.0, 600.0).build().map_err(|e| e.to_string())?;-+Ok(())}-diff --git a/screenpipe-app-tauri/src-tauri/src/main.rs b/screenpipe-app-tauri/src-tauri/src/main.rsindex acc789593..ba303e225 100755--- a/screenpipe-app-tauri/src-tauri/src/main.rs+++ b/screenpipe-app-tauri/src-tauri/src/main.rs@@ -164,7 +164,6 @@ async fn main() {commands::show_timeline,icons::get_app_icon,commands::open_auth_window,- commands::show_search,commands::show_meetings,commands::show_identify_speakers,commands::open_pipe_window,diff --git a/screenpipe-app-tauri/src-tauri/tauri.conf.json b/screenpipe-app-tauri/src-tauri/tauri.conf.jsonindex 6660a26f8..d3ce0b512 100644--- a/screenpipe-app-tauri/src-tauri/tauri.conf.json+++ b/screenpipe-app-tauri/src-tauri/tauri.conf.json@@ -102,18 +102,6 @@"alwaysOnTop": true,"label": "timeline"},- {- "title": "search",- "url": "/search",- "label": "search",- "width": 1200,- "height": 1000,- "minWidth": 1000,- "minHeight": 600,- "visible": false,- "decorations": true,- "transparent": true- },{"title": "meetings","url": "/meetings",@@ -149,4 +137,4 @@},"macOSPrivateApi": true}-}\ No newline at end of file+}