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(app): enable controlled auto updates
Louis Beaumont8c2addf4cdda
diff --git a/apps/screenpipe-app-tauri/components/desktop-remote-control.test.tsx b/apps/screenpipe-app-tauri/components/desktop-remote-control.test.tsxindex 331b53fc4..6f0b1b430 100644--- a/apps/screenpipe-app-tauri/components/desktop-remote-control.test.tsx+++ b/apps/screenpipe-app-tauri/components/desktop-remote-control.test.tsx@@ -18,6 +18,11 @@ const mocks = vi.hoisted(() => ({payloads: {} as Record<string, unknown>,capture: vi.fn(),reloadFeatureFlags: vi.fn(),+ enterpriseBuildStatus: {+ isEnterprise: false,+ resolved: true,+ error: false,+ } as { isEnterprise: boolean; resolved: boolean; error: boolean },}));vi.mock("@/lib/hooks/use-settings", () => ({@@ -32,6 +37,10 @@ vi.mock("@/lib/utils/is-primary-window", () => ({isPrimaryWindow: () => true,}));+vi.mock("@/lib/hooks/use-is-enterprise-build", () => ({+ useEnterpriseBuildStatus: () => mocks.enterpriseBuildStatus,+}));+vi.mock("@/lib/utils/tauri", () => ({commands: {isCapturePaused: mocks.isCapturePaused,@@ -71,10 +80,16 @@ describe("DesktopRemoteControl", () => {screenpipeAecEnabled: false,macosInputVpioEnabled: false,windowsInputAecEnabled: false,+ autoUpdate: true,remoteControlPreferences: NEW_INSTALL_REMOTE_CONTROL_PREFERENCES,remoteControlPolicy: LOCAL_DESKTOP_REMOTE_POLICY,};mocks.payloads = {};+ mocks.enterpriseBuildStatus = {+ isEnterprise: false,+ resolved: true,+ error: false,+ };mocks.updateSettings.mockResolvedValue(undefined);mocks.isCapturePaused.mockResolvedValue(false);mocks.stopScreenpipe.mockResolvedValue({ status: "ok", data: null });@@ -214,4 +229,42 @@ describe("DesktopRemoteControl", () => {expect(mocks.stopScreenpipe).not.toHaveBeenCalled();expect(mocks.spawnScreenpipe).not.toHaveBeenCalled();});++ it("forces consumer auto-update on without restarting capture", async () => {+ mocks.settings = { ...mocks.settings, autoUpdate: false };+ mocks.payloads = {+ "auto-update-control": { forceEnabled: true },+ };++ render(<DesktopRemoteControl enabled />);++ await waitFor(() =>+ expect(mocks.updateSettings).toHaveBeenCalledWith(+ expect.objectContaining({ autoUpdate: true }),+ ),+ );+ expect(mocks.isCapturePaused).not.toHaveBeenCalled();+ expect(mocks.stopScreenpipe).not.toHaveBeenCalled();+ expect(mocks.spawnScreenpipe).not.toHaveBeenCalled();+ });++ it("never applies the remote auto-update override to Enterprise builds", async () => {+ mocks.settings = { ...mocks.settings, autoUpdate: false };+ mocks.enterpriseBuildStatus = {+ isEnterprise: true,+ resolved: true,+ error: false,+ };+ mocks.payloads = {+ "auto-update-control": { forceEnabled: true },+ };++ render(<DesktopRemoteControl enabled />);++ await waitFor(() => expect(mocks.updateSettings).toHaveBeenCalledTimes(1));+ expect(mocks.updateSettings.mock.calls[0][0]).not.toHaveProperty(+ "autoUpdate",+ );+ expect(mocks.isCapturePaused).not.toHaveBeenCalled();+ });});diff --git a/apps/screenpipe-app-tauri/components/desktop-remote-control.tsx b/apps/screenpipe-app-tauri/components/desktop-remote-control.tsxindex 3c8e55799..05a4fdd67 100644--- a/apps/screenpipe-app-tauri/components/desktop-remote-control.tsx+++ b/apps/screenpipe-app-tauri/components/desktop-remote-control.tsx@@ -9,6 +9,7 @@ import posthog from "posthog-js";import { commands } from "@/lib/utils/tauri";import { useSettings, type Settings } from "@/lib/hooks/use-settings";import { isPrimaryWindow } from "@/lib/utils/is-primary-window";+import { useEnterpriseBuildStatus } from "@/lib/hooks/use-is-enterprise-build";import {buildDesktopRemoteControlPatch,readDesktopRemotePolicySnapshot,@@ -47,6 +48,9 @@ async function restartRunningCapture(): Promise<boolean> {*/export function DesktopRemoteControl({ enabled }: { enabled: boolean }) {const { settings, updateSettings, isSettingsLoaded } = useSettings();+ const enterpriseBuild = useEnterpriseBuildStatus();+ const allowRemoteAutoUpdate =+ enterpriseBuild.resolved && !enterpriseBuild.isEnterprise;const settingsRef = useRef(settings);const updateSettingsRef = useRef(updateSettings);const reconcileRef = useRef<Promise<void>>(Promise.resolve());@@ -74,16 +78,23 @@ export function DesktopRemoteControl({ enabled }: { enabled: boolean }) {.then(async () => {if (cancelled) return;const current = settingsRef.current;- const { patch, changedControls, preferences } =- buildDesktopRemoteControlPatch(current, policy);+ const {+ patch,+ changedControls,+ recorderRestartRequired,+ preferences,+ } = buildDesktopRemoteControlPatch(current, policy, {+ allowRemoteAutoUpdate,+ });if (Object.keys(patch).length === 0) return;await updateSettingsRef.current(patch as Partial<Settings>);const effective = { ...current, ...patch } as Settings;settingsRef.current = effective;- const engineRestarted =- changedControls.length > 0 ? await restartRunningCapture() : false;+ const engineRestarted = recorderRestartRequired+ ? await restartRunningCapture()+ : false;if (sendExposure) {posthog.capture("desktop_remote_control_applied", {@@ -95,6 +106,9 @@ export function DesktopRemoteControl({ enabled }: { enabled: boolean }) {.map(([key]) => key),...(policy.aecMode.forceDisabled ? ["aecMode"] : []),],+ forced_on_controls: policy.autoUpdate.forceEnabled+ ? ["autoUpdate"]+ : [],effective_semantic_context: Boolean(effective.enableSemanticContext,),@@ -109,6 +123,7 @@ export function DesktopRemoteControl({ enabled }: { enabled: boolean }) {effective.prioritizeInputLatency,),effective_aec_mode: effective.aecMode ?? "off",+ effective_auto_update: Boolean(effective.autoUpdate),preference_semantic_context:preferences.semanticContext === null? "unset"@@ -181,7 +196,7 @@ export function DesktopRemoteControl({ enabled }: { enabled: boolean }) {window.removeEventListener("focus", refresh);document.removeEventListener("visibilitychange", onVisibilityChange);};- }, [enabled, isSettingsLoaded]);+ }, [allowRemoteAutoUpdate, enabled, isSettingsLoaded]);return null;}diff --git a/apps/screenpipe-app-tauri/components/settings/general-settings.tsx b/apps/screenpipe-app-tauri/components/settings/general-settings.tsxindex d35dfa50e..a92c3c4c4 100644--- a/apps/screenpipe-app-tauri/components/settings/general-settings.tsx+++ b/apps/screenpipe-app-tauri/components/settings/general-settings.tsx@@ -51,9 +51,12 @@ import {describeEnterpriseUpdateMode,normalizeEnterpriseAppUpdatePolicy,} from "@/lib/enterprise/app-update-policy";+import { getRemoteAutoUpdatePolicy } from "@/lib/desktop-remote-control";+import { useEnterpriseBuildStatus } from "@/lib/hooks/use-is-enterprise-build";export default function GeneralSettings() {const { isManagedDeployment } = useManagedPolicy();+ const enterpriseBuild = useEnterpriseBuildStatus();const { settings, updateSettings } = useSettings();const resetOnboarding = useOnboarding((state) => state.resetOnboarding);const { toast } = useToast();@@ -63,6 +66,11 @@ export default function GeneralSettings() {const userGoal =normalizeUserGoalCategory(settings.userGoalCategory) ??DEFAULT_USER_GOAL_CATEGORY;+ const autoUpdateRemotePolicy = getRemoteAutoUpdatePolicy(settings);+ const autoUpdateForcedByRemote =+ enterpriseBuild.resolved &&+ !enterpriseBuild.isEnterprise &&+ autoUpdateRemotePolicy.forceEnabled;const handleUserGoalChange = async (category: UserGoalCategory) => {try {@@ -259,12 +267,17 @@ export default function GeneralSettings() {<RefreshCw className="h-4 w-4 text-muted-foreground shrink-0" /><div><h3 className="text-sm font-medium text-foreground">Auto-update</h3>- <p className="text-xs text-muted-foreground">Restart automatically when an update is downloaded. Off: a "restart to update" banner appears instead.</p>+ <p className="text-xs text-muted-foreground">+ {autoUpdateForcedByRemote+ ? "Required temporarily so this installation receives reliability fixes."+ : "Restart automatically when an update is downloaded. Off: a \"restart to update\" banner appears instead."}+ </p></div></div><Switchid="auto-update-toggle"- checked={settings?.autoUpdate ?? false}+ checked={settings?.autoUpdate ?? true}+ disabled={autoUpdateForcedByRemote}onCheckedChange={(checked) =>handleSettingsChange({ autoUpdate: checked })}diff --git a/apps/screenpipe-app-tauri/lib/desktop-remote-control.test.ts b/apps/screenpipe-app-tauri/lib/desktop-remote-control.test.tsindex ae85b72a7..a382c6579 100644--- a/apps/screenpipe-app-tauri/lib/desktop-remote-control.test.ts+++ b/apps/screenpipe-app-tauri/lib/desktop-remote-control.test.ts@@ -10,6 +10,7 @@ import {normalizeDesktopRemotePreferences,normalizeDesktopRemotePolicySnapshot,parseAecModeRemotePolicy,+ parseAutoUpdateRemotePolicy,parseBooleanRemotePolicy,resolveAecModeRemoteValue,resolveBooleanRemoteControlValue,@@ -50,6 +51,12 @@ describe("desktop remote control", () => {forceDisabled: false,}),).toEqual({ defaultValue: "off", forceDisabled: false });+ expect(+ parseAutoUpdateRemotePolicy({+ forceEnabled: true,+ arbitrarySetting: true,+ }),+ ).toEqual({ forceEnabled: false });});it("uses defaults only for unset preferences and never remotely forces on", () => {@@ -178,6 +185,7 @@ describe("desktop remote control", () => {forceDisabled: false,},},+ autoUpdate: { forceEnabled: false },});});@@ -198,6 +206,7 @@ describe("desktop remote control", () => {},},aecMode: { defaultValue: "macos", forceDisabled: false },+ autoUpdate: { forceEnabled: false },};const result = buildDesktopRemoteControlPatch({@@ -235,6 +244,46 @@ describe("desktop remote control", () => {"filterMusic","aecMode",]);+ expect(result.recorderRestartRequired).toBe(true);+ });++ it("can force consumer auto-update on without restarting the recorder", () => {+ const policy: DesktopRemotePolicySnapshot = {+ ...LOCAL_DESKTOP_REMOTE_POLICY,+ autoUpdate: { forceEnabled: true },+ };+ const settings = {+ platform: "macos",+ remoteControlPreferences: NEW_INSTALL_REMOTE_CONTROL_PREFERENCES,+ remoteControlPolicy: LOCAL_DESKTOP_REMOTE_POLICY,+ autoUpdate: false,+ enableSemanticContext: false,+ experimentalCoreaudioSystemAudio: true,+ experimentalMeetingPiggyback: false,+ filterMusic: true,+ prioritizeInputLatency: false,+ aecMode: "off" as const,+ screenpipeAecEnabled: false,+ macosInputVpioEnabled: false,+ windowsInputAecEnabled: false,+ };++ const consumer = buildDesktopRemoteControlPatch(settings, policy, {+ allowRemoteAutoUpdate: true,+ });+ expect(consumer.patch).toEqual({+ remoteControlPolicy: policy,+ autoUpdate: true,+ });+ expect(consumer.changedControls).toEqual(["autoUpdate"]);+ expect(consumer.recorderRestartRequired).toBe(false);++ const enterprise = buildDesktopRemoteControlPatch(settings, policy, {+ allowRemoteAutoUpdate: false,+ });+ expect(enterprise.patch).toEqual({ remoteControlPolicy: policy });+ expect(enterprise.changedControls).toEqual([]);+ expect(enterprise.recorderRestartRequired).toBe(false);});it("keeps explicit preferences above rollout defaults", () => {@@ -254,6 +303,7 @@ describe("desktop remote control", () => {},},aecMode: { defaultValue: "screenpipe", forceDisabled: false },+ autoUpdate: { forceEnabled: false },};const settings = {platform: "macos",diff --git a/apps/screenpipe-app-tauri/lib/desktop-remote-control.ts b/apps/screenpipe-app-tauri/lib/desktop-remote-control.tsindex 7b42494f9..9af43664c 100644--- a/apps/screenpipe-app-tauri/lib/desktop-remote-control.ts+++ b/apps/screenpipe-app-tauri/lib/desktop-remote-control.ts@@ -41,6 +41,7 @@ export const BOOLEAN_REMOTE_CONTROL_DEFINITIONS = {} as const satisfies Record<string, BooleanRemoteControlDefinition>;export const AEC_MODE_CONTROL_FLAG_KEY = "aec-mode-control";+export const AUTO_UPDATE_CONTROL_FLAG_KEY = "auto-update-control";export type BooleanRemoteControlKey =keyof typeof BOOLEAN_REMOTE_CONTROL_DEFINITIONS;@@ -55,10 +56,15 @@ export type AecModeRemotePolicy = {forceDisabled: boolean;};+export type AutoUpdateRemotePolicy = {+ forceEnabled: boolean;+};+export type DesktopRemotePolicySnapshot = {schemaVersion: 1;boolean: Record<BooleanRemoteControlKey, BooleanRemotePolicy>;aecMode: AecModeRemotePolicy;+ autoUpdate: AutoUpdateRemotePolicy;};export type DesktopRemotePreferences = {@@ -86,6 +92,7 @@ export type RemoteControllableSettings = {screenpipeAecEnabled?: boolean;macosInputVpioEnabled?: boolean;windowsInputAecEnabled?: boolean;+ autoUpdate?: boolean;};const AEC_MODES = new Set<AecMode>(["off", "screenpipe", "macos", "windows"]);@@ -112,6 +119,9 @@ export const LOCAL_DESKTOP_REMOTE_POLICY: DesktopRemotePolicySnapshot = {defaultValue: "off",forceDisabled: false,},+ autoUpdate: {+ forceEnabled: false,+ },};export const NEW_INSTALL_REMOTE_CONTROL_PREFERENCES: DesktopRemotePreferences =@@ -154,6 +164,17 @@ function isAecModeRemotePolicy(value: unknown): value is AecModeRemotePolicy {);}+function isAutoUpdateRemotePolicy(+ value: unknown,+): value is AutoUpdateRemotePolicy {+ if (!value || typeof value !== "object" || Array.isArray(value)) return false;+ const candidate = value as Record<string, unknown>;+ return (+ hasOnlyKeys(candidate, ["forceEnabled"]) &&+ typeof candidate.forceEnabled === "boolean"+ );+}+function cloneLocalDesktopRemotePolicy(): DesktopRemotePolicySnapshot {return {schemaVersion: 1,@@ -171,6 +192,7 @@ function cloneLocalDesktopRemotePolicy(): DesktopRemotePolicySnapshot {},},aecMode: { ...LOCAL_DESKTOP_REMOTE_POLICY.aecMode },+ autoUpdate: { ...LOCAL_DESKTOP_REMOTE_POLICY.autoUpdate },};}@@ -205,6 +227,18 @@ export function parseAecModeRemotePolicy(};}+/**+ * Auto-update is intentionally separate from recorder safety controls. Remote+ * config may only enable consumer updates; it can never disable them or change+ * Enterprise-managed update policy.+ */+export function parseAutoUpdateRemotePolicy(+ payload: unknown,+): AutoUpdateRemotePolicy {+ const fallback = LOCAL_DESKTOP_REMOTE_POLICY.autoUpdate;+ return isAutoUpdateRemotePolicy(payload) ? { ...payload } : { ...fallback };+}+/** Validate a persisted snapshot before either UI or Rust-facing state uses it. */export function normalizeDesktopRemotePolicySnapshot(value: unknown,@@ -223,8 +257,17 @@ export function normalizeDesktopRemotePolicySnapshot(return fallback;}const candidate = value as Record<string, unknown>;+ const allowedKeys = new Set([+ "schemaVersion",+ "boolean",+ "aecMode",+ "autoUpdate",+ ]);if (- !hasOnlyKeys(candidate, ["schemaVersion", "boolean", "aecMode"]) ||+ Object.keys(candidate).some((key) => !allowedKeys.has(key)) ||+ !("schemaVersion" in candidate) ||+ !("boolean" in candidate) ||+ !("aecMode" in candidate) ||candidate.schemaVersion !== 1 ||!candidate.boolean ||typeof candidate.boolean !== "object" ||@@ -244,6 +287,12 @@ export function normalizeDesktopRemotePolicySnapshot() {return fallback;}+ if (+ candidate.autoUpdate !== undefined &&+ !isAutoUpdateRemotePolicy(candidate.autoUpdate)+ ) {+ return fallback;+ }const normalizedBoolean = { ...fallback.boolean };for (const control of controlKeys) {const storedPolicy = boolean[control];@@ -256,6 +305,10 @@ export function normalizeDesktopRemotePolicySnapshot(schemaVersion: 1,boolean: normalizedBoolean,aecMode: { ...candidate.aecMode },+ autoUpdate:+ candidate.autoUpdate === undefined+ ? { ...fallback.autoUpdate }+ : { ...candidate.autoUpdate },};}@@ -297,6 +350,9 @@ export function readDesktopRemotePolicySnapshot(aecMode: parseAecModeRemotePolicy(payloadForFlag(AEC_MODE_CONTROL_FLAG_KEY),),+ autoUpdate: parseAutoUpdateRemotePolicy(+ payloadForFlag(AUTO_UPDATE_CONTROL_FLAG_KEY),+ ),};}@@ -437,6 +493,13 @@ export function getRemoteAecModePolicy(.aecMode;}+export function getRemoteAutoUpdatePolicy(+ settings: Pick<RemoteControllableSettings, "remoteControlPolicy">,+): AutoUpdateRemotePolicy {+ return normalizeDesktopRemotePolicySnapshot(settings.remoteControlPolicy)+ .autoUpdate;+}+function sameJson(left: unknown, right: unknown) {return JSON.stringify(left) === JSON.stringify(right);}@@ -444,9 +507,11 @@ function sameJson(left: unknown, right: unknown) {export function buildDesktopRemoteControlPatch(settings: RemoteControllableSettings,policy: DesktopRemotePolicySnapshot,+ options: { allowRemoteAutoUpdate?: boolean } = {},): {patch: Partial<RemoteControllableSettings>;- changedControls: Array<BooleanRemoteControlKey | "aecMode">;+ changedControls: Array<BooleanRemoteControlKey | "aecMode" | "autoUpdate">;+ recorderRestartRequired: boolean;preferences: DesktopRemotePreferences;} {const preferences = normalizeDesktopRemotePreferences(settings);@@ -496,7 +561,9 @@ export function buildDesktopRemoteControlPatch(};const patch: Partial<RemoteControllableSettings> = {};- const changedControls: Array<BooleanRemoteControlKey | "aecMode"> = [];+ const changedControls: Array<+ BooleanRemoteControlKey | "aecMode" | "autoUpdate"+ > = [];if (!sameJson(settings.remoteControlPreferences, preferences)) {patch.remoteControlPreferences = preferences;@@ -505,6 +572,15 @@ export function buildDesktopRemoteControlPatch(patch.remoteControlPolicy = policy;}+ if (+ options.allowRemoteAutoUpdate &&+ policy.autoUpdate.forceEnabled &&+ settings.autoUpdate !== true+ ) {+ patch.autoUpdate = true;+ changedControls.push("autoUpdate");+ }+if (settings.enableSemanticContext !== effective.semanticContext) {patch.enableSemanticContext = effective.semanticContext;changedControls.push("semanticContext");@@ -542,5 +618,12 @@ export function buildDesktopRemoteControlPatch(changedControls.push("aecMode");}- return { patch, changedControls, preferences };+ return {+ patch,+ changedControls,+ recorderRestartRequired: changedControls.some(+ (control) => control !== "autoUpdate",+ ),+ preferences,+ };}diff --git a/apps/screenpipe-app-tauri/lib/hooks/__tests__/default-settings-remote-controls.test.ts b/apps/screenpipe-app-tauri/lib/hooks/__tests__/default-settings-remote-controls.test.tsindex a95bf3b56..5e032b8d2 100644--- a/apps/screenpipe-app-tauri/lib/hooks/__tests__/default-settings-remote-controls.test.ts+++ b/apps/screenpipe-app-tauri/lib/hooks/__tests__/default-settings-remote-controls.test.ts@@ -19,6 +19,7 @@ describe("default settings: remote controls", () => {expect(settings.filterMusic).toBe(true);expect(settings.prioritizeInputLatency).toBe(false);expect(settings.aecMode).toBe("off");+ expect(settings.autoUpdate).toBe(true);expect(settings.remoteControlPreferences).toEqual(NEW_INSTALL_REMOTE_CONTROL_PREFERENCES,);diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsxindex a515d0e52..58e69f91f 100644--- a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx+++ b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx@@ -702,7 +702,7 @@ let DEFAULT_SETTINGS: Settings = {port: 11434,},updateChannel: "stable",- autoUpdate: false,+ autoUpdate: true,autoUpdatePipes: true,autoStartEnabled: true,platform: "unknown",@@ -763,6 +763,7 @@ let DEFAULT_SETTINGS: Settings = {},},aecMode: { ...LOCAL_DESKTOP_REMOTE_POLICY.aecMode },+ autoUpdate: { ...LOCAL_DESKTOP_REMOTE_POLICY.autoUpdate },},semanticContextMode: "memory",useAllMonitors: true,diff --git a/apps/screenpipe-app-tauri/src-tauri/src/analytics.rs b/apps/screenpipe-app-tauri/src-tauri/src/analytics.rsindex 5278032f0..669ab3931 100755--- a/apps/screenpipe-app-tauri/src-tauri/src/analytics.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/analytics.rs@@ -364,7 +364,7 @@ impl AnalyticsManager {// Other features"setting_use_pii_removal": get_bool("usePiiRemoval").unwrap_or(true),- "setting_auto_update": get_bool("autoUpdate").unwrap_or(false),+ "setting_auto_update": get_bool("autoUpdate").unwrap_or(true),"setting_languages_count": get_arr_len("languages"),})}diff --git a/apps/screenpipe-app-tauri/src-tauri/src/store.rs b/apps/screenpipe-app-tauri/src-tauri/src/store.rsindex cbc591d2e..16a59924d 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/store.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/store.rs@@ -956,7 +956,7 @@ pub struct SettingsStore {pub device_id: String,/// 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_false")]+ #[serde(rename = "autoUpdate", default = "default_true")]pub auto_update: bool,/// Auto-update store-installed pipes that haven't been locally modified.#[serde(rename = "autoUpdatePipes", default = "default_true")]@@ -1042,10 +1042,6 @@ fn default_true() -> bool {true}-fn default_false() -> bool {- false-}-fn default_overlay_size() -> String {"small".to_string()}@@ -1445,6 +1441,9 @@ Rules:"defaultValue": "off","forceDisabled": false,},+ "autoUpdate": {+ "forceEnabled": false,+ },}),),]);@@ -1510,7 +1509,7 @@ Rules:show_shortcut_overlay: true,shortcut_overlay_size: "small".to_string(),device_id: uuid::Uuid::new_v4().to_string(),- auto_update: false,+ auto_update: true,auto_update_pipes: true,enhanced_ai: false,remote_log_collection_enabled: false,@@ -2263,8 +2262,8 @@ mod tests {const FALLBACK_ENGINE: &str = "whisper-large-v3-turbo-quantized";#[test]- fn auto_update_defaults_to_disabled() {- assert!(!SettingsStore::default().auto_update);+ fn auto_update_defaults_to_enabled() {+ assert!(SettingsStore::default().auto_update);}#[test]@@ -2304,12 +2303,23 @@ mod tests {}#[test]- fn missing_auto_update_deserializes_disabled() {+ fn missing_auto_update_deserializes_enabled() {let settings: SettingsStore = serde_json::from_value(json!({"aiPresets": []})).unwrap();+ assert!(settings.auto_update);+ }++ #[test]+ fn explicit_auto_update_false_is_respected() {+ let settings: SettingsStore = serde_json::from_value(json!({+ "aiPresets": [],+ "autoUpdate": false+ }))+ .unwrap();+assert!(!settings.auto_update);}