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

refactor: split enable_ui_events into enable_input_capture + enable_accessibility, remove 6 dead CLI flags

Louis Beaumontc542ccbdf331
diff --git a/apps/screenpipe-app-tauri/components/cli-command-dialog.tsx b/apps/screenpipe-app-tauri/components/cli-command-dialog.tsx
index 0dbee56d0..211517d52 100644
--- a/apps/screenpipe-app-tauri/components/cli-command-dialog.tsx
+++ b/apps/screenpipe-app-tauri/components/cli-command-dialog.tsx
@@ -146,12 +146,12 @@ export function CliCommandDialog({ settings }: CliCommandDialogProps) {
settings.languages.forEach((id) => args.push(`--language ${id}`));
}
- if (settings.enableFrameCache) {
- args.push("--enable-frame-cache");
+ if (settings.enableInputCapture) {
+ args.push("--enable-input-capture");
}
- if (settings.enableRealtimeAudioTranscription) {
- args.push("--enable-realtime-audio-transcription");
+ if (settings.enableAccessibility) {
+ args.push("--enable-accessibility");
}
const envVarsStr =
diff --git a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx
index 5da0f81e4..fb4507724 100644
--- a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx
@@ -1334,12 +1334,12 @@ Your screen is a pipe. Everything you see, hear, and type flows through it. Scre
{(isMacOS || platform() === "windows") && <Separator />}
- {/* Element capture (accessibility tree walker) */}
+ {/* Accessibility text capture (AX tree walker) */}
{(isMacOS || platform() === "windows") && (
<div className="flex items-center justify-between ml-[26px] gap-3">
<div className="min-w-0">
<h4 className="text-sm text-foreground flex items-center gap-1.5">
- Element capture
+ Accessibility text
<Badge variant="outline" className="text-[10px] px-1 py-0">beta</Badge>
<HelpTooltip text="Reads text directly from UI elements using macOS/Windows accessibility APIs. Much lower CPU usage (~2-5%) than OCR. Works great for native apps, browsers, and standard UI. May miss text in images, games, terminals with GPU rendering, or custom-drawn content. Both methods can run together for best coverage." />
</h4>
@@ -1347,9 +1347,30 @@ Your screen is a pipe. Everything you see, hear, and type flows through it. Scre
</div>
<Switch
className="shrink-0"
- id="enableUiEvents"
- checked={settings.enableUiEvents ?? false}
- onCheckedChange={(checked) => handleSettingsChange({ enableUiEvents: checked }, true)}
+ id="enableAccessibility"
+ checked={settings.enableAccessibility ?? true}
+ onCheckedChange={(checked) => handleSettingsChange({ enableAccessibility: checked }, true)}
+ />
+ </div>
+ )}
+
+ {(isMacOS || platform() === "windows") && <Separator />}
+
+ {/* Input capture (keyboard, mouse, clipboard) */}
+ {(isMacOS || platform() === "windows") && (
+ <div className="flex items-center justify-between ml-[26px] gap-3">
+ <div className="min-w-0">
+ <h4 className="text-sm text-foreground flex items-center gap-1.5">
+ Input capture
+ <HelpTooltip text="Records clicks, keystrokes, and clipboard events. Useful for detailed activity tracking and workflow analysis. Requires input monitoring permission on macOS." />
+ </h4>
+ <p className="text-xs text-muted-foreground">Records clicks, keystrokes, and clipboard</p>
+ </div>
+ <Switch
+ className="shrink-0"
+ id="enableInputCapture"
+ checked={settings.enableInputCapture ?? false}
+ onCheckedChange={(checked) => handleSettingsChange({ enableInputCapture: checked }, true)}
/>
</div>
)}
diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
index 126fa7ce0..8b1d6d473 100644
--- a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
+++ b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
@@ -89,7 +89,8 @@ export type Settings = SettingsStore & {
/** When true, audio devices follow system default and auto-switch on changes */
useSystemDefaultAudio?: boolean;
adaptiveFps?: boolean;
- enableUiEvents?: boolean;
+ enableInputCapture?: boolean;
+ enableAccessibility?: boolean;
/** Audio transcription scheduling: "realtime" (default) or "smart" (defer to idle) */
transcriptionMode?: "realtime" | "smart";
/** User's name for speaker identification — input device audio will be labeled with this name */
@@ -193,7 +194,6 @@ let DEFAULT_SETTINGS: Settings = {
updateChannel: "stable",
isFirstTimeUser: true,
autoStartEnabled: true,
- enableFrameCache: true,
platform: "unknown",
disabledShortcuts: [],
user: {
@@ -221,20 +221,19 @@ let DEFAULT_SETTINGS: Settings = {
stopAudioShortcut: "",
showChatShortcut: "Control+Super+L",
searchShortcut: "Control+Super+K",
- enableRealtimeAudioTranscription: false,
realtimeAudioTranscriptionEngine: "deepgram",
disableVision: false,
disableOcr: false,
useAllMonitors: true,
adaptiveFps: false,
- enableRealtimeVision: true,
showShortcutOverlay: true,
chatHistory: {
conversations: [],
activeConversationId: null,
historyEnabled: true,
},
- enableUiEvents: false,
+ enableInputCapture: false,
+ enableAccessibility: true,
overlayMode: "fullscreen",
showOverlayInScreenRecording: false,
videoQuality: "balanced",
diff --git a/apps/screenpipe-app-tauri/lib/utils/tauri.ts b/apps/screenpipe-app-tauri/lib/utils/tauri.ts
index 6d6be92c1..7ff44ac8f 100644
--- a/apps/screenpipe-app-tauri/lib/utils/tauri.ts
+++ b/apps/screenpipe-app-tauri/lib/utils/tauri.ts
@@ -856,21 +856,26 @@ analyticsId: string; devMode: boolean; audioTranscriptionEngine: string; ocrEngi
/**
* When true, automatically follow system default audio devices
*/
-useSystemDefaultAudio?: boolean; usePiiRemoval: boolean; restartInterval: number; port: number; dataDir: string; disableAudio: boolean; ignoredWindows: string[]; includedWindows: string[]; ignoredUrls?: string[]; fps: number; vadSensitivity: string; analyticsEnabled: boolean; audioChunkDuration: number; useChineseMirror: boolean; languages: string[]; embeddedLLM: EmbeddedLLM; enableBeta: boolean; isFirstTimeUser: boolean; autoStartEnabled: boolean; enableFrameCache: boolean; platform: string; disabledShortcuts: string[]; user: User; showScreenpipeShortcut: string; startRecordingShortcut: string; stopRecordingShortcut: string; startAudioShortcut: string; stopAudioShortcut: string; showChatShortcut: string; searchShortcut: string; enableRealtimeAudioTranscription: boolean; realtimeAudioTranscriptionEngine: string; disableVision: boolean;
+useSystemDefaultAudio?: boolean; usePiiRemoval: boolean; restartInterval: number; port: number; dataDir: string; disableAudio: boolean; ignoredWindows: string[]; includedWindows: string[]; ignoredUrls?: string[]; fps: number; vadSensitivity: string; analyticsEnabled: boolean; audioChunkDuration: number; useChineseMirror: boolean; languages: string[]; embeddedLLM: EmbeddedLLM; enableBeta: boolean; isFirstTimeUser: boolean; autoStartEnabled: boolean; platform: string; disabledShortcuts: string[]; user: User; showScreenpipeShortcut: string; startRecordingShortcut: string; stopRecordingShortcut: string; startAudioShortcut: string; stopAudioShortcut: string; showChatShortcut: string; searchShortcut: string; realtimeAudioTranscriptionEngine: string; disableVision: boolean;
/**
* When true, screen capture continues but OCR text extraction is skipped.
* Reduces CPU usage significantly while still recording video.
*/
-disableOcr?: boolean; useAllMonitors: boolean; adaptiveFps?: boolean; enableRealtimeVision: boolean; showShortcutOverlay?: boolean;
+disableOcr?: boolean; useAllMonitors: boolean; adaptiveFps?: boolean; showShortcutOverlay?: boolean;
/**
* Unique device ID for AI usage tracking (generated on first launch)
*/
-deviceId?: string;
+deviceId?: string;
/**
- * Enable UI event capture (keyboard, mouse, clipboard).
- * Requires accessibility and input monitoring permissions on macOS.
+ * Enable input event capture (keyboard, mouse, clipboard).
+ * Requires input monitoring permission on macOS.
*/
-enableUiEvents?: boolean;
+enableInputCapture?: boolean;
+/**
+ * Enable accessibility text capture (AX tree walker).
+ * Requires accessibility permission on macOS.
+ */
+enableAccessibility?: boolean;
/**
* Auto-install updates and restart when a new version is available.
* When disabled, users must click "update now" in the tray menu.
diff --git a/apps/screenpipe-app-tauri/lib/utils/validation.ts b/apps/screenpipe-app-tauri/lib/utils/validation.ts
index d77081ded..065b92414 100644
--- a/apps/screenpipe-app-tauri/lib/utils/validation.ts
+++ b/apps/screenpipe-app-tauri/lib/utils/validation.ts
@@ -64,7 +64,6 @@ export const settingsStoreSchema = z.object({
// Audio Settings
audioTranscriptionEngine: z.string().min(1, "Audio transcription engine is required"),
realtimeAudioTranscriptionEngine: z.string(),
- enableRealtimeAudioTranscription: z.boolean(),
audioDevices: z.array(z.string()),
disableAudio: z.boolean(),
vadSensitivity: z.enum(["low", "medium", "high"]),
@@ -79,9 +78,7 @@ export const settingsStoreSchema = z.object({
ignoredUrls: z.array(z.string()),
disableVision: z.boolean(),
useAllMonitors: z.boolean(),
- enableRealtimeVision: z.boolean(),
fps: z.number().min(0.1, "FPS must be at least 0.1").max(60, "FPS cannot exceed 60"),
- enableFrameCache: z.boolean(),
// System Settings
dataDir: z.string().min(1, "Data directory is required"),
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/analytics.rs b/apps/screenpipe-app-tauri/src-tauri/src/analytics.rs
index 978fb449e..96c8d9b14 100755
--- a/apps/screenpipe-app-tauri/src-tauri/src/analytics.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/analytics.rs
@@ -276,7 +276,8 @@ impl AnalyticsManager {
"setting_video_quality": get_str("videoQuality").unwrap_or("balanced"),
// Element capture / accessibility
- "setting_enable_ui_events": get_bool("enableUiEvents").unwrap_or(true),
+ "setting_enable_input_capture": get_bool("enableInputCapture").unwrap_or(false),
+ "setting_enable_accessibility": get_bool("enableAccessibility").unwrap_or(true),
// Audio
"setting_disable_audio": get_bool("disableAudio").unwrap_or(false),
@@ -292,12 +293,9 @@ impl AnalyticsManager {
"setting_ignored_urls_count": get_arr_len("ignoredUrls"),
// Other features
- "setting_enable_frame_cache": get_bool("enableFrameCache").unwrap_or(true),
"setting_use_pii_removal": get_bool("usePiiRemoval").unwrap_or(true),
"setting_enable_beta": get_bool("enableBeta").unwrap_or(false),
"setting_auto_update": get_bool("autoUpdate").unwrap_or(true),
- "setting_enable_realtime_audio": get_bool("enableRealtimeAudioTranscription").unwrap_or(false),
- "setting_enable_realtime_vision": get_bool("enableRealtimeVision").unwrap_or(true),
"setting_languages_count": get_arr_len("languages"),
})
}
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/embedded_server.rs b/apps/screenpipe-app-tauri/src-tauri/src/embedded_server.rs
index 370459014..f8c4f28db 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/embedded_server.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/embedded_server.rs
@@ -37,7 +37,6 @@ pub struct EmbeddedServerConfig {
pub data_dir: PathBuf,
pub fps: f64,
pub audio_chunk_duration: u64,
- pub video_chunk_duration: u64,
pub disable_audio: bool,
pub disable_vision: bool,
pub disable_ocr: bool,
@@ -52,10 +51,10 @@ pub struct EmbeddedServerConfig {
pub languages: Vec<String>,
pub vad_sensitivity: String,
pub deepgram_api_key: Option<String>,
- pub enable_frame_cache: bool,
pub analytics_enabled: bool,
pub analytics_id: String,
- pub enable_ui_events: bool,
+ pub enable_input_capture: bool,
+ pub enable_accessibility: bool,
pub use_all_monitors: bool,
pub use_chinese_mirror: bool,
pub user_id: Option<String>,
@@ -67,8 +66,8 @@ pub struct EmbeddedServerConfig {
impl EmbeddedServerConfig {
pub fn from_store(store: &SettingsStore, data_dir: PathBuf) -> Self {
- info!("Building EmbeddedServerConfig from store: enable_ui_events={}, disable_audio={}, disable_vision={}",
- store.enable_ui_events, store.disable_audio, store.disable_vision);
+ info!("Building EmbeddedServerConfig from store: enable_input_capture={}, enable_accessibility={}, disable_audio={}, disable_vision={}",
+ store.enable_input_capture, store.enable_accessibility, store.disable_audio, store.disable_vision);
// Fallback: if engine requires cloud auth but user is not logged in, use local whisper
let audio_transcription_engine = {
@@ -95,7 +94,6 @@ impl EmbeddedServerConfig {
data_dir,
fps: if store.fps > 0.0 { store.fps as f64 } else { 1.0 },
audio_chunk_duration: store.audio_chunk_duration as u64,
- video_chunk_duration: 30,
disable_audio: store.disable_audio,
disable_vision: store.disable_vision,
disable_ocr: store.disable_ocr,
@@ -120,10 +118,10 @@ impl EmbeddedServerConfig {
} else {
Some(store.deepgram_api_key.clone())
},
- enable_frame_cache: store.enable_frame_cache,
analytics_enabled: store.analytics_enabled,
analytics_id: store.analytics_id.clone(),
- enable_ui_events: store.enable_ui_events,
+ enable_input_capture: store.enable_input_capture,
+ enable_accessibility: store.enable_accessibility,
use_all_monitors: store.use_all_monitors,
use_chinese_mirror: store.use_chinese_mirror,
ignored_urls: store.ignored_urls.clone(),
@@ -387,7 +385,7 @@ pub async fn start_embedded_server(
let db_clone = db.clone();
let output_path = data_path.to_string_lossy().into_owned();
let fps = config.fps;
- let video_chunk_duration = Duration::from_secs(config.video_chunk_duration);
+ let video_chunk_duration = Duration::from_secs(60);
let ocr_engine = Arc::new(ocr_engine);
let use_pii_removal = config.use_pii_removal;
let ignored_windows = config.ignored_windows.clone();
@@ -450,8 +448,6 @@ pub async fn start_embedded_server(
included_windows,
ignored_urls,
languages: languages_clone,
- capture_unfocused_windows: false,
- realtime_vision: false,
activity_feed,
video_quality,
vision_metrics: vision_metrics.clone(),
@@ -565,8 +561,6 @@ pub async fn start_embedded_server(
&included_windows,
&ignored_urls,
languages_clone.clone(),
- false,
- false,
None,
video_quality.clone(),
recording_metrics.clone(),
@@ -617,10 +611,13 @@ pub async fn start_embedded_server(
}
// Start UI event recording (database recording of accessibility events)
- info!("UI events setting: enable_ui_events={}", config.enable_ui_events);
- if config.enable_ui_events {
+ let ui_enabled = config.enable_input_capture || config.enable_accessibility;
+ info!("UI events setting: enable_input_capture={}, enable_accessibility={}", config.enable_input_capture, config.enable_accessibility);
+ if ui_enabled {
let ui_config = UiRecorderConfig {
enabled: true,
+ enable_tree_walker: config.enable_accessibility,
+ record_input_events: config.enable_input_capture,
excluded_windows: config.ignored_windows.clone(),
ignored_windows: config.ignored_windows.clone(),
included_windows: config.included_windows.clone(),
@@ -642,7 +639,7 @@ pub async fn start_embedded_server(
}
// Start meeting watcher (standalone accessibility listener for smart mode)
- // Independent of enable_ui_events toggle — only needs accessibility permission
+ // Independent of enable_input_capture/enable_accessibility toggles — only needs accessibility permission
if let Some(ref detector) = meeting_detector {
let detector_clone = detector.clone();
let _meeting_watcher = start_meeting_watcher(detector_clone);
@@ -736,9 +733,8 @@ pub async fn start_embedded_server(
info!("HTTP server bound to port {}", config.port);
// Start serving in background with the pre-bound listener
- let enable_frame_cache = config.enable_frame_cache;
tokio::spawn(async move {
- if let Err(e) = server.start_with_listener(listener, enable_frame_cache).await {
+ if let Err(e) = server.start_with_listener(listener).await {
error!("Server error: {:?}", e);
}
});
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rs
index dad0a5fb7..ce2292a88 100755
--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs
@@ -1547,8 +1547,6 @@ async fn main() {
map.insert("port".into(), serde_json::json!(store.port));
map.insert("disable_audio".into(), serde_json::json!(store.disable_audio));
map.insert("audio_transcription_engine".into(), serde_json::json!(store.audio_transcription_engine));
- map.insert("enable_realtime_audio_transcription".into(), serde_json::json!(store.enable_realtime_audio_transcription));
- map.insert("enable_realtime_vision".into(), serde_json::json!(store.enable_realtime_vision));
map.insert("ocr_engine".into(), serde_json::json!(store.ocr_engine));
map.insert("monitor_ids".into(), serde_json::json!(store.monitor_ids));
map.insert("use_all_monitors".into(), serde_json::json!(store.use_all_monitors));
@@ -1556,8 +1554,8 @@ async fn main() {
map.insert("use_pii_removal".into(), serde_json::json!(store.use_pii_removal));
map.insert("disable_vision".into(), serde_json::json!(store.disable_vision));
map.insert("vad_sensitivity".into(), serde_json::json!(store.vad_sensitivity));
- map.insert("enable_frame_cache".into(), serde_json::json!(store.enable_frame_cache));
- map.insert("enable_ui_events".into(), serde_json::json!(store.enable_ui_events));
+ map.insert("enable_input_capture".into(), serde_json::json!(store.enable_input_capture));
+ map.insert("enable_accessibility".into(), serde_json::json!(store.enable_accessibility));
map.insert("enable_beta".into(), serde_json::json!(store.enable_beta));
map.insert("auto_start_enabled".into(), serde_json::json!(store.auto_start_enabled));
map.insert("platform".into(), serde_json::json!(store.platform));
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/store.rs b/apps/screenpipe-app-tauri/src-tauri/src/store.rs
index 2f103e048..5e3df660c 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/store.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/store.rs
@@ -163,8 +163,6 @@ pub struct SettingsStore {
pub is_first_time_user: bool,
#[serde(rename = "autoStartEnabled")]
pub auto_start_enabled: bool,
- #[serde(rename = "enableFrameCache")]
- pub enable_frame_cache: bool,
#[serde(rename = "platform")]
pub platform: String,
#[serde(rename = "disabledShortcuts")]
@@ -185,8 +183,6 @@ pub struct SettingsStore {
pub show_chat_shortcut: String,
#[serde(rename = "searchShortcut")]
pub search_shortcut: String,
- #[serde(rename = "enableRealtimeAudioTranscription")]
- pub enable_realtime_audio_transcription: bool,
#[serde(rename = "realtimeAudioTranscriptionEngine")]
pub realtime_audio_transcription_engine: String,
#[serde(rename = "disableVision")]
@@ -199,17 +195,19 @@ pub struct SettingsStore {
pub use_all_monitors: bool,
#[serde(rename = "adaptiveFps", default)]
pub adaptive_fps: bool,
- #[serde(rename = "enableRealtimeVision")]
- pub enable_realtime_vision: bool,
#[serde(rename = "showShortcutOverlay", default = "default_true")]
pub show_shortcut_overlay: bool,
/// Unique device ID for AI usage tracking (generated on first launch)
#[serde(rename = "deviceId", default = "generate_device_id")]
pub device_id: String,
- /// Enable UI event capture (keyboard, mouse, clipboard).
- /// Requires accessibility and input monitoring permissions on macOS.
- #[serde(rename = "enableUiEvents", default = "default_true")]
- pub enable_ui_events: bool,
+ /// Enable input event capture (keyboard, mouse, clipboard).
+ /// Requires input monitoring permission on macOS.
+ #[serde(rename = "enableInputCapture", default)]
+ pub enable_input_capture: bool,
+ /// Enable accessibility text capture (AX tree walker).
+ /// Requires accessibility permission on macOS.
+ #[serde(rename = "enableAccessibility", alias = "enableUiEvents", default = "default_true")]
+ pub enable_accessibility: bool,
/// Auto-install updates and restart when a new version is available.
/// When disabled, users must click "update now" in the tray menu.
#[serde(rename = "autoUpdate", default = "default_true")]
@@ -479,7 +477,6 @@ impl Default for SettingsStore {
enable_beta: false,
is_first_time_user: true,
auto_start_enabled: true,
- enable_frame_cache: true,
platform: "unknown".to_string(),
disabled_shortcuts: vec![],
user: User {
@@ -522,16 +519,15 @@ impl Default for SettingsStore {
search_shortcut: "Alt+K".to_string(),
#[cfg(not(target_os = "windows"))]
search_shortcut: "Control+Super+K".to_string(),
- enable_realtime_audio_transcription: false,
realtime_audio_transcription_engine: "deepgram".to_string(),
disable_vision: false,
disable_ocr: false,
use_all_monitors: true, // Match CLI default - dynamic monitor detection
- enable_realtime_vision: true,
show_shortcut_overlay: true,
device_id: uuid::Uuid::new_v4().to_string(),
adaptive_fps: false,
- enable_ui_events: true,
+ enable_input_capture: false,
+ enable_accessibility: true,
auto_update: true,
overlay_mode: "fullscreen".to_string(),
show_overlay_in_screen_recording: false,
diff --git a/crates/screenpipe-server/src/bin/screenpipe-server.rs b/crates/screenpipe-server/src/bin/screenpipe-server.rs
index 4d45ed0fb..c5aea8bed 100644
--- a/crates/screenpipe-server/src/bin/screenpipe-server.rs
+++ b/crates/screenpipe-server/src/bin/screenpipe-server.rs
@@ -312,14 +312,6 @@ async fn main() -> anyhow::Result<()> {
"audio_transcription_engine".into(),
json!(format!("{:?}", cli.audio_transcription_engine)),
);
- map.insert(
- "enable_realtime_audio_transcription".into(),
- json!(cli.enable_realtime_audio_transcription),
- );
- map.insert(
- "enable_realtime_vision".into(),
- json!(cli.enable_realtime_vision),
- );
map.insert("ocr_engine".into(), json!(format!("{:?}", cli.ocr_engine)));
map.insert("monitor_ids".into(), json!(cli.monitor_id));
map.insert("use_all_monitors".into(), json!(cli.use_all_monitors));
@@ -338,26 +330,13 @@ async fn main() -> anyhow::Result<()> {
"vad_sensitivity".into(),
json!(format!("{:?}", cli.vad_sensitivity)),
);
- map.insert(
- "video_chunk_duration".into(),
- json!(cli.video_chunk_duration),
- );
- map.insert("enable_frame_cache".into(), json!(cli.enable_frame_cache));
- map.insert(
- "capture_unfocused_windows".into(),
- json!(cli.capture_unfocused_windows),
- );
-
- map.insert("enable_ui_events".into(), json!(cli.enable_ui_events));
+ map.insert("enable_input_capture".into(), json!(cli.enable_input_capture));
+ map.insert("enable_accessibility".into(), json!(cli.enable_accessibility));
map.insert("enable_sync".into(), json!(cli.enable_sync));
map.insert("sync_interval_secs".into(), json!(cli.sync_interval_secs));
map.insert("debug".into(), json!(cli.debug));
// Only send counts for privacy-sensitive lists (not actual values)
map.insert("audio_device_count".into(), json!(cli.audio_device.len()));
- map.insert(
- "realtime_audio_device_count".into(),
- json!(cli.realtime_audio_device.len()),
- );
map.insert(
"ignored_windows_count".into(),
json!(cli.ignored_windows.len()),
@@ -498,12 +477,9 @@ async fn main() -> anyhow::Result<()> {
cli.disable_audio = record_args.disable_audio;
cli.audio_device = record_args.audio_device.clone();
cli.use_system_default_audio = record_args.use_system_default_audio;
- cli.realtime_audio_device = record_args.realtime_audio_device.clone();
cli.data_dir = record_args.data_dir.clone();
cli.debug = record_args.debug;
cli.audio_transcription_engine = record_args.audio_transcription_engine.clone();
- cli.enable_realtime_audio_transcription = record_args.enable_realtime_audio_transcription;
- cli.enable_realtime_vision = record_args.enable_realtime_vision;
cli.ocr_engine = record_args.ocr_engine.clone();
cli.monitor_id = record_args.monitor_id.clone();
cli.use_all_monitors = record_args.use_all_monitors;
@@ -514,15 +490,13 @@ async fn main() -> anyhow::Result<()> {
cli.ignored_windows = record_args.ignored_windows.clone();
cli.included_windows = record_args.included_windows.clone();
cli.ignored_urls = record_args.ignored_urls.clone();
- cli.video_chunk_duration = record_args.video_chunk_duration;
cli.deepgram_api_key = record_args.deepgram_api_key.clone();
cli.auto_destruct_pid = record_args.auto_destruct_pid;
cli.vad_sensitivity = record_args.vad_sensitivity.clone();
cli.disable_telemetry = record_args.disable_telemetry;
- cli.enable_frame_cache = record_args.enable_frame_cache;
- cli.capture_unfocused_windows = record_args.capture_unfocused_windows;
cli.video_quality = record_args.video_quality.clone();
- cli.enable_ui_events = record_args.enable_ui_events;
+ cli.enable_input_capture = record_args.enable_input_capture;
+ cli.enable_accessibility = record_args.enable_accessibility;
cli.enable_sync = record_args.enable_sync;
cli.sync_token = record_args.sync_token.clone();
cli.sync_password = record_args.sync_password.clone();
@@ -555,7 +529,11 @@ async fn main() -> anyhow::Result<()> {
let mut audio_devices = Vec::new();
- let mut realtime_audio_devices = Vec::new();
+ // Auto-detect realtime audio: enable for cloud engines (Deepgram)
+ let enable_realtime_audio = matches!(
+ cli.audio_transcription_engine,
+ CliAudioTranscriptionEngine::Deepgram
+ );
if !cli.disable_audio {
if cli.audio_device.is_empty() {
@@ -579,34 +557,10 @@ async fn main() -> anyhow::Result<()> {
if audio_devices.is_empty() {
warn!("no audio devices available.");
}
-
- if cli.enable_realtime_audio_transcription {
- if cli.realtime_audio_device.is_empty() {
- // Use default devices
- if let Ok(input_device) = default_input_device() {
- realtime_audio_devices.push(Arc::new(input_device.clone()));
- }
- if let Ok(output_device) = default_output_device().await {
- realtime_audio_devices.push(Arc::new(output_device.clone()));
- }
- } else {
- for d in &cli.realtime_audio_device {
- match parse_audio_device(d) {
- Ok(device) => realtime_audio_devices.push(Arc::new(device.clone())),
- Err(e) => {
- warn!("skipping unparseable realtime audio device '{}': {}", d, e)
- }
- }
- }
- }
-
- if realtime_audio_devices.is_empty() {
- eprintln!("no realtime audio devices available. realtime audio transcription will be disabled.");
- }
- }
}
let audio_devices_clone = audio_devices.clone();
+
let resource_monitor = ResourceMonitor::new(!cli.disable_telemetry);
resource_monitor.start_monitoring(Duration::from_secs(30), Some(Duration::from_secs(60)));
@@ -673,7 +627,6 @@ async fn main() -> anyhow::Result<()> {
let monitor_ids_clone = monitor_ids.clone();
let ignored_windows_clone = cli.ignored_windows.clone();
let included_windows_clone = cli.included_windows.clone();
- let realtime_audio_devices_clone = realtime_audio_devices.clone();
// Create UI recorder config early before cli is moved
let ui_recorder_config = cli.to_ui_recorder_config();
@@ -705,7 +658,7 @@ async fn main() -> anyhow::Result<()> {
.vad_sensitivity(cli.vad_sensitivity.into())
.languages(languages.clone())
.transcription_engine(cli.audio_transcription_engine.into())
- .realtime(cli.enable_realtime_audio_transcription)
+ .realtime(enable_realtime_audio)
.enabled_devices(audio_devices)
.deepgram_api_key(cli.deepgram_api_key.clone())
.output_path(PathBuf::from(output_path_clone.clone().to_string()))
@@ -760,15 +713,13 @@ async fn main() -> anyhow::Result<()> {
let config = VisionManagerConfig {
output_path: output_path_clone.to_string(),
fps,
- video_chunk_duration: Duration::from_secs(cli.video_chunk_duration),
+ video_chunk_duration: Duration::from_secs(60),
ocr_engine: Arc::new(cli.ocr_engine.clone().into()),
use_pii_removal: cli.use_pii_removal,
ignored_windows: cli.ignored_windows.clone(),
included_windows: cli.included_windows.clone(),
ignored_urls: cli.ignored_urls.clone(),
languages: languages_clone.clone(),
- capture_unfocused_windows: cli.capture_unfocused_windows,
- realtime_vision: cli.enable_realtime_audio_transcription,
activity_feed,
video_quality: cli.video_quality.clone(),
vision_metrics: vision_metrics.clone(),
@@ -849,7 +800,7 @@ async fn main() -> anyhow::Result<()> {
db_clone.clone(),
output_path_clone.clone(),
fps,
- Duration::from_secs(cli.video_chunk_duration),
+ Duration::from_secs(60),
Arc::new(cli.ocr_engine.clone().into()),
monitor_ids_clone.clone(),
cli.use_pii_removal,
@@ -859,8 +810,6 @@ async fn main() -> anyhow::Result<()> {
&cli.included_windows,
&cli.ignored_urls,
languages_clone.clone(),
- cli.capture_unfocused_windows,
- cli.enable_realtime_audio_transcription,
activity_feed_legacy,
cli.video_quality.clone(),
vision_metrics_for_recording.clone(),
@@ -975,15 +924,7 @@ async fn main() -> anyhow::Result<()> {
"│ audio chunk duration │ {:<34} │",
format!("{} seconds", cli.audio_chunk_duration)
);
- println!(
- "│ video chunk duration │ {:<34} │",
- format!("{} seconds", cli.video_chunk_duration)
- );
println!("│ port │ {:<34} │", cli.port);
- println!(
- "│ realtime audio enabled │ {:<34} │",
- cli.enable_realtime_audio_transcription
- );
println!("│ audio disabled │ {:<34} │", cli.disable_audio);
println!("│ vision disabled │ {:<34} │", cli.disable_vision);
println!(
@@ -1021,14 +962,6 @@ async fn main() -> anyhow::Result<()> {
"│ included windows │ {:<34} │",
format_cell(&format!("{:?}", &included_windows_clone), VALUE_WIDTH)
);
- println!(
- "│ frame cache │ {:<34} │",
- cli.enable_frame_cache
- );
- println!(
- "│ capture unfocused wins │ {:<34} │",
- cli.capture_unfocused_windows
- );
println!(
"│ cloud sync │ {:<34} │",
if cli.enable_sync {
@@ -1151,35 +1084,6 @@ async fn main() -> anyhow::Result<()> {
);
}
}
- // Realtime Audio devices section
- println!("├────────────────────────┼────────────────────────────────────┤");
- println!("│ realtime audio devices │ │");
-
- if cli.disable_audio || !cli.enable_realtime_audio_transcription {
- println!("│ {:<22} │ {:<34} │", "", "disabled");
- } else if realtime_audio_devices_clone.is_empty() {
- println!("│ {:<22} │ {:<34} │", "", "no devices available");
- } else {
- let total_devices = realtime_audio_devices_clone.len();
- for (_, device) in realtime_audio_devices_clone
- .iter()
- .enumerate()
- .take(MAX_ITEMS_TO_DISPLAY)
- {
- let device_str = device.deref().to_string();
- let formatted_device = format_cell(&device_str, VALUE_WIDTH);
-
- println!("│ {:<22} │ {:<34} │", "", formatted_device);
- }
- if total_devices > MAX_ITEMS_TO_DISPLAY {
- println!(
- "│ {:<22} │ {:<34} │",
- "",
- format!("... and {} more", total_devices - MAX_ITEMS_TO_DISPLAY)
- );
- }
- }
-
println!("└────────────────────────┴────────────────────────────────────┘");
// Add warning for cloud arguments and telemetry
@@ -1249,7 +1153,7 @@ async fn main() -> anyhow::Result<()> {
};
// Start meeting watcher (standalone accessibility listener for smart mode)
- // Independent of enable_ui_events — only needs accessibility permission
+ // Independent of enable_input_capture/enable_accessibility — only needs accessibility permission
let _meeting_watcher_handle = if let Some(ref detector) = meeting_detector {
Some(start_meeting_watcher(detector.clone()))
} else {
@@ -1262,7 +1166,7 @@ async fn main() -> anyhow::Result<()> {
// Periodic WAL checkpoint to prevent unbounded WAL growth
db.start_wal_maintenance();
- let server_future = server.start(cli.enable_frame_cache);
+ let server_future = server.start();
pin_mut!(server_future);
// Add auto-destruct watcher
diff --git a/crates/screenpipe-server/src/cli.rs b/crates/screenpipe-server/src/cli.rs
index 7282a9cab..ac2da0cb1 100644
--- a/crates/screenpipe-server/src/cli.rs
+++ b/crates/screenpipe-server/src/cli.rs
@@ -209,7 +209,7 @@ pub struct Cli {
#[arg(long, default_value_t = true)]
pub use_system_default_audio: bool,
- #[arg(short = 'r', long)]
+ #[arg(short = 'r', long, hide = true)]
pub realtime_audio_device: Vec<String>,
#[arg(long, value_hint = ValueHint::DirPath)]
@@ -221,12 +221,6 @@ pub struct Cli {
#[arg(short = 'a', long, value_enum, default_value_t = CliAudioTranscriptionEngine::WhisperLargeV3TurboQuantized)]
pub audio_transcription_engine: CliAudioTranscriptionEngine,
- #[arg(long, default_value_t = false)]
- pub enable_realtime_audio_transcription: bool,
-
- #[arg(long, default_value_t = true)]
- pub enable_realtime_vision: bool,
-
#[cfg_attr(
target_os = "macos",
arg(short = 'o', long, value_enum, default_value_t = CliOcrEngine::AppleNative)
@@ -268,13 +262,10 @@ pub struct Cli {
#[arg(long)]
pub ignored_urls: Vec<String>,
- #[arg(long, default_value_t = 60)]
- pub video_chunk_duration: u64,
-
#[arg(long = "deepgram-api-key")]
pub deepgram_api_key: Option<String>,
- #[arg(long)]
+ #[arg(long, hide = true)]
pub auto_destruct_pid: Option<u32>,
#[arg(long, value_enum, default_value_t = CliVadSensitivity::High)]
@@ -287,17 +278,16 @@ pub struct Cli {
#[arg(long, default_value_t = false)]
pub disable_telemetry: bool,
- #[arg(long, default_value_t = true)]
- pub enable_frame_cache: bool,
-
- #[arg(long, default_value_t = false)]
- pub capture_unfocused_windows: bool,
-
#[arg(long, default_value = "balanced")]
pub video_quality: String,
+ /// Enable input event capture (keyboard, mouse, clipboard)
#[arg(long, default_value_t = false)]
- pub enable_ui_events: bool,
+ pub enable_input_capture: bool,
+
+ /// Enable accessibility text capture (AX tree walker)
+ #[arg(long, default_value_t = false)]
+ pub enable_accessibility: bool,
#[arg(long, default_value_t = false)]
pub enable_sync: bool,
@@ -330,7 +320,9 @@ impl Cli {
#[cfg(feature = "ui-events")]
pub fn to_ui_recorder_config(&self) -> crate::ui_recorder::UiRecorderConfig {
crate::ui_recorder::UiRecorderConfig {
- enabled: self.enable_ui_events,
+ enabled: self.enable_input_capture || self.enable_accessibility,
+ enable_tree_walker: self.enable_accessibility,
+ record_input_events: self.enable_input_capture,
excluded_windows: self.ignored_windows.clone(),
ignored_windows: self.ignored_windows.clone(),
included_windows: self.included_windows.clone(),
@@ -433,10 +425,6 @@ pub struct RecordArgs {
#[arg(long, default_value_t = true)]
pub use_system_default_audio: bool,
- /// Audio devices to use for realtime audio transcription
- #[arg(short = 'r', long)]
- pub realtime_audio_device: Vec<String>,
-
/// Data directory. Default to $HOME/.screenpipe
#[arg(long, value_hint = ValueHint::DirPath)]
pub data_dir: Option<String>,
@@ -449,14 +437,6 @@ pub struct RecordArgs {
#[arg(short = 'a', long, value_enum, default_value_t = CliAudioTranscriptionEngine::WhisperLargeV3TurboQuantized)]
pub audio_transcription_engine: CliAudioTranscriptionEngine,
- /// Enable realtime audio transcription
- #[arg(long, default_value_t = false)]
- pub enable_realtime_audio_transcription: bool,
-
- /// Enable realtime vision
- #[arg(long, default_value_t = true)]
- pub enable_realtime_vision: bool,
-
/// OCR engine to use
#[cfg_attr(
target_os = "macos",
@@ -508,16 +488,12 @@ pub struct RecordArgs {
#[arg(long)]
pub ignored_urls: Vec<String>,
- /// Video chunk duration in seconds
- #[arg(long, default_value_t = 60)]
- pub video_chunk_duration: u64,
-
/// Deepgram API Key for audio transcription
#[arg(long = "deepgram-api-key")]
pub deepgram_api_key: Option<String>,
/// PID to watch for auto-destruction
- #[arg(long)]
+ #[arg(long, hide = true)]
pub auto_destruct_pid: Option<u32>,
/// Voice activity detection sensitivity level
@@ -532,21 +508,17 @@ pub struct RecordArgs {
#[arg(long, default_value_t = false)]
pub disable_telemetry: bool,
- /// Enable frame cache (makes timeline UI available)
- #[arg(long, default_value_t = true)]
- pub enable_frame_cache: bool,
-
- /// Capture windows that are not focused
- #[arg(long, default_value_t = false)]
- pub capture_unfocused_windows: bool,
-
/// Video quality preset: low, balanced, high, max
#[arg(long, default_value = "balanced")]
pub video_quality: String,
- /// Enable UI event capture (keyboard, mouse, clipboard)
+ /// Enable input event capture (keyboard, mouse, clipboard)
+ #[arg(long, default_value_t = false)]
+ pub enable_input_capture: bool,
+
+ /// Enable accessibility text capture (AX tree walker)
#[arg(long, default_value_t = false)]
- pub enable_ui_events: bool,
+ pub enable_accessibility: bool,
/// Enable cloud sync
#[arg(long, default_value_t = false)]
@@ -580,12 +552,9 @@ impl RecordArgs {
disable_audio: cli.disable_audio,
audio_device: cli.audio_device.clone(),
use_system_default_audio: cli.use_system_default_audio,
- realtime_audio_device: cli.realtime_audio_device.clone(),
data_dir: cli.data_dir.clone(),
debug: cli.debug,
audio_transcription_engine: cli.audio_transcription_engine.clone(),
- enable_realtime_audio_transcription: cli.enable_realtime_audio_transcription,
- enable_realtime_vision: cli.enable_realtime_vision,
ocr_engine: cli.ocr_engine.clone(),
monitor_id: cli.monitor_id.clone(),
use_all_monitors: cli.use_all_monitors,
@@ -596,16 +565,14 @@ impl RecordArgs {
ignored_windows: cli.ignored_windows.clone(),
included_windows: cli.included_windows.clone(),
ignored_urls: cli.ignored_urls.clone(),
- video_chunk_duration: cli.video_chunk_duration,
deepgram_api_key: cli.deepgram_api_key.clone(),
auto_destruct_pid: cli.auto_destruct_pid,
vad_sensitivity: cli.vad_sensitivity.clone(),
transcription_mode: cli.transcription_mode.clone(),
disable_telemetry: cli.disable_telemetry,
- enable_frame_cache: cli.enable_frame_cache,
- capture_unfocused_windows: cli.capture_unfocused_windows,
video_quality: cli.video_quality.clone(),
- enable_ui_events: cli.enable_ui_events,
+ enable_input_capture: cli.enable_input_capture,
+ enable_accessibility: cli.enable_accessibility,
enable_sync: cli.enable_sync,
sync_token: cli.sync_token.clone(),
sync_password: cli.sync_password.clone(),
@@ -628,7 +595,9 @@ impl RecordArgs {
#[cfg(feature = "ui-events")]
pub fn to_ui_recorder_config(&self) -> crate::ui_recorder::UiRecorderConfig {
crate::ui_recorder::UiRecorderConfig {
- enabled: self.enable_ui_events,
+ enabled: self.enable_input_capture || self.enable_accessibility,
+ enable_tree_walker: self.enable_accessibility,
+ record_input_events: self.enable_input_capture,
excluded_windows: self.ignored_windows.clone(),
ignored_windows: self.ignored_windows.clone(),
included_windows: self.included_windows.clone(),
diff --git a/crates/screenpipe-server/src/core.rs b/crates/screenpipe-server/src/core.rs
index 2426d23c6..0da82cf9c 100644
--- a/crates/screenpipe-server/src/core.rs
+++ b/crates/screenpipe-server/src/core.rs
@@ -32,8 +32,6 @@ pub async fn start_continuous_recording(
include_windows: &[String],
ignored_urls: &[String],
languages: Vec<Language>,
- capture_unfocused_windows: bool,
- realtime_vision: bool,
activity_feed: screenpipe_vision::ActivityFeedOption,
video_quality: String,
vision_metrics: Arc<PipelineMetrics>,
@@ -75,8 +73,6 @@ pub async fn start_continuous_recording(
&ignored_urls_video,
video_chunk_duration,
languages.clone(),
- capture_unfocused_windows,
- realtime_vision,
activity_feed.clone(),
video_quality.clone(),
vision_metrics.clone(),
@@ -158,8 +154,6 @@ pub async fn record_video(
ignored_urls: &[String],
video_chunk_duration: Duration,
languages: Vec<Language>,
- capture_unfocused_windows: bool,
- realtime_vision: bool,
activity_feed: screenpipe_vision::ActivityFeedOption,
video_quality: String,
vision_metrics: Arc<PipelineMetrics>,
@@ -215,7 +209,7 @@ pub async fn record_video(
include_windows,
ignored_urls,
languages,
- capture_unfocused_windows,
+ false, // capture_unfocused_windows: hardcoded off
activity_feed,
video_quality,
vision_metrics,
@@ -363,8 +357,8 @@ pub async fn record_video(
);
consecutive_db_errors = 0;
- // Send realtime events after successful DB insert
- if realtime_vision {
+ // Send realtime events after successful DB insert (always enabled)
+ {
for (frame_id, idx) in &results {
let (ref text, ref sanitized_text_json, _, window_result) =
window_metadata[*idx];
diff --git a/crates/screenpipe-server/src/meeting_watcher.rs b/crates/screenpipe-server/src/meeting_watcher.rs
index c4f7be3ae..695ec8850 100644
--- a/crates/screenpipe-server/src/meeting_watcher.rs
+++ b/crates/screenpipe-server/src/meeting_watcher.rs
@@ -6,7 +6,7 @@
//!
//! This is intentionally decoupled from `ui_recorder` (which records events to the DB).
//! Meeting detection only needs app-switch/window-focus events from the accessibility API
-//! and does NOT depend on the `enable_ui_events` user toggle.
+//! and does NOT depend on the `enable_input_capture`/`enable_accessibility` user toggles.
#[cfg(feature = "ui-events")]
use screenpipe_accessibility::{UiCaptureConfig, UiRecorder};
diff --git a/crates/screenpipe-server/src/server.rs b/crates/screenpipe-server/src/server.rs
index a8a144a3b..6676e796c 100644
--- a/crates/screenpipe-server/src/server.rs
+++ b/crates/screenpipe-server/src/server.rs
@@ -169,9 +169,9 @@ impl SCServer {
self
}
- pub async fn start(self, enable_frame_cache: bool) -> Result<(), std::io::Error> {
+ pub async fn start(self) -> Result<(), std::io::Error> {
// Create the OpenAPI server
- let app = self.create_router(enable_frame_cache).await;
+ let app = self.create_router().await;
// Create the listener
let listener = TcpListener::bind(&self.addr).await?;
@@ -193,9 +193,8 @@ impl SCServer {
pub async fn start_with_listener(
self,
listener: TcpListener,
- enable_frame_cache: bool,
) -> Result<(), std::io::Error> {
- let app = self.create_router(enable_frame_cache).await;
+ let app = self.create_router().await;
info!("Server listening on {}", self.addr);
serve(
@@ -208,7 +207,7 @@ impl SCServer {
Ok(())
}
- pub async fn create_router(&self, enable_frame_cache: bool) -> Router {
+ pub async fn create_router(&self) -> Router {
let api_request_count = Arc::new(AtomicUsize::new(0));
// Spawn periodic API usage reporter (every 5 minutes)
@@ -302,29 +301,21 @@ impl SCServer {
screenpipe_dir: self.screenpipe_dir.clone(),
vision_disabled: self.vision_disabled,
audio_disabled: self.audio_disabled,
- frame_cache: if enable_frame_cache {
- match FrameCache::new(self.screenpipe_dir.clone().join("data"), self.db.clone())
- .await
- {
- Ok(cache) => Some(Arc::new(cache)),
- Err(e) => {
- error!("Failed to create frame cache, starting without it: {:?}", e);
- None
- }
+ frame_cache: match FrameCache::new(self.screenpipe_dir.clone().join("data"), self.db.clone())
+ .await
+ {
+ Ok(cache) => Some(Arc::new(cache)),
+ Err(e) => {
+ error!("Failed to create frame cache, starting without it: {:?}", e);
+ None
}
- } else {
- None
},
// Frame image cache: increased from 100 to 1000 for better timeline scrolling performance.
// Each entry is just a file path (~100 bytes) + Instant, so 1000 entries ≈ 100KB.
// This dramatically reduces FFmpeg extraction calls when scrolling through timeline.
- frame_image_cache: if enable_frame_cache {
- Some(Arc::new(Mutex::new(LruCache::new(
- NonZeroUsize::new(1000).unwrap(),
- ))))
- } else {
- None
- },
+ frame_image_cache: Some(Arc::new(Mutex::new(LruCache::new(
+ NonZeroUsize::new(1000).unwrap(),
+ )))),
ws_connection_count: Arc::new(AtomicUsize::new(0)),
// Search cache: 1000 entries, 60 second TTL
search_cache: MokaCache::builder()
diff --git a/crates/screenpipe-server/src/ui_recorder.rs b/crates/screenpipe-server/src/ui_recorder.rs
index d6ba1260d..1b27fc86d 100644
--- a/crates/screenpipe-server/src/ui_recorder.rs
+++ b/crates/screenpipe-server/src/ui_recorder.rs
@@ -69,6 +69,8 @@ pub struct UiRecorderConfig {
pub enable_tree_walker: bool,
/// Tree walk interval in milliseconds
pub tree_walk_interval_ms: u64,
+ /// Record input events to DB (false = still capture for wake signal but don't write)
+ pub record_input_events: bool,
}
#[cfg(feature = "ui-events")]
@@ -93,6 +95,7 @@ impl Default for UiRecorderConfig {
batch_timeout_ms: 1000,
enable_tree_walker: true,
tree_walk_interval_ms: 3000,
+ record_input_events: true,
}
}
}
@@ -203,6 +206,7 @@ pub async fn start_ui_recording(
let stop_flag_clone = stop_flag.clone();
let batch_size = config.batch_size;
let batch_timeout = Duration::from_millis(config.batch_timeout_ms);
+ let record_input_events = config.record_input_events;
// Start the recording
let handle = match recorder.start() {
@@ -253,7 +257,9 @@ pub async fn start_ui_recording(
}
}
- batch.push(db_event);
+ if record_input_events {
+ batch.push(db_event);
+ }
// Flush if batch is full
if batch.len() >= batch_size {
diff --git a/crates/screenpipe-server/src/vision_manager/manager.rs b/crates/screenpipe-server/src/vision_manager/manager.rs
index e2b4d30c8..57f3a4217 100644
--- a/crates/screenpipe-server/src/vision_manager/manager.rs
+++ b/crates/screenpipe-server/src/vision_manager/manager.rs
@@ -27,8 +27,6 @@ pub struct VisionManagerConfig {
pub included_windows: Vec<String>,
pub ignored_urls: Vec<String>,
pub languages: Vec<Language>,
- pub capture_unfocused_windows: bool,
- pub realtime_vision: bool,
pub activity_feed: screenpipe_vision::ActivityFeedOption,
pub video_quality: String,
pub vision_metrics: Arc<PipelineMetrics>,
@@ -166,8 +164,6 @@ impl VisionManager {
let included_windows = self.config.included_windows.clone();
let ignored_urls = self.config.ignored_urls.clone();
let languages = self.config.languages.clone();
- let capture_unfocused_windows = self.config.capture_unfocused_windows;
- let realtime_vision = self.config.realtime_vision;
let activity_feed = self.config.activity_feed.clone();
let video_quality = self.config.video_quality.clone();
let vision_metrics = self.config.vision_metrics.clone();
@@ -189,8 +185,6 @@ impl VisionManager {
&ignored_urls,
video_chunk_duration,
languages.clone(),
- capture_unfocused_windows,
- realtime_vision,
activity_feed.clone(),
video_quality.clone(),
vision_metrics.clone(),