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

chore: suppress remaining clippy warnings with allow attrs and type aliases

Louis Beaumont6bd9eee1cb75
diff --git a/Cargo.lock b/Cargo.lock
index d5fd2dd00..a637155ba 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6765,7 +6765,7 @@ dependencies = [
[[package]]
name = "screenpipe-audio"
-version = "0.3.275"
+version = "0.3.278"
dependencies = [
"anyhow",
"audiopipe",
@@ -6825,7 +6825,7 @@ dependencies = [
[[package]]
name = "screenpipe-config"
-version = "0.3.275"
+version = "0.3.278"
dependencies = [
"dirs 6.0.0",
"serde",
@@ -6838,7 +6838,7 @@ dependencies = [
[[package]]
name = "screenpipe-connect"
-version = "0.3.275"
+version = "0.3.278"
dependencies = [
"anyhow",
"async-trait",
@@ -6866,7 +6866,7 @@ dependencies = [
[[package]]
name = "screenpipe-core"
-version = "0.3.275"
+version = "0.3.278"
dependencies = [
"accessibility",
"accessibility-sys",
@@ -6912,7 +6912,7 @@ dependencies = [
[[package]]
name = "screenpipe-db"
-version = "0.3.275"
+version = "0.3.278"
dependencies = [
"anyhow",
"chrono",
@@ -6938,7 +6938,7 @@ dependencies = [
[[package]]
name = "screenpipe-engine"
-version = "0.3.275"
+version = "0.3.278"
dependencies = [
"anyhow",
"async-trait",
@@ -7008,7 +7008,7 @@ dependencies = [
[[package]]
name = "screenpipe-events"
-version = "0.3.275"
+version = "0.3.278"
dependencies = [
"anyhow",
"chrono",
@@ -7026,7 +7026,7 @@ dependencies = [
[[package]]
name = "screenpipe-screen"
-version = "0.3.275"
+version = "0.3.278"
dependencies = [
"accessibility-sys",
"anyhow",
@@ -7066,7 +7066,7 @@ dependencies = [
[[package]]
name = "screenpipe-vault"
-version = "0.3.275"
+version = "0.3.278"
dependencies = [
"argon2",
"chacha20poly1305",
diff --git a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx
index abce10a03..a2a57ebdf 100644
--- a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx
@@ -1322,19 +1322,22 @@ export function PipesSection() {
if (pipeEvent?.type === "raw_line") {
text = pipeEvent.text || "";
} else if (pipeEvent) {
- // For structured events (Pi NDJSON), show a summary line
+ // For structured events (Pi NDJSON), show only meaningful content
if (pipeEvent.type === "message_update" && pipeEvent.assistantMessageEvent) {
const evt = pipeEvent.assistantMessageEvent;
if (evt.type === "text_delta" && evt.delta) {
text = evt.delta;
} else if (evt.type === "thinking" && evt.thinking) {
text = `[thinking] ${evt.thinking}`;
+ } else if (evt.type === "toolcall_start" && evt.toolName) {
+ text = `\n> running ${evt.toolName}...\n`;
}
} else if (pipeEvent.type === "tool_use") {
- text = `[tool] ${pipeEvent.name || "unknown"}`;
- } else {
- text = JSON.stringify(pipeEvent);
+ text = `\n> running ${pipeEvent.name || "unknown"}...\n`;
}
+ // Silently skip all other event types (turn_start, turn_end,
+ // message_start, message_end, tool_execution_start/end/update,
+ // session, agent_start/end, etc.) — they are metadata, not content
}
if (text) {
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index 602a23501..adc8ffc8f 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -463,6 +463,15 @@ dependencies = [
"x11rb",
]
+[[package]]
+name = "arc-swap"
+version = "1.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6a3a1fd6f75306b68087b831f025c712524bcb19aad54e557b1129cfa0a2b207"
+dependencies = [
+ "rustversion",
+]
+
[[package]]
name = "arg_enum_proc_macro"
version = "0.3.4"
@@ -6841,7 +6850,7 @@ version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8"
dependencies = [
- "proc-macro-crate 2.0.2",
+ "proc-macro-crate 3.5.0",
"proc-macro2",
"quote",
"syn 2.0.117",
@@ -9641,6 +9650,7 @@ name = "screenpipe-a11y"
version = "0.1.0"
dependencies = [
"anyhow",
+ "arc-swap",
"chrono",
"cidre 0.13.1",
"crossbeam-channel",
@@ -9660,7 +9670,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.3.42"
+version = "2.3.50"
dependencies = [
"anyhow",
"arboard",
@@ -9762,7 +9772,7 @@ dependencies = [
[[package]]
name = "screenpipe-audio"
-version = "0.3.271"
+version = "0.3.278"
dependencies = [
"anyhow",
"audiopipe",
@@ -9817,7 +9827,7 @@ dependencies = [
[[package]]
name = "screenpipe-config"
-version = "0.3.271"
+version = "0.3.278"
dependencies = [
"dirs 6.0.0",
"serde",
@@ -9829,7 +9839,7 @@ dependencies = [
[[package]]
name = "screenpipe-connect"
-version = "0.3.271"
+version = "0.3.278"
dependencies = [
"anyhow",
"async-trait",
@@ -9857,7 +9867,7 @@ dependencies = [
[[package]]
name = "screenpipe-core"
-version = "0.3.271"
+version = "0.3.278"
dependencies = [
"accessibility",
"accessibility-sys",
@@ -9903,7 +9913,7 @@ dependencies = [
[[package]]
name = "screenpipe-db"
-version = "0.3.271"
+version = "0.3.278"
dependencies = [
"anyhow",
"chrono",
@@ -9928,7 +9938,7 @@ dependencies = [
[[package]]
name = "screenpipe-engine"
-version = "0.3.271"
+version = "0.3.278"
dependencies = [
"anyhow",
"async-trait",
@@ -9991,7 +10001,7 @@ dependencies = [
[[package]]
name = "screenpipe-events"
-version = "0.3.271"
+version = "0.3.278"
dependencies = [
"anyhow",
"chrono",
@@ -10007,7 +10017,7 @@ dependencies = [
[[package]]
name = "screenpipe-screen"
-version = "0.3.271"
+version = "0.3.278"
dependencies = [
"accessibility-sys",
"anyhow",
@@ -10043,7 +10053,7 @@ dependencies = [
[[package]]
name = "screenpipe-vault"
-version = "0.3.271"
+version = "0.3.278"
dependencies = [
"argon2",
"chacha20poly1305",
diff --git a/crates/screenpipe-audio/src/speaker/prepare_segments.rs b/crates/screenpipe-audio/src/speaker/prepare_segments.rs
index c2453a239..185dd715a 100644
--- a/crates/screenpipe-audio/src/speaker/prepare_segments.rs
+++ b/crates/screenpipe-audio/src/speaker/prepare_segments.rs
@@ -18,6 +18,7 @@ use super::{
embedding::EmbeddingExtractor, embedding_manager::EmbeddingManager, segment::SpeechSegment,
};
+#[allow(clippy::too_many_arguments)]
pub async fn prepare_segments(
audio_data: &[f32],
vad_engine: Arc<Mutex<Box<dyn VadEngine + Send>>>,
diff --git a/crates/screenpipe-audio/src/transcription/openai_compatible/batch.rs b/crates/screenpipe-audio/src/transcription/openai_compatible/batch.rs
index d71386286..a2d1a830a 100644
--- a/crates/screenpipe-audio/src/transcription/openai_compatible/batch.rs
+++ b/crates/screenpipe-audio/src/transcription/openai_compatible/batch.rs
@@ -32,6 +32,7 @@ use crate::transcription::stt::OPENAI_COMPATIBLE_TIMEOUT_SECS;
/// (used by VibeVoice-ASR `--context`, Whisper `--initial-prompt`, etc.)
/// * `custom_headers` - Optional custom HTTP headers to include in the request
/// * `raw_audio` - If true, send uncompressed WAV instead of MP3
+#[allow(clippy::too_many_arguments)]
pub async fn transcribe_with_openai_compatible(
client: Option<Arc<Client>>,
endpoint: &str,
diff --git a/crates/screenpipe-core/src/agents/pi.rs b/crates/screenpipe-core/src/agents/pi.rs
index e26d1a0b1..415f79405 100644
--- a/crates/screenpipe-core/src/agents/pi.rs
+++ b/crates/screenpipe-core/src/agents/pi.rs
@@ -151,6 +151,7 @@ impl PiExecutor {
use crate::pipes::permissions::PipePermissions;
let perms = PipePermissions::from_config(config);
+ #[allow(clippy::type_complexity)]
let all_skills: &[(&str, &str, Box<dyn Fn(&PipePermissions) -> bool>)] = &[
(
"screenpipe-api",
diff --git a/crates/screenpipe-db/src/db.rs b/crates/screenpipe-db/src/db.rs
index 2a26042ba..94c6eb5e3 100644
--- a/crates/screenpipe-db/src/db.rs
+++ b/crates/screenpipe-db/src/db.rs
@@ -514,6 +514,7 @@ impl DatabaseManager {
}
/// Insert a synced frame via the write queue. Returns the frame ID (0 if skipped due to conflict).
+ #[allow(clippy::too_many_arguments)]
pub async fn sync_insert_frame(
&self,
sync_id: &str,
@@ -570,6 +571,7 @@ impl DatabaseManager {
}
/// Insert a synced transcription via the write queue. Returns the audio_chunk_id.
+ #[allow(clippy::too_many_arguments)]
pub async fn sync_insert_transcription(
&self,
sync_id: &str,
@@ -600,6 +602,7 @@ impl DatabaseManager {
}
/// Insert a synced accessibility record via the write queue.
+ #[allow(clippy::too_many_arguments)]
pub async fn sync_insert_accessibility(
&self,
sync_id: &str,
@@ -1119,6 +1122,7 @@ impl DatabaseManager {
/// Replace all transcription rows for an audio chunk with a single new transcription.
/// Used by the re-transcribe endpoint. Deletes existing rows first to avoid
/// UNIQUE constraint violations on (audio_chunk_id, transcription).
+ #[allow(clippy::too_many_arguments)]
pub async fn replace_audio_transcription(
&self,
audio_chunk_id: i64,
@@ -6848,6 +6852,7 @@ LIMIT ? OFFSET ?
Ok(rows)
}
+ #[allow(clippy::too_many_arguments)]
pub async fn update_meeting(
&self,
id: i64,
@@ -7101,6 +7106,7 @@ LIMIT ? OFFSET ?
Ok(())
}
+ #[allow(clippy::too_many_arguments)]
pub async fn list_memories(
&self,
query: Option<&str>,
diff --git a/crates/screenpipe-engine/src/archive.rs b/crates/screenpipe-engine/src/archive.rs
index e5c5531cd..d1d128b63 100644
--- a/crates/screenpipe-engine/src/archive.rs
+++ b/crates/screenpipe-engine/src/archive.rs
@@ -766,7 +766,8 @@ async fn get_archive_chunk(
// Get OCR for frames (include app_name/window_name for cross-machine sync)
let ocr_records = if !frame_ids.is_empty() {
- let ocr_results: Vec<(i64, String, bool, Option<String>, Option<String>)> = sqlx::query_as(
+ type OcrRow = (i64, String, bool, Option<String>, Option<String>);
+ let ocr_results: Vec<OcrRow> = sqlx::query_as(
r#"
SELECT frame_id, text, focused, app_name, window_name
FROM ocr_text
diff --git a/crates/screenpipe-engine/src/event_driven_capture.rs b/crates/screenpipe-engine/src/event_driven_capture.rs
index 687707a89..7d15f6914 100644
--- a/crates/screenpipe-engine/src/event_driven_capture.rs
+++ b/crates/screenpipe-engine/src/event_driven_capture.rs
@@ -976,6 +976,21 @@ async fn do_capture(
})
}
+/// Cheaply get the focused app name via AX APIs without walking the tree.
+/// Used to apply the walk budget to non-AppSwitch triggers (visual change,
+/// idle, manual) so that expensive apps like Chrome get throttled even
+/// when the capture wasn't triggered by an app switch.
+#[cfg(target_os = "macos")]
+fn get_focused_app_name_lightweight() -> Option<String> {
+ use cidre::{ax, ns};
+ let sys = ax::UiElement::sys_wide();
+ let app = sys.focused_app().ok()?;
+ let pid = app.pid().ok()?;
+ ns::RunningApp::with_pid(pid)
+ .and_then(|app| app.localized_name())
+ .map(|s| s.to_string())
+}
+
#[cfg(test)]
mod tests {
use super::*;
@@ -1086,18 +1101,3 @@ mod tests {
assert!((config.visual_change_threshold - 0.05).abs() < f64::EPSILON);
}
}
-
-/// Cheaply get the focused app name via AX APIs without walking the tree.
-/// Used to apply the walk budget to non-AppSwitch triggers (visual change,
-/// idle, manual) so that expensive apps like Chrome get throttled even
-/// when the capture wasn't triggered by an app switch.
-#[cfg(target_os = "macos")]
-fn get_focused_app_name_lightweight() -> Option<String> {
- use cidre::{ax, ns};
- let sys = ax::UiElement::sys_wide();
- let app = sys.focused_app().ok()?;
- let pid = app.pid().ok()?;
- ns::RunningApp::with_pid(pid)
- .and_then(|app| app.localized_name())
- .map(|s| s.to_string())
-}
diff --git a/crates/screenpipe-engine/src/logging.rs b/crates/screenpipe-engine/src/logging.rs
index 67cc97878..e318c2dfd 100644
--- a/crates/screenpipe-engine/src/logging.rs
+++ b/crates/screenpipe-engine/src/logging.rs
@@ -610,8 +610,8 @@ mod tests {
// Pre-create two files for today.
let f0 = tmp.path().join(format!("test.{}.0.log", today));
let f1 = tmp.path().join(format!("test.{}.1.log", today));
- fs::write(&f0, &[b'A'; 20]).unwrap();
- fs::write(&f1, &[b'B'; 20]).unwrap();
+ fs::write(&f0, [b'A'; 20]).unwrap();
+ fs::write(&f1, [b'B'; 20]).unwrap();
// Build writer — should resume at index 1 (latest for today).
let mut w = test_writer(tmp.path(), 100, 10_000);
@@ -630,7 +630,7 @@ mod tests {
// Pre-create a file that's already at the size limit.
let f0 = tmp.path().join(format!("test.{}.0.log", today));
- fs::write(&f0, &[b'X'; 50]).unwrap();
+ fs::write(&f0, [b'X'; 50]).unwrap();
// max_file_size = 50, so builder should start at index 1.
let mut w = test_writer(tmp.path(), 50, 10_000);
@@ -658,7 +658,7 @@ mod tests {
// Create files with indices 0, 2, 5 (gaps are fine).
for i in [0, 2, 5] {
let name = format!("test.{}.{}.log", today, i);
- fs::write(tmp.path().join(name), &[0u8; 10]).unwrap();
+ fs::write(tmp.path().join(name), [0u8; 10]).unwrap();
}
let (max_idx, total) = scan_existing(tmp.path(), "test", "log", &today);
@@ -672,9 +672,9 @@ mod tests {
let today = today_string();
// File for a different date.
- fs::write(tmp.path().join("test.1999-01-01.0.log"), &[0u8; 100]).unwrap();
+ fs::write(tmp.path().join("test.1999-01-01.0.log"), [0u8; 100]).unwrap();
// File for today.
- fs::write(tmp.path().join(format!("test.{}.3.log", today)), &[0u8; 10]).unwrap();
+ fs::write(tmp.path().join(format!("test.{}.3.log", today)), [0u8; 10]).unwrap();
let (max_idx, total) = scan_existing(tmp.path(), "test", "log", &today);
assert_eq!(max_idx, 3);
@@ -689,8 +689,8 @@ mod tests {
// Simulate old-style daily files (no index segment).
// These match `test.*.log` so collect_log_files picks them up.
- fs::write(tmp.path().join("test.2026-01-01.log"), &[0u8; 80]).unwrap();
- fs::write(tmp.path().join("test.2026-01-02.log"), &[0u8; 80]).unwrap();
+ fs::write(tmp.path().join("test.2026-01-01.log"), [0u8; 80]).unwrap();
+ fs::write(tmp.path().join("test.2026-01-02.log"), [0u8; 80]).unwrap();
// Total cap 100. Two old files = 160, exceeds cap.
let mut w = test_writer(tmp.path(), 1024, 100);
diff --git a/crates/screenpipe-engine/src/meeting_detector.rs b/crates/screenpipe-engine/src/meeting_detector.rs
index ccd485b70..52e82ae01 100644
--- a/crates/screenpipe-engine/src/meeting_detector.rs
+++ b/crates/screenpipe-engine/src/meeting_detector.rs
@@ -752,6 +752,7 @@ impl MeetingUiScanner {
/// Uses `PrecomputedSignal` to avoid per-signal `.to_lowercase()` allocations.
/// Lowercases node title/desc/identifier ONCE per node, not once per signal.
#[cfg(target_os = "macos")]
+#[allow(clippy::too_many_arguments)]
fn walk_for_signals(
elem: &cidre::ax::UiElement,
signals: &[PrecomputedSignal],
@@ -883,15 +884,15 @@ fn check_signal_match(
) -> bool {
match signal {
CallSignal::AutomationId(id) => {
- identifier.map_or(false, |ident| ident.eq_ignore_ascii_case(id))
+ identifier.is_some_and(|ident| ident.eq_ignore_ascii_case(id))
+ }
+ CallSignal::AutomationIdContains(substr) => {
+ identifier.is_some_and(|ident| ident.to_lowercase().contains(&substr.to_lowercase()))
}
- CallSignal::AutomationIdContains(substr) => identifier.map_or(false, |ident| {
- ident.to_lowercase().contains(&substr.to_lowercase())
- }),
CallSignal::KeyboardShortcut(shortcut) => {
let shortcut_lower = shortcut.to_lowercase();
- let in_desc = desc.map_or(false, |d| d.to_lowercase().contains(&shortcut_lower));
- let in_title = title.map_or(false, |t| t.to_lowercase().contains(&shortcut_lower));
+ let in_desc = desc.is_some_and(|d| d.to_lowercase().contains(&shortcut_lower));
+ let in_title = title.is_some_and(|t| t.to_lowercase().contains(&shortcut_lower));
in_desc || in_title
}
CallSignal::RoleWithName {
@@ -902,8 +903,8 @@ fn check_signal_match(
return false;
}
let name_lower = name_contains.to_lowercase();
- let in_title = title.map_or(false, |t| t.to_lowercase().contains(&name_lower));
- let in_desc = desc.map_or(false, |d| d.to_lowercase().contains(&name_lower));
+ let in_title = title.is_some_and(|t| t.to_lowercase().contains(&name_lower));
+ let in_desc = desc.is_some_and(|d| d.to_lowercase().contains(&name_lower));
in_title || in_desc
}
CallSignal::MenuBarItem { title_contains } => {
@@ -912,26 +913,26 @@ fn check_signal_match(
return false;
}
let needle = title_contains.to_lowercase();
- title.map_or(false, |t| t.to_lowercase().contains(&needle))
+ title.is_some_and(|t| t.to_lowercase().contains(&needle))
}
CallSignal::MenuItemId(expected_id) => {
// Match AXMenuItem by automation ID (Zoom's "onMuteAudio:" etc.)
if role != "AXMenuItem" {
return false;
}
- identifier.map_or(false, |ident| ident == *expected_id)
+ identifier == Some(*expected_id)
}
CallSignal::NameContains(needle) => {
let needle_lower = needle.to_lowercase();
- let in_title = title.map_or(false, |t| t.to_lowercase().contains(&needle_lower));
- let in_desc = desc.map_or(false, |d| d.to_lowercase().contains(&needle_lower));
+ let in_title = title.is_some_and(|t| t.to_lowercase().contains(&needle_lower));
+ let in_desc = desc.is_some_and(|d| d.to_lowercase().contains(&needle_lower));
in_title || in_desc
}
CallSignal::WindowTitle { title_contains } => {
// WindowTitle is checked separately against the root window element,
// not during descendant walking. But handle it here for completeness.
let needle = title_contains.to_lowercase();
- title.map_or(false, |t| t.to_lowercase().contains(&needle))
+ title.is_some_and(|t| t.to_lowercase().contains(&needle))
}
}
}
@@ -3665,7 +3666,7 @@ mod tests {
// Simulate Zoom idle: only "Meeting" menu bar item found (1 signal).
// With min_signals_required=2, this should NOT trigger detection.
let profiles = load_detection_profiles();
- let zoom = profiles
+ let _zoom = profiles
.iter()
.find(|p| p.app_identifiers.macos_app_names.contains(&"zoom.us"))
.expect("Zoom profile not found");
@@ -3753,8 +3754,7 @@ mod tests {
let has_broad_pattern = meet
.app_identifiers
.browser_url_patterns
- .iter()
- .any(|p| *p == "google meet");
+ .contains(&"google meet");
assert!(
!has_broad_pattern,
"Google Meet browser_url_patterns must NOT include bare 'google meet' — \
@@ -3861,7 +3861,7 @@ mod tests {
// Cmd+D / Ctrl+D should NOT match any meeting signal for browser-based
// profiles, because it's the universal bookmark shortcut.
let signal_cmd_d = CallSignal::KeyboardShortcut("\u{2318}D");
- let signal_ctrl_d = CallSignal::KeyboardShortcut("Ctrl+D");
+ let _signal_ctrl_d = CallSignal::KeyboardShortcut("Ctrl+D");
// A random AXButton with ⌘D in its description (e.g. bookmark button)
// should not be detected as a meeting signal
@@ -3909,7 +3909,7 @@ mod tests {
// Patterns without dots should NOT match titles
let non_domain_patterns = ["google meet", "zoom meeting", "slack huddle"];
let title = "Join with Google Meet - Calendar";
- let title_lower = title.to_lowercase();
+ let _title_lower = title.to_lowercase();
for pattern in &non_domain_patterns {
// Domain-only filter: patterns without dots are excluded from title matching
diff --git a/crates/screenpipe-engine/src/routes/browser.rs b/crates/screenpipe-engine/src/routes/browser.rs
index 8b9019fc0..e483b9e2e 100644
--- a/crates/screenpipe-engine/src/routes/browser.rs
+++ b/crates/screenpipe-engine/src/routes/browser.rs
@@ -26,6 +26,7 @@ use tracing::{debug, info, warn};
/// Shared state for the browser bridge.
pub struct BrowserBridge {
/// Sender to the connected extension (None if disconnected)
+ #[allow(clippy::type_complexity)]
extension_tx: RwLock<Option<Arc<Mutex<futures::stream::SplitSink<WebSocket, Message>>>>>,
/// Pending eval requests keyed by request ID
pending: Mutex<std::collections::HashMap<String, oneshot::Sender<EvalResult>>>,
diff --git a/crates/screenpipe-engine/src/sync_provider.rs b/crates/screenpipe-engine/src/sync_provider.rs
index ac24589f6..4264ed65f 100644
--- a/crates/screenpipe-engine/src/sync_provider.rs
+++ b/crates/screenpipe-engine/src/sync_provider.rs
@@ -189,7 +189,8 @@ impl ScreenpipeSyncProvider {
let time_end = frames.last().map(|f| f.1.clone()).unwrap();
// Get OCR for these frames (include app_name/window_name for cross-machine sync)
- let ocr_results: Vec<(i64, String, bool, Option<String>, Option<String>)> = sqlx::query_as(
+ type OcrRow = (i64, String, bool, Option<String>, Option<String>);
+ let ocr_results: Vec<OcrRow> = sqlx::query_as(
r#"
SELECT frame_id, text, focused, app_name, window_name
FROM ocr_text
diff --git a/crates/screenpipe-engine/tests/frame_extraction_test.rs b/crates/screenpipe-engine/tests/frame_extraction_test.rs
index 3af34461f..13173d4d0 100644
--- a/crates/screenpipe-engine/tests/frame_extraction_test.rs
+++ b/crates/screenpipe-engine/tests/frame_extraction_test.rs
@@ -192,7 +192,7 @@ async fn test_fragmented_mp4_allows_extraction_during_write() {
// Start ffmpeg with fragmented MP4 flags (same as our fix)
let ffmpeg = find_ffmpeg();
- let mut child = Command::new(&ffmpeg)
+ let child = Command::new(&ffmpeg)
.args([
"-f",
"lavfi",
@@ -459,7 +459,7 @@ async fn test_race_condition_during_recording() {
// Start ffmpeg encoding (simulates video recording)
let ffmpeg = find_ffmpeg();
- let mut child = Command::new(&ffmpeg)
+ let child = Command::new(&ffmpeg)
.args([
"-f",
"lavfi",
diff --git a/crates/screenpipe-engine/tests/stream_frames_test.rs b/crates/screenpipe-engine/tests/stream_frames_test.rs
index 600571b55..bdb6d9de2 100644
--- a/crates/screenpipe-engine/tests/stream_frames_test.rs
+++ b/crates/screenpipe-engine/tests/stream_frames_test.rs
@@ -103,7 +103,7 @@ mod tests {
// Read initial frames (with timeout)
let mut received_frames = Vec::new();
- let initial_fetch = timeout(std::time::Duration::from_secs(5), async {
+ let _initial_fetch = timeout(std::time::Duration::from_secs(5), async {
while let Some(Ok(msg)) = read.next().await {
if let Message::Text(text) = msg {
if text == "\"keep-alive-text\"" {
diff --git a/crates/screenpipe-engine/tests/timeline_refresh_bug_test.rs b/crates/screenpipe-engine/tests/timeline_refresh_bug_test.rs
index 3d63e381e..98ea49377 100644
--- a/crates/screenpipe-engine/tests/timeline_refresh_bug_test.rs
+++ b/crates/screenpipe-engine/tests/timeline_refresh_bug_test.rs
@@ -347,7 +347,7 @@ mod tests {
let start_of_day = now.date_naive().and_hms_opt(0, 0, 0).unwrap();
let end_of_day = now.date_naive().and_hms_opt(23, 59, 59).unwrap();
- let start_time = Utc.from_utc_datetime(&start_of_day);
+ let _start_time = Utc.from_utc_datetime(&start_of_day);
let end_time = Utc.from_utc_datetime(&end_of_day);
// Condition in server code: `if now <= end_time`
@@ -545,7 +545,7 @@ mod tests {
// Scenario 2: end_time is in the past (historical request) - should NOT poll
let past_end = now - Duration::hours(1);
assert!(
- !(now <= past_end),
+ (now > past_end),
"Should NOT poll when end_time is in the past"
);