:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(desktop): remove the experiment suggestions flag (#120144)
Paul D'Ambrab2e709c0e9e8
diff --git a/products/desktop/packages/shared/src/feature-flag-keys.json b/products/desktop/packages/shared/src/feature-flag-keys.jsonindex bc053cfa88ec..d6c25667000d 100644--- a/products/desktop/packages/shared/src/feature-flag-keys.json+++ b/products/desktop/packages/shared/src/feature-flag-keys.json@@ -16,7 +16,6 @@"DESKTOP_HOME_FLAG": "desktop-home-flag","DESKTOP_WORK_LAYOUT_FLAG": "desktop-work-layout","DISCOVERY_RUN_FLAG": "posthog-code-discovery-run",- "EXPERIMENT_SUGGESTIONS_FLAG": "posthog-code-experiment-suggestions","FAST_MODE_FLAG": "posthog-desktop-fast-mode","LOCAL_MCP_IMPORT_FLAG": "posthog-code-local-mcp-import","LOOPS_FLAG": "loops",diff --git a/products/desktop/packages/shared/src/flags.ts b/products/desktop/packages/shared/src/flags.tsindex 4c92930216c7..9d0e9c822c5b 100644--- a/products/desktop/packages/shared/src/flags.ts+++ b/products/desktop/packages/shared/src/flags.ts@@ -3,8 +3,6 @@ import featureFlagKeys from "./feature-flag-keys.json" with { type: "json" };export const BILLING_FLAG = featureFlagKeys.BILLING_FLAG;export const CLOUD_COMPUTE_BILLING_FLAG =featureFlagKeys.CLOUD_COMPUTE_BILLING_FLAG;-export const EXPERIMENT_SUGGESTIONS_FLAG =- featureFlagKeys.EXPERIMENT_SUGGESTIONS_FLAG;/** Autoresearch (metric-optimization loop). Staff-gated while it bakes. */export const AUTORESEARCH_FLAG = featureFlagKeys.AUTORESEARCH_FLAG;export const DISCOVERY_RUN_FLAG = featureFlagKeys.DISCOVERY_RUN_FLAG;diff --git a/products/desktop/packages/ui/src/features/setup/setupRunServiceImpl.ts b/products/desktop/packages/ui/src/features/setup/setupRunServiceImpl.tsindex e99bb8c544ef..ef11c4d5274e 100644--- a/products/desktop/packages/ui/src/features/setup/setupRunServiceImpl.ts+++ b/products/desktop/packages/ui/src/features/setup/setupRunServiceImpl.ts@@ -11,10 +11,7 @@ import {HOST_TRPC_CLIENT,type HostTrpcClient,} from "@posthog/host-router/client";-import {- EXPERIMENT_SUGGESTIONS_FLAG,- getCloudUrlFromRegion,-} from "@posthog/shared";+import { getCloudUrlFromRegion } from "@posthog/shared";import { ANALYTICS_EVENTS } from "@posthog/shared/analytics-events";import {isTerminalStatus,@@ -24,7 +21,6 @@ import { injectable } from "inversify";import { captureException, track } from "../../shell/analytics";import { createAuthenticatedClient } from "../auth/authClientImperative";import { fetchAuthState } from "../auth/authQueries";-import { FEATURE_FLAGS, type FeatureFlags } from "../feature-flags/identifiers";/*** Renderer adapter for the setup discovery/enrichment orchestration. Wraps the@@ -160,11 +156,7 @@ export class SetupRunServiceImpl implements ISetupRunService {}includeExperiments(): boolean {- return (- resolveService<FeatureFlags>(FEATURE_FLAGS).isEnabled(- EXPERIMENT_SUGGESTIONS_FLAG,- ) || import.meta.env.DEV- );+ return import.meta.env.DEV;}trackDiscoveryStarted(p: { taskId: string; taskRunId: string }): void {