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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: use Tauri clipboard plugin as fallback for API key copy
Louis Beaumont9ed146e9dfba
diff --git a/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx b/apps/screenpipe-app-tauri/components/settings/privacy-section.tsxindex 1b6186017..d90f82d2c 100644--- a/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx@@ -438,7 +438,6 @@ export function PrivacySection() {size="sm"className="h-8 px-2 shrink-0"onClick={async () => {- // Copy custom key if set, otherwise read auto-generated keylet key = settings.apiKey;if (!key) {try {@@ -448,7 +447,13 @@ export function PrivacySection() {} catch {}}if (key) {- navigator.clipboard.writeText(key);+ try {+ await navigator.clipboard.writeText(key);+ } catch {+ // Fallback for Tauri webview clipboard restrictions+ const { writeText } = await import("@tauri-apps/plugin-clipboard-manager");+ await writeText(key);+ }toast({ title: "API key copied to clipboard" });} else {toast({ title: "No API key available", description: "Restart the app to auto-generate a key", variant: "destructive" });