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 overlay opening during background updates on Windows

Louis Beaumont127c1033a1bf
diff --git a/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx b/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx
index 3da204acf..8d697ab92 100644
--- a/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx
+++ b/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx
@@ -72,10 +72,10 @@ export function AIPanel({
const { toast } = useToast();
const { selectionRange, setSelectionRange } = useTimelineSelection();
const { checkLogin } = useLoginDialog();
+ const [activePreset, setActivePreset] = useState<AIPreset | undefined>(undefined);
const isAvailable = settings.aiPresets && settings.aiPresets.length > 0;
const hasValidModel = activePreset?.model && activePreset.model.trim() !== "";
const error = !isAvailable ? "No AI presets configured" : !hasValidModel ? "No model selected in preset" : "";
- const [activePreset, setActivePreset] = useState<AIPreset | undefined>(undefined);
// Add abort controller ref
const abortControllerRef = useRef<AbortController | null>(null);
diff --git a/screenpipe-app-tauri/src-tauri/src/updates.rs b/screenpipe-app-tauri/src-tauri/src/updates.rs
index 688717a9f..e6ba710ba 100644
--- a/screenpipe-app-tauri/src-tauri/src/updates.rs
+++ b/screenpipe-app-tauri/src-tauri/src/updates.rs
@@ -107,8 +107,7 @@ impl UpdatesManager {
.buttons(MessageDialogButtons::OkCancelCustom(
"update now".to_string(),
"later".to_string(),
- ))
- .parent(&self.app.get_webview_window("main").unwrap());
+ ));
update_dialog.show(move |answer| {
let _ = tx.send(answer);