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

release-app improve download model toast

Louis Beaumont2be1bf9e3490
diff --git a/screenpipe-app-tauri/components/model-download-tracker.tsx b/screenpipe-app-tauri/components/model-download-tracker.tsx
index 2806b6027..acc9edddc 100644
--- a/screenpipe-app-tauri/components/model-download-tracker.tsx
+++ b/screenpipe-app-tauri/components/model-download-tracker.tsx
@@ -2,9 +2,9 @@
import { useToast } from "@/components/ui/use-toast";
import { listen } from "@tauri-apps/api/event";
+import { Download } from "lucide-react";
import { useEffect, useState } from "react";
import { Progress } from "./ui/progress";
-import { AlertCircle, Download } from "lucide-react";
export function ModelDownloadTracker() {
const { toast, dismiss } = useToast();
@@ -23,6 +23,7 @@ export function ModelDownloadTracker() {
const interval = setInterval(() => {
Object.keys(activeDownloads).forEach((model) => {
// Get current progress
+
let progress = downloadProgress[model] || 5;
// Only update if not at max
@@ -41,6 +42,14 @@ export function ModelDownloadTracker() {
if (toastRefs[model]) {
toastRefs[model].update({
title: "downloading model",
+ description: (
+ <div className="flex flex-col gap-2">
+ <div className="flex items-center gap-2">
+ <Download className="h-4 w-4" />
+ </div>
+ <Progress value={downloadProgress[model]} className="h-1" />
+ </div>
+ ),
duration: Infinity,
});
}
@@ -103,6 +112,14 @@ export function ModelDownloadTracker() {
// Show toast for download start with initial progress
const toastRef = toast({
title: "downloading model",
+ description: (
+ <div className="flex flex-col gap-2">
+ <div className="flex items-center gap-2">
+ <Download className="h-4 w-4" />
+ </div>
+ <Progress value={5} className="h-1" />
+ </div>
+ ),
duration: Infinity, // Will be manually closed when download completes
});
diff --git a/screenpipe-app-tauri/components/settings/recording-settings.tsx b/screenpipe-app-tauri/components/settings/recording-settings.tsx
index a62228e16..6aae5de55 100644
--- a/screenpipe-app-tauri/components/settings/recording-settings.tsx
+++ b/screenpipe-app-tauri/components/settings/recording-settings.tsx
@@ -345,12 +345,12 @@ export function RecordingSettings() {
await new Promise((resolve) => setTimeout(resolve, 2000));
// await relaunch();
- toast({
- title: "settings updated successfully",
- description: "screenpipe has been restarted with new settings.",
- });
+ // toast({
+ // title: "settings updated successfully",
+ // description: "screenpipe has been restarted with new settings.",
+ // });
- window.location.reload();
+ // window.location.reload();
} catch (error) {
console.error("failed to update settings:", error);
toast({
@@ -1044,22 +1044,6 @@ export function RecordingSettings() {
<Badge variant="secondary">cloud</Badge>
</div>
</SelectItem>
- <SelectItem value="whisper-tiny">whisper-tiny</SelectItem>
- <SelectItem value="whisper-tiny-quantized">
- whisper-tiny-quantized
- </SelectItem>
- <SelectItem value="whisper-large">
- whisper-large
- </SelectItem>
- <SelectItem value="whisper-large-quantized">
- whisper-large-quantized
- </SelectItem>
- <SelectItem value="whisper-large-v3-turbo">
- whisper-large-turbo
- </SelectItem>
- <SelectItem value="whisper-large-v3-turbo-quantized">
- whisper-large-turbo-quantized
- </SelectItem>
</SelectContent>
</Select>
</div>
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lock
index 2c9ab56cb..8fb063cb9 100755
--- a/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -5300,7 +5300,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "0.41.7"
+version = "0.41.8"
dependencies = [
"anyhow",
"async-stream",
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index bce5bef1c..5ddf44830 100644
--- a/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "0.41.8"
+version = "0.41.9"
description = ""
authors = ["you"]
license = ""