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
chore: video logs, fix: windows name encoding url
Louis Beaumonte8dde577a176
diff --git a/screenpipe-app-tauri/components/video.tsx b/screenpipe-app-tauri/components/video.tsxindex 7eb18df71..bdfac0eae 100644--- a/screenpipe-app-tauri/components/video.tsx+++ b/screenpipe-app-tauri/components/video.tsx@@ -59,7 +59,9 @@ export const VideoComponent = memo(function VideoComponent({useEffect(() => {async function loadMedia() {try {+ console.log("Loading media:", filePath);const sanitizedPath = sanitizeFilePath(filePath);+ console.log("Sanitized path:", sanitizedPath);if (!sanitizedPath) {throw new Error("Invalid file path");}diff --git a/screenpipe-app-tauri/lib/screenpipe.ts b/screenpipe-app-tauri/lib/screenpipe.tsindex 2525d7dc8..69af4af9c 100644--- a/screenpipe-app-tauri/lib/screenpipe.ts+++ b/screenpipe-app-tauri/lib/screenpipe.ts@@ -143,21 +143,23 @@ export async function queryScreenpipe(): Promise<ScreenpipeResponse | null> {try {console.log("params", params);- const queryParams = new URLSearchParams(- Object.entries({- q: params.q,- offset: params.offset.toString(),- limit: params.limit.toString(),- start_time: params.start_time,- end_time: params.end_time,- content_type: params.content_type,- app_name: params.app_name,- window_name: params.window_name, // Add window_name to query parameters- include_frames: params.include_frames.toString(),- min_length: params.min_length.toString(),- max_length: params.max_length.toString(),- }).filter(([_, v]) => v != null) as [string, string][]- );+ const queryParams = new URLSearchParams();++ // properly encode each parameter+ if (params.q) queryParams.append("q", encodeURIComponent(params.q));+ queryParams.append("offset", params.offset.toString());+ queryParams.append("limit", params.limit.toString());+ queryParams.append("start_time", encodeURIComponent(params.start_time));+ queryParams.append("end_time", encodeURIComponent(params.end_time));+ queryParams.append("content_type", params.content_type);+ if (params.app_name)+ queryParams.append("app_name", encodeURIComponent(params.app_name));+ if (params.window_name)+ queryParams.append("window_name", encodeURIComponent(params.window_name));+ queryParams.append("include_frames", params.include_frames.toString());+ queryParams.append("min_length", params.min_length.toString());+ queryParams.append("max_length", params.max_length.toString());+console.log("calling screenpipe", JSON.stringify(params));const response = await fetch(`http://localhost:3030/search?${queryParams}`);if (!response.ok) {