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 settings check-now toast when update is already pending (#3759)
Harsh Kumar8d8497620a16
diff --git a/apps/screenpipe-app-tauri/components/settings/general-settings.tsx b/apps/screenpipe-app-tauri/components/settings/general-settings.tsxindex 000bfc75d..b7e0131cf 100644--- a/apps/screenpipe-app-tauri/components/settings/general-settings.tsx+++ b/apps/screenpipe-app-tauri/components/settings/general-settings.tsx@@ -36,6 +36,32 @@ export default function GeneralSettings() {const handleCheckForUpdates = async () => {setIsCheckingForUpdate(true);try {+ const pendingRes = await commands.getPendingUpdate();+ if (pendingRes.status === "ok" && pendingRes.data) {+ const pending = pendingRes.data;+ if (pending.auth_required) {+ toast({+ title: "update available",+ description: `v${pending.version} is available — sign in to download it`,+ });+ return;+ }++ if (pending.downloaded) {+ toast({+ title: "update ready",+ description: `v${pending.version} is ready — restart to update`,+ });+ return;+ }++ toast({+ title: "update found",+ description: `v${pending.version} is still downloading in the background`,+ });+ return;+ }+const res = await commands.triggerUpdateCheck();if (res.status === "error") throw new Error(res.error);const updateFound = res.data;