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

Merge main into OCR capture-width fix

Ezra Ellette85a456b320bc
diff --cc crates/screenpipe-engine/src/cli/mod.rs
index 05512200e,d8144749f..cc6c1c124
--- a/crates/screenpipe-engine/src/cli/mod.rs
+++ b/crates/screenpipe-engine/src/cli/mod.rs
@@@ -703,13 -711,9 +711,16 @@@ pub struct RecordArgs
#[arg(long, default_value = "balanced")]
pub video_quality: String,
+ /// Screen history detail: adaptive capture cost, or a fixed sampling preset.
+ #[arg(long, default_value = "auto", value_parser = ["auto", "low_impact", "balanced", "more_detail"])]
+ pub recording_detail: String,
+ /// Max width in pixels of the macOS screen capture that OCR reads.
+ /// 0 = native; nonzero values below 1280 are raised to 1280. Stored
+ /// screenshots use the smaller of this width and the --video-quality
+ /// width. Lower it to trade OCR legibility for less GPU work on wide
+ /// displays. Other platforms always capture native.
+ #[arg(long, default_value_t = 0)]
+ pub capture_max_width: u32,
/// Keep the computer awake while screenpipe is running.
#[arg(long, default_value_t = false)]
@@@ -941,7 -943,7 +950,8 @@@ pub struct RecordArgSources
pub transcription_mode: bool,
pub disable_telemetry: bool,
pub video_quality: bool,
+ pub recording_detail: bool,
+ pub capture_max_width: bool,
pub keep_computer_awake: bool,
pub pause_on_drm_content: bool,
pub disable_clipboard_capture: bool,
@@@ -1011,7 -1013,7 +1021,8 @@@ impl RecordArgSources
transcription_mode: from_command_line(record, "transcription_mode"),
disable_telemetry: from_command_line(record, "disable_telemetry"),
video_quality: from_command_line(record, "video_quality"),
+ recording_detail: from_command_line(record, "recording_detail"),
+ capture_max_width: from_command_line(record, "capture_max_width"),
keep_computer_awake: from_command_line(record, "keep_computer_awake"),
pause_on_drm_content: from_command_line(record, "pause_on_drm_content"),
disable_clipboard_capture: from_command_line(record, "disable_clipboard_capture"),
@@@ -1067,7 -1069,7 +1078,8 @@@
|| self.transcription_mode
|| self.disable_telemetry
|| self.video_quality
+ || self.recording_detail
+ || self.capture_max_width
|| self.keep_computer_awake
|| self.pause_on_drm_content
|| self.disable_clipboard_capture
@@@ -1260,7 -1262,12 +1272,13 @@@ impl RecordArgs
.collect(),
deepgram_api_key: self.deepgram_api_key.clone().unwrap_or_default(),
video_quality: self.video_quality.clone(),
+ recording_detail: match self.recording_detail.as_str() {
+ "low_impact" => screenpipe_config::RecordingDetail::LowImpact,
+ "balanced" => screenpipe_config::RecordingDetail::Balanced,
+ "more_detail" => screenpipe_config::RecordingDetail::MoreDetail,
+ _ => screenpipe_config::RecordingDetail::Auto,
+ },
+ capture_max_width: self.capture_max_width,
disable_snapshot_compaction: self.disable_snapshot_compaction,
disable_meeting_detector: self.disable_meeting_detector,
idle_capture_interval_ms: self.idle_capture_interval_ms,