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(store): default AIPreset model is "auto", migrate stale qwen preset

Louis Beaumonte599e204baa0
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/store.rs b/apps/screenpipe-app-tauri/src-tauri/src/store.rs
index 5ccc6dc00..c8886919a 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/store.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/store.rs
@@ -589,7 +589,7 @@ impl Default for AIPreset {
prompt: String::new(),
provider: AIProviderType::ScreenpipeCloud,
url: "https://api.screenpi.pe/v1".to_string(),
- model: "qwen/qwen3.5-flash-02-23".to_string(),
+ model: "auto".to_string(),
default_preset: false,
api_key: None,
max_context_chars: 512000,
@@ -879,6 +879,20 @@ impl SettingsStore {
}
}
}
+
+ // Migrate the bundled screenpipe-cloud preset off the old hardcoded
+ // qwen model — the seed is "auto" now, but users who installed
+ // earlier still carry the literal qwen id.
+ let id = preset.get("id").and_then(|v| v.as_str()).unwrap_or("");
+ let model = preset.get("model").and_then(|v| v.as_str()).unwrap_or("");
+ if id == "screenpipe-cloud" && model == "qwen/qwen3.5-flash-02-23" {
+ if let Some(obj) = preset.as_object_mut() {
+ obj.insert(
+ "model".to_string(),
+ Value::String("auto".to_string()),
+ );
+ }
+ }
}
}
}