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: app_name window_name fetch from frame instead of ocr_text (#1651)
Divanshu Grover39c9dd47b30a
diff --git a/pipes/data-table/bun.lockb b/pipes/data-table/bun.lockbindex d97721b28..31ebf9cc7 100755Binary files a/pipes/data-table/bun.lockb and b/pipes/data-table/bun.lockb differdiff --git a/pipes/data-table/src/components/ocr-data-table.tsx b/pipes/data-table/src/components/ocr-data-table.tsxindex 73708b68e..cd6c0985a 100644--- a/pipes/data-table/src/components/ocr-data-table.tsx+++ b/pipes/data-table/src/components/ocr-data-table.tsx@@ -54,9 +54,7 @@ interface OcrText {text: string;text_json: string | null;app_name: string;- // ocr_engine: string;window_name: string | null;- // focused: boolean;timestamp: string;browser_url: string | null;}@@ -206,22 +204,6 @@ const columns: ColumnDef<OcrText>[] = [/>),},- // {- // accessorKey: "ocr_engine",- // header: "Engine",- // cell: ({ row }) => (- // <Badge variant="secondary">{row.getValue("ocr_engine")}</Badge>- // ),- // },- // {- // accessorKey: "focused",- // header: "Focused",- // cell: ({ row }) => (- // <Badge variant={row.getValue("focused") ? "default" : "outline"}>- // {row.getValue("focused") ? "yes" : "no"}- // </Badge>- // ),- // },{id: "actions",cell: ({ row }) => {@@ -291,7 +273,7 @@ export function OcrDataTable() {.replace(/'/g, "''")}%'`: null,appFilter- ? `LOWER(app_name) LIKE '%${appFilter+ ? `LOWER(frames.app_name) LIKE '%${appFilter.toLowerCase().replace(/'/g, "''")}%'`: null,@@ -308,6 +290,7 @@ export function OcrDataTable() {query: `SELECT COUNT(*) as totalFROM ocr_text+ JOIN frames ON ocr_text.frame_id = frames.idWHERE ${filterClauses}`,}),@@ -331,14 +314,12 @@ export function OcrDataTable() {ocr_text.frame_id,ocr_text.text,ocr_text.text_json,- ocr_text.app_name,- ocr_text.ocr_engine,- ocr_text.window_name,- ocr_text.focused,+ frames.app_name,+ frames.window_name,frames.timestamp,frames.browser_urlFROM ocr_text- LEFT JOIN frames ON ocr_text.frame_id = frames.id+ JOIN frames ON ocr_text.frame_id = frames.idWHERE ${filterClauses}ORDER BY ocr_text.frame_id DESCLIMIT ${pageSize}diff --git a/pipes/data-table/src/components/search-command.tsx b/pipes/data-table/src/components/search-command.tsxindex dcc49c7aa..8f279142c 100644--- a/pipes/data-table/src/components/search-command.tsx+++ b/pipes/data-table/src/components/search-command.tsx@@ -89,11 +89,11 @@ export function SearchCommand() {1. Screen Recording:- frames: captures of screen content- (id, video_chunk_id, offset_index, timestamp, name)+ (id, video_chunk_id, offset_index, timestamp, name, app_name, window_name, focused, browser_url)- ocr_text: text extracted from screens- (frame_id, text, text_json, app_name, window_name, focused)+ (frame_id, text, text_json)- ocr_text_fts: optimized text search- (text, app_name, window_name, frame_id)+ (text, frame_id)- ocr_text_embeddings: vector embeddings(id, frame_id, embedding, created_at)diff --git a/pipes/data-table/src/lib/hooks/use-sql-autocomplete.tsx b/pipes/data-table/src/lib/hooks/use-sql-autocomplete.tsxindex 7db3de855..657f8fca6 100644--- a/pipes/data-table/src/lib/hooks/use-sql-autocomplete.tsx+++ b/pipes/data-table/src/lib/hooks/use-sql-autocomplete.tsx@@ -23,12 +23,12 @@ export function useSqlAutocomplete(type: "app" | "window") {} else {const query = `SELECT ${- type === "app" ? "ocr.app_name" : "ocr.window_name"+ type === "app" ? "f.app_name" : "f.window_name"} as name, COUNT(*) as countFROM ocr_text ocrJOIN frames f ON ocr.frame_id = f.idWHERE f.timestamp > datetime('now', '-7 days')- GROUP BY ${type === "app" ? "ocr.app_name" : "ocr.window_name"}+ GROUP BY ${type === "app" ? "f.app_name" : "f.window_name"}ORDER BY count DESCLIMIT 100`;