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

feat(enterprise-updates): consumer-banner default for new orgs

Louis Beaumont731bfc81424e
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/updates.rs b/apps/screenpipe-app-tauri/src-tauri/src/updates.rs
index 6a741f00d..f91df1046 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/updates.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/updates.rs
@@ -144,7 +144,10 @@ fn enterprise_updates_managed_locally(app: &tauri::AppHandle) -> bool {
Some("screenpipe") => false,
Some("auto_detect") => metadata.managed,
Some("mdm") | Some("manual") => true,
- _ => true,
+ // Missing/unknown policy → behave like a new org with the consumer
+ // banner flow. Existing orgs are explicitly pinned to "manual" via
+ // the website migration so they hit the arm above, not this one.
+ _ => false,
}
}
diff --git a/ee/desktop/lib/app-update-policy.ts b/ee/desktop/lib/app-update-policy.ts
index 0b8ce8aff..89d0f24e8 100644
--- a/ee/desktop/lib/app-update-policy.ts
+++ b/ee/desktop/lib/app-update-policy.ts
@@ -21,8 +21,12 @@ export interface EnterpriseInstallMetadata {
detected_by: string[];
}
+// New orgs default to consumer-like behavior: silent background download +
+// banner-driven restart. Existing orgs are pinned to "manual" via the
+// `default_existing_enterprise_orgs_to_manual_updates` migration so they
+// don't suddenly start self-updating when this gate ships.
export const DEFAULT_ENTERPRISE_APP_UPDATE_POLICY: EnterpriseAppUpdatePolicy = {
- mode: "auto_detect",
+ mode: "screenpipe",
default_auto_update: false,
allow_employee_override: true,
channel: "enterprise",