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 fix build, fix disk usage, fix header ui

Louis Beaumont79e532856118
diff --git a/screenpipe-app-tauri/components/header.tsx b/screenpipe-app-tauri/components/header.tsx
index e327a8f3c..5b73903de 100644
--- a/screenpipe-app-tauri/components/header.tsx
+++ b/screenpipe-app-tauri/components/header.tsx
@@ -131,7 +131,7 @@ export default function Header() {
<HealthStatus className="mt-3 cursor-pointer" />
<Settings />
- <Button
+ {/* <Button
variant="ghost"
size="icon"
onClick={() => setShowInbox(!showInbox)}
@@ -139,7 +139,7 @@ export default function Header() {
>
<Bell className="h-4 w-4" />
<span className="sr-only">notifications</span>
- </Button>
+ </Button> */}
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
diff --git a/screenpipe-app-tauri/components/pipe-store.tsx b/screenpipe-app-tauri/components/pipe-store.tsx
index 8271be129..cbe125cc6 100644
--- a/screenpipe-app-tauri/components/pipe-store.tsx
+++ b/screenpipe-app-tauri/components/pipe-store.tsx
@@ -1197,7 +1197,7 @@ export const PipeStore: React.FC = () => {
disabled={isPurging}
variant={"outline"}
>
- Cancel
+ cancel
</Button>
<Button
onClick={handleResetAllPipes}
@@ -1209,7 +1209,7 @@ export const PipeStore: React.FC = () => {
reseting all pipes...
</>
) : (
- "Confirm"
+ "confirm"
)}
</Button>
</div>
diff --git a/screenpipe-app-tauri/components/screenpipe-status.tsx b/screenpipe-app-tauri/components/screenpipe-status.tsx
index b6bc72335..4928ec406 100644
--- a/screenpipe-app-tauri/components/screenpipe-status.tsx
+++ b/screenpipe-app-tauri/components/screenpipe-status.tsx
@@ -12,7 +12,7 @@ import { toast } from "./ui/use-toast";
import { Button } from "./ui/button";
import { Separator } from "./ui/separator";
import { useHealthCheck } from "@/lib/hooks/use-health-check";
-import { Folder, Power, Settings } from "lucide-react";
+import { Folder, Power, Settings, Activity } from "lucide-react";
import { open as openUrl } from "@tauri-apps/plugin-shell";
import { LogFileButton } from "./log-file-button";
@@ -129,8 +129,8 @@ const HealthStatus = ({ className }: { className?: string }) => {
)}
onClick={handleOpenStatusDialog}
>
- {/* <Activity className="mr-2 h-4 w-4" /> */}
- <Power className="mr-2 h-4 w-4" />
+ {/* <Power className="mr-2 h-4 w-4" /> */}
+ <Activity className="mr-2 h-4 w-4" />
<span
className={`ml-1 w-2 h-2 rounded-full ${statusColor} inline-block ${
statusColor === "bg-red-500" ? "animate-pulse" : ""
diff --git a/screenpipe-app-tauri/components/settings/disk-usage.tsx b/screenpipe-app-tauri/components/settings/disk-usage.tsx
index 4693f181f..dcec51d0e 100644
--- a/screenpipe-app-tauri/components/settings/disk-usage.tsx
+++ b/screenpipe-app-tauri/components/settings/disk-usage.tsx
@@ -66,27 +66,28 @@ export default function DiskUsage() {
const getDisk = async () => {
setLoading(true);
try {
- const cachedData = await localforage.getItem<{
- diskData: DiskUsageData;
- lastUpdated: number;
- }>("diskUsage");
+ // const cachedData = await localforage.getItem<{
+ // diskData: DiskUsageData;
+ // lastUpdated: number;
+ // }>("diskUsage");
const now = Date.now();
const twoDaysInMillis = 2 * 24 * 60 * 60 * 1000;
- if (cachedData && now - cachedData.lastUpdated < twoDaysInMillis) {
- setDiskUsage(cachedData.diskData);
- setLoading(false);
- } else {
- const result = await invoke<DiskUsageData>("get_disk_usage");
- await new Promise<DiskUsageData>((resolve) => {
- setTimeout(() => resolve(result), 3000);
- });
- await localforage.setItem("diskUsage", {
- diskData: result,
- lastUpdated: now,
- });
- setDiskUsage(result);
- setLoading(false);
- }
+ // if (cachedData && now - cachedData.lastUpdated < twoDaysInMillis) {
+ // setDiskUsage(cachedData.diskData);
+ // setLoading(false);
+ // } else {
+ const result = await invoke<DiskUsageData>("get_disk_usage");
+ console.log("result", result);
+ // await new Promise<DiskUsageData>((resolve) => {
+ // setTimeout(() => resolve(result), 3000);
+ // });
+ // await localforage.setItem("diskUsage", {
+ // diskData: result,
+ // lastUpdated: now,
+ // });
+ setDiskUsage(result);
+ setLoading(false);
+ // }
} catch (error) {
console.error("Failed to fetch disk usage:", error);
toast({
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lock
index e3db11790..3b27c08c3 100755
--- a/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -3810,7 +3810,7 @@ version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "681030a937600a36906c185595136d26abfebb4aa9c65701cefcaf8578bb982b"
dependencies = [
- "proc-macro-crate 1.3.1",
+ "proc-macro-crate 3.2.0",
"proc-macro2",
"quote",
"syn 2.0.90",
@@ -5289,7 +5289,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "0.39.8"
+version = "0.39.9"
dependencies = [
"anyhow",
"async-stream",
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index e013eb718..b3f26c427 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.39.8"
+version = "0.39.9"
description = ""
authors = ["you"]
license = ""
diff --git a/screenpipe-app-tauri/src-tauri/src/disk_usage.rs b/screenpipe-app-tauri/src-tauri/src/disk_usage.rs
index 6cdddcf6d..c46160c57 100644
--- a/screenpipe-app-tauri/src-tauri/src/disk_usage.rs
+++ b/screenpipe-app-tauri/src-tauri/src/disk_usage.rs
@@ -94,7 +94,9 @@ pub async fn disk_usage(screenpipe_dir: &PathBuf) -> Result<Option<DiskUsage>, S
// Check if cache exists and is recent
if let Ok(content) = fs::read_to_string(&cache_file) {
+ info!("cache file found: {}", cache_file.to_string_lossy());
if let Ok(cached) = serde_json::from_str::<CachedDiskUsage>(&content) {
+ info!("cached: {:?}", cached);
let now = chrono::Utc::now().timestamp();
let two_days = 2 * 24 * 60 * 60; // 2 days in seconds
if now - cached.timestamp < two_days {
@@ -175,6 +177,8 @@ pub async fn disk_usage(screenpipe_dir: &PathBuf) -> Result<Option<DiskUsage>, S
usage: disk_usage.clone(),
};
+ info!("writing cache file: {}", cache_file.to_string_lossy());
+
if let Err(e) = fs::write(&cache_file, serde_json::to_string_pretty(&cached).unwrap()) {
info!("Failed to write cache file: {}", e);
}
diff --git a/screenpipe-core/Cargo.toml b/screenpipe-core/Cargo.toml
index 3ad470701..359f328c5 100644
--- a/screenpipe-core/Cargo.toml
+++ b/screenpipe-core/Cargo.toml
@@ -23,7 +23,7 @@ hf-hub = { workspace = true, features = [
"native-tls",
] }
http-cache-reqwest = "0.15.0"
-reqwest-middleware = "0.4.0"
+reqwest-middleware = "0.4.1"
tokio = { workspace = true }
# Security