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
enterprise: account section visibility is policy-controlled, not hardcoded
Louis Beaumont8ea506a08b16
diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-enterprise-policy.ts b/apps/screenpipe-app-tauri/lib/hooks/use-enterprise-policy.tsindex cf7395406..da8c24351 100644--- a/apps/screenpipe-app-tauri/lib/hooks/use-enterprise-policy.ts+++ b/apps/screenpipe-app-tauri/lib/hooks/use-enterprise-policy.ts@@ -47,8 +47,14 @@ const EMPTY_POLICY: EnterprisePolicy = {orgName: "",};-// Sections always hidden in enterprise builds (regardless of policy)-const ENTERPRISE_DEFAULT_HIDDEN = ["account", "referral"];+// Sections always hidden in enterprise builds (regardless of policy).+// "account" is deliberately NOT here: its visibility is admin-controlled via+// the workspace policy's UI-visibility toggle (hidden_sections), because the+// Account section carries the sign-in button — and team pipe sharing + role+// detection need sign-in. Hardcoding it hidden made signing in impossible on+// enterprise devices. "referral" stays hardcoded (consumer growth surface,+// meaningless in a managed org).+const ENTERPRISE_DEFAULT_HIDDEN = ["referral"];// Re-fetch policy every 5 minutes so admin changes propagate without app restartconst POLL_INTERVAL_MS = 5 * 60 * 1000;