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: deprecate enableInputCapture/enableAccessibility settings

Louis Beaumont5324a71d62d5
diff --git a/apps/screenpipe-app-tauri/components/cli-command-dialog.tsx b/apps/screenpipe-app-tauri/components/cli-command-dialog.tsx
index da7850daf..56b7f9952 100644
--- a/apps/screenpipe-app-tauri/components/cli-command-dialog.tsx
+++ b/apps/screenpipe-app-tauri/components/cli-command-dialog.tsx
@@ -127,13 +127,7 @@ export function CliCommandDialog({ settings }: CliCommandDialogProps) {
settings.languages.forEach((id) => args.push(`--language ${id}`));
}
- if (settings.enableInputCapture) {
- args.push("--enable-input-capture");
- }
-
- if (settings.enableAccessibility) {
- args.push("--enable-accessibility");
- }
+ // enableInputCapture and enableAccessibility are always on (no CLI flag needed)
const envVarsStr =
envVars.length > 0
diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
index f0497806d..7994ad882 100644
--- a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
+++ b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
@@ -106,7 +106,9 @@ export type Settings = SettingsStore & {
lockVaultShortcut?: string;
/** When true, audio devices follow system default and auto-switch on changes */
useSystemDefaultAudio?: boolean;
+ /** @deprecated Always true — kept for serde compat */
enableInputCapture?: boolean;
+ /** @deprecated Always true — kept for serde compat */
enableAccessibility?: boolean;
/** Enable AI workflow event detection (cloud, triggers event-based pipes) */
enableWorkflowEvents?: boolean;
@@ -313,7 +315,7 @@ let DEFAULT_SETTINGS: Settings = {
activeConversationId: null,
historyEnabled: true,
},
- enableInputCapture: false,
+ enableInputCapture: true,
enableAccessibility: true,
overlayMode: "fullscreen",
showOverlayInScreenRecording: false,
@@ -343,8 +345,6 @@ export function createDefaultSettingsObject(): Settings {
DEFAULT_SETTINGS.lockVaultShortcut = p === "windows" ? "Ctrl+Shift+L" : "Super+Shift+L";
if (p === "windows") {
- DEFAULT_SETTINGS.enableAccessibility = true;
- DEFAULT_SETTINGS.enableInputCapture = true;
DEFAULT_SETTINGS.disableOcr = true;
DEFAULT_SETTINGS.overlayMode = "window";
}
diff --git a/apps/screenpipe-app-tauri/lib/utils/tauri.ts b/apps/screenpipe-app-tauri/lib/utils/tauri.ts
index c664ea5f0..bc19c3d9a 100644
--- a/apps/screenpipe-app-tauri/lib/utils/tauri.ts
+++ b/apps/screenpipe-app-tauri/lib/utils/tauri.ts
@@ -1192,14 +1192,10 @@ analyticsEnabled: boolean;
* Persistent analytics ID (UUID, stable across sessions).
*/
analyticsId: string;
-/**
- * Enable input event capture (keyboard, mouse, clipboard).
- */
-enableInputCapture: boolean;
-/**
- * Enable accessibility text capture (AX tree walker).
- */
-enableAccessibility: boolean;
+/** @deprecated Always true — kept for serde compat */
+enableInputCapture: boolean;
+/** @deprecated Always true — kept for serde compat */
+enableAccessibility: boolean;
/**
* Enable AI workflow event detection (cloud feature, requires subscription).
* When enabled, classifies desktop activity and triggers event-based pipes.
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/analytics.rs b/apps/screenpipe-app-tauri/src-tauri/src/analytics.rs
index e6301d109..266dee674 100755
--- a/apps/screenpipe-app-tauri/src-tauri/src/analytics.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/analytics.rs
@@ -312,9 +312,9 @@ impl AnalyticsManager {
"setting_monitor_count": get_arr_len("monitorIds"),
"setting_video_quality": get_str("videoQuality").unwrap_or("balanced"),
- // Element capture / accessibility
- "setting_enable_input_capture": get_bool("enableInputCapture").unwrap_or(false),
- "setting_enable_accessibility": get_bool("enableAccessibility").unwrap_or(true),
+ // Element capture / accessibility — always enabled
+ "setting_enable_input_capture": true,
+ "setting_enable_accessibility": true,
// Audio
"setting_disable_audio": get_bool("disableAudio").unwrap_or(false),
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 d5a01e015..faf37511a 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/embedded_server.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/embedded_server.rs
@@ -364,12 +364,8 @@ pub async fn start_embedded_server(
}
// Start UI event recording (database recording of accessibility 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
- );
- let ui_recorder_handle = if ui_enabled {
+ // Input capture and accessibility are always enabled.
+ let ui_recorder_handle = {
let ui_config = config.to_ui_recorder_config();
let db_clone = db.clone();
match start_ui_recording(db_clone, ui_config, capture_trigger_tx).await {
@@ -393,7 +389,7 @@ pub async fn start_embedded_server(
let manual_meeting = std::sync::Arc::new(tokio::sync::RwLock::new(None::<i64>));
// Start v2 meeting detection (UI scanning for call controls)
- // Independent of enable_input_capture/enable_accessibility toggles — only needs accessibility permission
+ // Independent of UI recorder — only needs accessibility permission
{
let v2_in_meeting = std::sync::Arc::new(std::sync::atomic::AtomicBool::new(false));
let _meeting_watcher = start_meeting_watcher(
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rs
index 9effa266c..4f883a8a1 100755
--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs
@@ -1147,8 +1147,8 @@ async fn main() {
map.insert("languages".into(), serde_json::json!(store.recording.languages));
map.insert("use_pii_removal".into(), serde_json::json!(store.recording.use_pii_removal));
map.insert("disable_vision".into(), serde_json::json!(store.recording.disable_vision));
- map.insert("enable_input_capture".into(), serde_json::json!(store.recording.enable_input_capture));
- map.insert("enable_accessibility".into(), serde_json::json!(store.recording.enable_accessibility));
+ map.insert("enable_input_capture".into(), serde_json::json!(true));
+ map.insert("enable_accessibility".into(), serde_json::json!(true));
map.insert("auto_start_enabled".into(), serde_json::json!(store.auto_start_enabled));
map.insert("platform".into(), serde_json::json!(store.platform));
map.insert("embedded_llm_enabled".into(), serde_json::json!(store.embedded_llm.enabled));
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/store.rs b/apps/screenpipe-app-tauri/src-tauri/src/store.rs
index 3b58b3150..e825806b6 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/store.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/store.rs
@@ -640,9 +640,12 @@ impl SettingsStore {
.filter(|s| !s.trim().is_empty())
.or_else(|| self.user.name.clone().filter(|s| !s.trim().is_empty()))
.or_else(|| self.user.email.clone().filter(|s| !s.trim().is_empty()));
- // Always force these on for the engine
- settings.enable_input_capture = true;
- settings.enable_accessibility = true;
+ // Legacy fields — always true, no-op but kept for serde compat
+ #[allow(deprecated)]
+ {
+ settings.enable_input_capture = true;
+ settings.enable_accessibility = true;
+ }
settings
}
diff --git a/crates/screenpipe-config/src/recording.rs b/crates/screenpipe-config/src/recording.rs
index 83c423c71..06f82f34c 100644
--- a/crates/screenpipe-config/src/recording.rs
+++ b/crates/screenpipe-config/src/recording.rs
@@ -189,12 +189,20 @@ pub struct RecordingSettings {
#[serde(rename = "analyticsId")]
pub analytics_id: String,
- /// Enable input event capture (keyboard, mouse, clipboard).
- #[serde(rename = "enableInputCapture")]
+ /// Legacy: input capture is always enabled. Kept for serde compat with
+ /// existing store.bin files; deserialized but ignored.
+ #[serde(rename = "enableInputCapture", default = "default_true")]
+ #[deprecated(note = "input capture is always enabled; will be removed")]
pub enable_input_capture: bool,
- /// Enable accessibility text capture (AX tree walker).
- #[serde(rename = "enableAccessibility", alias = "enableUiEvents")]
+ /// Legacy: accessibility capture is always enabled. Kept for serde compat
+ /// with existing store.bin files; deserialized but ignored.
+ #[serde(
+ rename = "enableAccessibility",
+ alias = "enableUiEvents",
+ default = "default_true"
+ )]
+ #[deprecated(note = "accessibility capture is always enabled; will be removed")]
pub enable_accessibility: bool,
/// Enable AI workflow event detection (cloud feature, requires subscription).
@@ -240,7 +248,7 @@ impl Default for RecordingSettings {
Self {
disable_audio: false,
audio_transcription_engine: "parakeet".to_string(),
- transcription_mode: "realtime".to_string(),
+ transcription_mode: "batch".to_string(),
audio_devices: vec![],
use_system_default_audio: true,
audio_chunk_duration: 30,
@@ -398,7 +406,7 @@ mod tests {
// This is critical for flatten compat — SettingsStore has aiPresets, shortcuts, etc.
// Fields that were in extra HashMap now have defaults
- assert_eq!(settings.transcription_mode, "realtime"); // default, wasn't in JSON
+ assert_eq!(settings.transcription_mode, "batch"); // default, wasn't in JSON
assert_eq!(settings.power_mode, None); // default
assert!(settings.vocabulary.is_empty()); // default
}
diff --git a/crates/screenpipe-engine/src/bin/screenpipe-engine.rs b/crates/screenpipe-engine/src/bin/screenpipe-engine.rs
index 8759be878..12c34eba0 100644
--- a/crates/screenpipe-engine/src/bin/screenpipe-engine.rs
+++ b/crates/screenpipe-engine/src/bin/screenpipe-engine.rs
@@ -420,8 +420,7 @@ async fn main() -> anyhow::Result<()> {
map.insert("use_pii_removal".into(), json!(record_args.use_pii_removal));
map.insert("disable_vision".into(), json!(record_args.disable_vision));
map.insert("vad_engine".into(), json!("Silero"));
- map.insert("enable_input_capture".into(), json!(true));
- map.insert("enable_accessibility".into(), json!(true));
+ // enable_input_capture / enable_accessibility always true (removed as settings)
map.insert("enable_sync".into(), json!(record_args.enable_sync));
map.insert(
"sync_interval_secs".into(),
@@ -501,14 +500,21 @@ async fn main() -> anyhow::Result<()> {
extern "C" {
fn CGRequestScreenCaptureAccess() -> bool;
}
- unsafe { CGRequestScreenCaptureAccess(); }
+ unsafe {
+ CGRequestScreenCaptureAccess();
+ }
}
if need_audio {
- if let Ok(status) = av::CaptureDevice::authorization_status_for_media_type(av::MediaType::audio()) {
+ if let Ok(status) =
+ av::CaptureDevice::authorization_status_for_media_type(av::MediaType::audio())
+ {
if status == av::AuthorizationStatus::NotDetermined {
// Fire-and-forget: triggers the native "Allow microphone" dialog
let mut block = cidre::blocks::SendBlock::new1(|_granted: bool| {});
- let _ = av::CaptureDevice::request_access_for_media_type_ch(av::MediaType::audio(), &mut block);
+ let _ = av::CaptureDevice::request_access_for_media_type_ch(
+ av::MediaType::audio(),
+ &mut block,
+ );
}
}
}
@@ -524,8 +530,12 @@ async fn main() -> anyhow::Result<()> {
let audio_ok = !need_audio || perms.microphone.is_granted();
if screen_ok && audio_ok {
- if need_screen { eprintln!(" screen recording: ok"); }
- if need_audio { eprintln!(" microphone: ok"); }
+ if need_screen {
+ eprintln!(" screen recording: ok");
+ }
+ if need_audio {
+ eprintln!(" microphone: ok");
+ }
if perms.accessibility.is_granted() {
eprintln!(" accessibility: ok");
} else {
@@ -546,7 +556,10 @@ async fn main() -> anyhow::Result<()> {
printed_waiting = true;
let terminal = permissions::detect_terminal();
if !screen_ok {
- eprintln!(" screen recording: waiting — grant access to \"{}\"", terminal);
+ eprintln!(
+ " screen recording: waiting — grant access to \"{}\"",
+ terminal
+ );
}
if !audio_ok {
eprintln!(" microphone: waiting — grant access to \"{}\"", terminal);
@@ -1144,7 +1157,7 @@ async fn main() -> anyhow::Result<()> {
};
// Start v2 meeting detection (UI scanning for call controls)
- // Independent of enable_input_capture/enable_accessibility — only needs accessibility permission
+ // Independent of UI recorder — only needs accessibility permission
let _meeting_watcher_handle = {
let v2_in_meeting = std::sync::Arc::new(std::sync::atomic::AtomicBool::new(false));
start_meeting_watcher(
diff --git a/crates/screenpipe-engine/src/cli/mod.rs b/crates/screenpipe-engine/src/cli/mod.rs
index 5f62ffcb2..0b1ecbe87 100644
--- a/crates/screenpipe-engine/src/cli/mod.rs
+++ b/crates/screenpipe-engine/src/cli/mod.rs
@@ -111,10 +111,10 @@ impl From<CliAudioTranscriptionEngine> for CoreAudioTranscriptionEngine {
#[derive(Clone, Debug, ValueEnum, PartialEq)]
pub enum CliTranscriptionMode {
- /// Transcribe immediately as audio is captured (default)
+ /// Transcribe immediately as audio is captured
#[clap(name = "realtime")]
Realtime,
- /// Accumulate longer audio batches for better transcription quality
+ /// Accumulate longer audio batches for better transcription quality (default)
#[clap(name = "batch", alias = "smart")]
Batch,
}
@@ -308,8 +308,8 @@ pub struct RecordArgs {
#[arg(long, hide = true)]
pub auto_destruct_pid: Option<u32>,
- /// Audio transcription scheduling mode: realtime (default) or batch (longer chunks for quality)
- #[arg(long, value_enum, default_value_t = CliTranscriptionMode::Realtime)]
+ /// Audio transcription scheduling mode: batch (default, longer chunks for quality) or realtime
+ #[arg(long, value_enum, default_value_t = CliTranscriptionMode::Batch)]
pub transcription_mode: CliTranscriptionMode,
/// Disable telemetry
@@ -380,8 +380,8 @@ impl RecordArgs {
disable_vision: self.disable_vision,
use_pii_removal: self.use_pii_removal,
filter_music: self.filter_music,
- enable_input_capture: true,
- enable_accessibility: true,
+ enable_input_capture: true, // legacy field, always true
+ enable_accessibility: true, // legacy field, always true
audio_transcription_engine: engine_str.to_string(),
transcription_mode: mode_str.to_string(),
audio_devices: self.audio_device.clone(),
diff --git a/crates/screenpipe-engine/src/recording_config.rs b/crates/screenpipe-engine/src/recording_config.rs
index cc4febfa0..6ad017932 100644
--- a/crates/screenpipe-engine/src/recording_config.rs
+++ b/crates/screenpipe-engine/src/recording_config.rs
@@ -31,8 +31,7 @@ pub struct RecordingConfig {
pub use_pii_removal: bool,
/// Filter music-dominant audio before transcription using spectral analysis
pub filter_music: bool,
- pub enable_input_capture: bool,
- pub enable_accessibility: bool,
+ // enable_input_capture and enable_accessibility removed — always true
// Engines (typed, not strings)
pub audio_transcription_engine: AudioTranscriptionEngine,
@@ -127,8 +126,7 @@ impl RecordingConfig {
disable_vision: settings.disable_vision,
use_pii_removal: settings.use_pii_removal,
filter_music: settings.filter_music,
- enable_input_capture: settings.enable_input_capture,
- enable_accessibility: settings.enable_accessibility,
+ // enable_input_capture / enable_accessibility removed — always true
enable_workflow_events: settings.enable_workflow_events,
audio_transcription_engine: engine_str
.parse()
@@ -192,9 +190,9 @@ impl RecordingConfig {
/// Build a `UiRecorderConfig` from this recording config.
pub fn to_ui_recorder_config(&self) -> crate::ui_recorder::UiRecorderConfig {
crate::ui_recorder::UiRecorderConfig {
- enabled: self.enable_input_capture || self.enable_accessibility,
- enable_tree_walker: self.enable_accessibility,
- record_input_events: self.enable_input_capture,
+ enabled: true,
+ enable_tree_walker: true,
+ record_input_events: true,
excluded_windows: self.ignored_windows.clone(),
ignored_windows: self.ignored_windows.clone(),
included_windows: self.included_windows.clone(),