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): show encrypt toggle as disabled instead of hidden when keychain unavailable

Louis Beaumont636b387b3d08
diff --git a/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx b/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx
index dabd1b68d..a066f5453 100644
--- a/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx
@@ -161,7 +161,7 @@ function EncryptDataCard({
setToggling(false);
};
- if (keychainState === "loading" || keychainState === "unavailable") return null;
+ if (keychainState === "loading") return null;
return (
<Card className="border-border bg-card">
@@ -174,14 +174,16 @@ function EncryptDataCard({
Encrypt Data at Rest
</h3>
<p className="text-xs text-muted-foreground mt-0.5">
- Encrypt credentials and settings with your OS keychain.
+ {keychainState === "unavailable"
+ ? "OS keychain not available on this system."
+ : "Encrypt credentials and settings with your OS keychain."}
</p>
</div>
</div>
<Switch
checked={isFullyEnabled}
onCheckedChange={handleToggle}
- disabled={toggling}
+ disabled={toggling || keychainState === "unavailable"}
/>
</div>
</CardContent>