: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(alerts): drop always-true alerts-investigation-agent flag check (#91000)
posthog[bot]07f4b91e4385
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsxindex 2f8797d734eb..0810700ae6f5 100644--- a/frontend/src/lib/constants.tsx+++ b/frontend/src/lib/constants.tsx@@ -266,7 +266,6 @@ export const FEATURE_FLAGS = {/** Alert edit modal: check history chart + chart/table toggle (table remains when off). */ALERTS_15_MINUTE_INTERVAL: 'alerts-15-minute-interval', // owner: #team-analytics-platform, gates 15-minute insight alert intervalALERTS_INLINE_NOTIFICATIONS: 'alerts-inline-notifications', // owner: @vdekrijger- ALERTS_INVESTIGATION_AGENT: 'alerts-investigation-agent', // owner: @andrewm4894, anomaly alerts — investigation agent on firingAMPLITUDE_BATCH_IMPORT_OPTIONS: 'amplitude-batch-import-options', // owner: #team-ingestionANOMALY_ALERT_GUIDANCE_EXPERIMENT: 'anomaly-alert-guidance',APPROVALS: 'approvals', // owner: @yasen-posthog #team-platform-featuresdiff --git a/products/alerts/frontend/components/AlertDefinitionSection.tsx b/products/alerts/frontend/components/AlertDefinitionSection.tsxindex 4b9e457be8db..71ccecc6e6e7 100644--- a/products/alerts/frontend/components/AlertDefinitionSection.tsx+++ b/products/alerts/frontend/components/AlertDefinitionSection.tsx@@ -63,7 +63,6 @@ export interface AlertDefinitionSectionProps {supportsAnomalyDetection: booleanshowAnomalyGuidance?: booleantwoColumnLayout?: boolean- investigationAgentEnabled: booleansimulationResult: AlertSimulationResult | nullsimulationResultLoading: booleansimulationDateFrom: string | null@@ -88,7 +87,6 @@ export function AlertDefinitionSection({supportsAnomalyDetection,showAnomalyGuidance = false,twoColumnLayout = false,- investigationAgentEnabled,simulationResult,simulationResultLoading,simulationDateFrom,@@ -219,7 +217,7 @@ export function AlertDefinitionSection({/>)}- {alertMode === 'detector' && alertForm.detector_config && investigationAgentEnabled && (+ {alertMode === 'detector' && alertForm.detector_config && (<InvestigationAgentSettings alertForm={alertForm} onSetAlertFormValue={onSetAlertFormValue} />)}diff --git a/products/alerts/frontend/views/EditAlertModal.tsx b/products/alerts/frontend/views/EditAlertModal.tsxindex 9dae789da526..0f7ae3453d95 100644--- a/products/alerts/frontend/views/EditAlertModal.tsx+++ b/products/alerts/frontend/views/EditAlertModal.tsx@@ -189,7 +189,6 @@ export function EditAlertModal(props: AlertModalProps): JSX.Element {const { currentTeam } = useValues(teamLogic)const projectTimezone = currentTeam?.timezone ?? 'UTC'const inlineNotificationsEnabled = useFeatureFlag('ALERTS_INLINE_NOTIFICATIONS')- const investigationAgentEnabled = useFeatureFlag('ALERTS_INVESTIGATION_AGENT')const notificationLogic = alertNotificationLogic({ alertId })const { existingHogFunctions, pendingNotifications, testDeliveryResultLoading } = useValues(notificationLogic)@@ -342,7 +341,6 @@ export function EditAlertModal(props: AlertModalProps): JSX.Element {supportsAnomalyDetection={!isNonTimeSeriesDisplay && supportsAnomalyDetection(alertForm.config)}showAnomalyGuidance={creatingNewAlert && anomalyAlertGuidanceEnabled}twoColumnLayout- investigationAgentEnabled={investigationAgentEnabled}simulationResult={simulationResult}simulationResultLoading={simulationResultLoading}simulationDateFrom={simulationDateFrom}