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: wait for store flush before re-showing overlay on size change

Louis Beaumont0cd479b9ffea
diff --git a/apps/screenpipe-app-tauri/components/settings/display-section.tsx b/apps/screenpipe-app-tauri/components/settings/display-section.tsx
index 4ff0dcfaf..2b669d5d8 100644
--- a/apps/screenpipe-app-tauri/components/settings/display-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/display-section.tsx
@@ -271,6 +271,8 @@ export function DisplaySection() {
handleSettingsChange({ shortcutOverlaySize: option.value });
try {
await invoke("hide_shortcut_reminder");
+ // Wait for store.bin to flush to disk before re-showing
+ await new Promise(r => setTimeout(r, 500));
await invoke("show_shortcut_reminder", { shortcut: settings.showScreenpipeShortcut });
} catch {}
}}