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: properly auto-switch to cloud transcription for paid subscribers
Louis Beaumont2381b023954b
diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsxindex 1bc603281..5d811a3f7 100644--- a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx+++ b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx@@ -493,30 +493,39 @@ function createSettingsStore() {needsUpdate = true;}- // Migration: Auto-detect hardware and adjust engine for weak machines (one-time only)- // Migration: Switch to Parakeet as default engine (one-time)- // - Paid cloud subscribers → screenpipe-cloud (better accuracy)- // - macOS users → whisper-large-v3-turbo-quantized (parakeet/MLX is experimental on macOS)- // - Windows/Linux users → parakeet (stable on these platforms)+ // Migration: Set default transcription engine (one-time only)+ // - macOS → whisper-large-v3-turbo-quantized+ // - Windows/Linux → parakeet+ // Does NOT set screenpipe-cloud here because user may not be logged in yet.+ // Cloud switch happens in account-section.tsx when subscription is confirmed.if (!(settings as any)._parakeetDefaultMigrationDone) {const engine = settings.audioTranscriptionEngine;const isWhisperVariant = engine?.includes("whisper");if (isWhisperVariant || engine === "screenpipe-cloud" || engine === "parakeet") {- if (settings.user?.cloud_subscribed) {- settings.audioTranscriptionEngine = "screenpipe-cloud";- } else {- const { platform: getPlatform } = await import("@tauri-apps/plugin-os");- const os = getPlatform();- settings.audioTranscriptionEngine = os === "macos"- ? "whisper-large-v3-turbo-quantized"- : "parakeet";- }+ const { platform: getPlatform } = await import("@tauri-apps/plugin-os");+ const os = getPlatform();+ settings.audioTranscriptionEngine = os === "macos"+ ? "whisper-large-v3-turbo-quantized"+ : "parakeet";needsUpdate = true;}(settings as any)._parakeetDefaultMigrationDone = true;needsUpdate = true;}+ // Post-migration: if user is a paid subscriber but still on a local engine+ // (because migration ran before login), switch to cloud once.+ // _cloudEngineApplied prevents overriding if user manually switches back later.+ if (+ settings.user?.cloud_subscribed &&+ settings.audioTranscriptionEngine !== "screenpipe-cloud" &&+ !(settings as any)._cloudEngineApplied+ ) {+ settings.audioTranscriptionEngine = "screenpipe-cloud";+ (settings as any)._cloudEngineApplied = true;+ needsUpdate = true;+ }+// Save migrations if neededif (needsUpdate) {await store.set("settings", settings);