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(app): prevent parakeet-mlx on Low tier devices (OOM crash on 8GB Macs) (#2607)

Louis Beaumont8777ae9b2087
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/store.rs b/apps/screenpipe-app-tauri/src-tauri/src/store.rs
index 18c9d56c1..51d9af6d7 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/store.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/store.rs
@@ -749,23 +749,25 @@ pub fn init_store(app: &AppHandle) -> Result<SettingsStore, String> {
);
if is_new_store || store.recording.device_tier.is_none() {
screenpipe_config::apply_tier_defaults(&mut store.recording, detected);
- } else if stored_tier.is_some() {
- // Tier boundary changed in update — only fix engine if it would OOM
- // (user on parakeet/parakeet-mlx but now classified as Low)
- if detected == screenpipe_config::DeviceTier::Low
- && (store.recording.audio_transcription_engine == "parakeet"
- || store.recording.audio_transcription_engine == "parakeet-mlx")
- {
- tracing::warn!(
- "device reclassified as Low tier — switching from {} to whisper-tiny to prevent OOM",
- store.recording.audio_transcription_engine
- );
- store.recording.audio_transcription_engine = "whisper-tiny".to_string();
- }
}
store.recording.device_tier = Some(detected.as_str().to_string());
should_save = true;
}
+
+ // Unconditional OOM guard: prevent parakeet/parakeet-mlx on Low tier devices
+ // regardless of whether the tier just changed. The 2.3GB MLX model crashes
+ // 8GB machines (macOS kills the process during Metal buffer allocation).
+ if detected == screenpipe_config::DeviceTier::Low
+ && (store.recording.audio_transcription_engine == "parakeet"
+ || store.recording.audio_transcription_engine == "parakeet-mlx")
+ {
+ tracing::warn!(
+ "Low tier device — switching from {} to whisper-tiny to prevent OOM crash (parakeet-mlx requires >8GB RAM)",
+ store.recording.audio_transcription_engine
+ );
+ store.recording.audio_transcription_engine = "whisper-tiny".to_string();
+ should_save = true;
+ }
}
if should_save {