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
feat(capture): expose capture_scroll via CLI
Louis Beaumontdd712c40401d
diff --git a/crates/screenpipe-config/src/recording.rs b/crates/screenpipe-config/src/recording.rsindex 9ec72d287..2cfa553ce 100644--- a/crates/screenpipe-config/src/recording.rs+++ b/crates/screenpipe-config/src/recording.rs@@ -211,6 +211,15 @@ pub struct RecordingSettings {#[serde(rename = "captureOnClipboard", default)]pub capture_on_clipboard: Option<bool>,+ /// Override `UiRecorderConfig::capture_scroll`.+ /// None = engine default (false). When true, scroll wheel events are+ /// recorded into `ui_events` so the `ScrollBurstTracker` can fire a+ /// `ScrollStop` trigger at burst-end and link the last scroll row to+ /// the resulting frame. Off by default — wheel ticks fire at ~60Hz+ /// and inflate the table fast.+ #[serde(rename = "captureScroll", default)]+ pub capture_scroll: Option<bool>,+/// Prioritize mouse/keyboard input latency over a11y event completeness./// Opt-in master switch for the three coordinated optimizations defined on/// `UiCaptureConfig.prioritize_input_latency`.@@ -484,6 +493,7 @@ impl Default for RecordingSettings {min_capture_interval_ms: None,capture_on_keystroke: None,capture_on_clipboard: None,+ capture_scroll: None,prioritize_input_latency: false,extraction_thread_priority: default_extraction_thread_priority(),pause_extraction_on_input_ms: default_pause_extraction_on_input_ms(),diff --git a/crates/screenpipe-engine/src/cli/mod.rs b/crates/screenpipe-engine/src/cli/mod.rsindex 6e1259e1a..7e9ffcc64 100644--- a/crates/screenpipe-engine/src/cli/mod.rs+++ b/crates/screenpipe-engine/src/cli/mod.rs@@ -444,6 +444,15 @@ pub struct RecordArgs {#[arg(long)]pub capture_on_clipboard: Option<bool>,+ /// Override `UiRecorderConfig::capture_scroll` — record scroll wheel+ /// events into `ui_events`. Off by default because wheel ticks fire+ /// at ~60Hz and inflate the table fast. When on, the recorder's+ /// `ScrollBurstTracker` coalesces a wheel flick into one+ /// `ScrollStop` trigger at burst-end so only the last row in a burst+ /// gets `frame_id` linked.+ #[arg(long)]+ pub capture_scroll: Option<bool>,+/// Prioritize mouse/keyboard input latency over a11y event metadata completeness./// When enabled, three opt-in optimizations are activated together:/// 1. mouse/keyboard hook locks switch to try_lock (contended → app_name/window=None)@@ -701,6 +710,7 @@ impl RecordArgs {capture_on_clipboard: self.capture_on_clipboard.unwrap_or(defaults.capture_on_clipboard),+ capture_scroll: self.capture_scroll.unwrap_or(defaults.capture_scroll),..defaults}}@@ -753,6 +763,7 @@ impl RecordArgs {min_capture_interval_ms: self.min_capture_interval_ms,capture_on_keystroke: self.capture_on_keystroke,capture_on_clipboard: self.capture_on_clipboard,+ capture_scroll: self.capture_scroll,prioritize_input_latency: self.prioritize_input_latency,extraction_thread_priority: self.extraction_thread_priority.clone(),pause_extraction_on_input_ms: self.pause_extraction_on_input_ms,diff --git a/crates/screenpipe-engine/src/recording_config.rs b/crates/screenpipe-engine/src/recording_config.rsindex 9e4e38ad1..45bb6f067 100644--- a/crates/screenpipe-engine/src/recording_config.rs+++ b/crates/screenpipe-engine/src/recording_config.rs@@ -157,6 +157,9 @@ pub struct RecordingConfig {/// Override `EventDrivenCaptureConfig::capture_on_clipboard`./// None = engine default (false). See `RecordingSettings.capture_on_clipboard`.pub capture_on_clipboard: Option<bool>,+ /// Override `UiRecorderConfig::capture_scroll`.+ /// None = engine default (false). See `RecordingSettings.capture_scroll`.+ pub capture_scroll: Option<bool>,/// Prioritize input latency over a11y event completeness./// See `RecordingSettings.prioritize_input_latency` for details.@@ -311,6 +314,7 @@ impl RecordingConfig {min_capture_interval_ms: settings.min_capture_interval_ms,capture_on_keystroke: settings.capture_on_keystroke,capture_on_clipboard: settings.capture_on_clipboard,+ capture_scroll: settings.capture_scroll,prioritize_input_latency: settings.prioritize_input_latency,extraction_thread_priority: settings.extraction_thread_priority.clone(),pause_extraction_on_input_ms: settings.pause_extraction_on_input_ms,@@ -359,6 +363,7 @@ impl RecordingConfig {capture_on_clipboard: self.capture_on_clipboard.unwrap_or(defaults.capture_on_clipboard),+ capture_scroll: self.capture_scroll.unwrap_or(defaults.capture_scroll),..defaults}}