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(owned-browser): hide native webview when panel closes or user navigates away (#3462)

Ansh Grover084037e17801
diff --git a/apps/screenpipe-app-tauri/components/browser-sidebar.tsx b/apps/screenpipe-app-tauri/components/browser-sidebar.tsx
index fd88cf13c..a823abbdb 100644
--- a/apps/screenpipe-app-tauri/components/browser-sidebar.tsx
+++ b/apps/screenpipe-app-tauri/components/browser-sidebar.tsx
@@ -504,7 +504,10 @@ export function BrowserSidebar({ conversationId }: BrowserSidebarProps) {
// ---------------------------------------------------------------------------
useEffect(() => {
- if (!panelOpen) return;
+ if (!panelOpen) {
+ invoke("owned_browser_hide").catch(() => {});
+ return;
+ }
const el = placeholderRef.current;
if (!el) return;
schedulePushBounds();