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
fix(app): don't init PostHog in E2E (stops announcement modal over every spec) (#4673)
Louis Beaumonta431b93d9ba3
diff --git a/apps/screenpipe-app-tauri/app/providers.tsx b/apps/screenpipe-app-tauri/app/providers.tsxindex faa527995..29c49ade2 100644--- a/apps/screenpipe-app-tauri/app/providers.tsx+++ b/apps/screenpipe-app-tauri/app/providers.tsx@@ -61,7 +61,12 @@ export const Providers = forwardRef<useEffect(() => {if (typeof window !== "undefined") {const isDebug = process.env.TAURI_ENV_DEBUG === "true";- if (isDebug) return;+ // Skip in E2E too: the suite runs a release-like build, so posthog would+ // otherwise init, load the live `app-announcement` flag, and pop a modal+ // over every spec (clean localStorage each run = empty dismissed-set) —+ // plus pollute prod analytics with test traffic.+ const isE2E = process.env.NEXT_PUBLIC_SCREENPIPE_E2E === "true";+ if (isDebug || isE2E) return;// Bootstrap with the stable per-install id (mirrors settings.analyticsId,// cached by the identify() effect in use-settings) so EVERY event — incl.// ones fired by overlay windows like the floating search bar before the