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(settings): fill empty showChatShortcut with platform default

Louis Beaumont364173ed0189
diff --git a/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/screenpipe-app-tauri/lib/hooks/use-settings.tsx
index be31f912a..0354d9d77 100644
--- a/screenpipe-app-tauri/lib/hooks/use-settings.tsx
+++ b/screenpipe-app-tauri/lib/hooks/use-settings.tsx
@@ -299,6 +299,13 @@ function createSettingsStore() {
needsUpdate = true;
}
+ // Migration: Fill empty showChatShortcut with platform default
+ if (!settings.showChatShortcut || settings.showChatShortcut.trim() === "") {
+ const p = platform();
+ settings.showChatShortcut = p === "windows" ? "Alt+L" : "Control+Super+L";
+ needsUpdate = true;
+ }
+
// Save migrations if needed
if (needsUpdate) {
await store.set("settings", settings);