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(a11y,ci): unbreak Rust CI on Windows + Ubuntu and Code Quality fmt
Louis Beaumont57255ed4666b
diff --git a/crates/screenpipe-a11y/src/platform/windows.rs b/crates/screenpipe-a11y/src/platform/windows.rsindex 0e247c5c4..39739367b 100644--- a/crates/screenpipe-a11y/src/platform/windows.rs+++ b/crates/screenpipe-a11y/src/platform/windows.rs@@ -1384,7 +1384,7 @@ mod tests {assert_eq!(0x08, 8); // Win}- fn make_test_state(tx: tokio::sync::mpsc::Sender<UiEvent>, text: &str) -> HookState {+ fn make_test_state(tx: crossbeam_channel::Sender<UiEvent>, text: &str) -> HookState {HookState {tx,start: std::time::Instant::now(),@@ -1407,7 +1407,7 @@ mod tests {#[test]fn test_flush_text_buffer() {- let (tx, mut rx) = tokio::sync::mpsc::channel(64);+ let (tx, rx) = crossbeam_channel::bounded(64);let mut state = make_test_state(tx, "hello world");// Buffer has content — flush should send a Text event@@ -1426,7 +1426,7 @@ mod tests {#[test]fn test_flush_empty_buffer_is_noop() {- let (tx, mut rx) = tokio::sync::mpsc::channel(64);+ let (tx, rx) = crossbeam_channel::bounded(64);let mut state = make_test_state(tx, "");flush_text_buffer(&mut state);diff --git a/crates/screenpipe-a11y/src/tree/electron_docs.rs b/crates/screenpipe-a11y/src/tree/electron_docs.rsindex b1d90cbc8..3e6163aeb 100644--- a/crates/screenpipe-a11y/src/tree/electron_docs.rs+++ b/crates/screenpipe-a11y/src/tree/electron_docs.rs@@ -490,7 +490,14 @@ mod tests {/// This is the regression test for the v2.4.139 ship-bug: the/// previous shellout returned None on Cursor's real DB, so this/// path silently dropped every editor frame's document_path.+ ///+ /// macOS-only: hardcodes `Library/Application Support/...` to+ /// match what `dirs::config_dir()` returns on macOS. On Linux it+ /// returns `~/.config` and on Windows `%APPDATA%`, so the test+ /// scaffolding wouldn't line up. The resolver itself is+ /// cross-platform — only the fixture layout is OS-specific.#[test]+ #[cfg(target_os = "macos")]fn vscode_fork_active_path_against_real_sqlite() {let tmp = tempfile::tempdir().unwrap();let ws_dir = tmpdiff --git a/crates/screenpipe-a11y/src/tree/windows.rs b/crates/screenpipe-a11y/src/tree/windows.rsindex c87a8d175..9025b7547 100644--- a/crates/screenpipe-a11y/src/tree/windows.rs+++ b/crates/screenpipe-a11y/src/tree/windows.rs@@ -785,7 +785,8 @@ mod tests {&mut buf,&mut nodes,&mut url,- &None,+ &None, // monitor_rect+ &None, // window_rect&[],&mut false,);@@ -854,7 +855,8 @@ mod tests {&mut buf,&mut nodes,&mut url,- &None,+ &None, // monitor_rect+ &None, // window_rect&[],&mut false,);@@ -944,7 +946,8 @@ mod tests {&mut buf,&mut nodes,&mut url,- &None,+ &None, // monitor_rect+ &None, // window_rect&ignored,&mut hit,);diff --git a/crates/screenpipe-connect/src/connections/posthog.rs b/crates/screenpipe-connect/src/connections/posthog.rsindex f45ff5425..03461fc68 100644--- a/crates/screenpipe-connect/src/connections/posthog.rs+++ b/crates/screenpipe-connect/src/connections/posthog.rs@@ -81,10 +81,7 @@ impl Integration for PostHog {let project_id = require_str(creds, "project_id")?;let host = host_or_default(creds);let resp: Value = client- .get(format!(- "https://{}/api/projects/{}/",- host, project_id- ))+ .get(format!("https://{}/api/projects/{}/", host, project_id)).bearer_auth(api_key).send().await?diff --git a/crates/screenpipe-core/src/pipes/mod.rs b/crates/screenpipe-core/src/pipes/mod.rsindex ad2187398..de17b6b88 100644--- a/crates/screenpipe-core/src/pipes/mod.rs+++ b/crates/screenpipe-core/src/pipes/mod.rs@@ -5229,7 +5229,8 @@ mod tests {privacy_filter: false,trigger: None,};- let sys = render_pipe_system_prompt("body text", 3030, Some("You are a helpful assistant"), None);+ let sys =+ render_pipe_system_prompt("body text", 3030, Some("You are a helpful assistant"), None);assert!(sys.starts_with("You are a helpful assistant\n\n"));assert!(sys.contains("body text"));assert!(sys.contains("http://localhost:3030"));diff --git a/crates/screenpipe-engine/src/pipes_api.rs b/crates/screenpipe-engine/src/pipes_api.rsindex 4c17712cc..d1bca1e6c 100644--- a/crates/screenpipe-engine/src/pipes_api.rs+++ b/crates/screenpipe-engine/src/pipes_api.rs@@ -199,7 +199,11 @@ pub async fn run_pipe_now(// Refresh connections context so the pipe system prompt includes currently// connected integrations (Google Calendar, Gmail, etc.).- let screenpipe_dir = mgr.pipes_dir().parent().unwrap_or(mgr.pipes_dir()).to_path_buf();+ let screenpipe_dir = mgr+ .pipes_dir()+ .parent()+ .unwrap_or(mgr.pipes_dir())+ .to_path_buf();let api_port = mgr.api_port();let ss = secret_store.as_ref().map(|e| e.0.as_ref());let conn_ctx = render_context(&screenpipe_dir, api_port, ss).await;