Skip to content

: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.

fix(workflows): confirm before pick from response runs the step for real (#121967)

Daniel Marchuk46704d09a4c6
diff --git a/products/workflows/frontend/Workflows/hogflows/panel/HogFlowEditorPanelBuildDetail.tsx b/products/workflows/frontend/Workflows/hogflows/panel/HogFlowEditorPanelBuildDetail.tsx
index d286f90d9abe..5fbcd6e70572 100644
--- a/products/workflows/frontend/Workflows/hogflows/panel/HogFlowEditorPanelBuildDetail.tsx
+++ b/products/workflows/frontend/Workflows/hogflows/panel/HogFlowEditorPanelBuildDetail.tsx
@@ -7,6 +7,7 @@ import {
LemonBanner,
LemonButton,
LemonCollapse,
+ LemonDialog,
LemonDivider,
LemonInput,
LemonInputSelect,
@@ -349,7 +350,19 @@ export function HogFlowEditorPanelBuildDetail(): JSX.Element | null {
className={shakePickButton ? 'animate-shake' : ''}
loading={testLoading}
tooltip="Executes a real HTTP request to this step's endpoint and shows the response so you can pick which property to store."
- onClick={runOutputTest}
+ onClick={() =>
+ LemonDialog.open({
+ title: 'Run this step for real?',
+ description: `"${action.name}" runs with test event data to get a response. Any message, email or request it sends goes out now.`,
+ primaryButton: {
+ children: 'Run step',
+ 'data-attr':
+ 'workflow-pick-from-response-confirm',
+ onClick: runOutputTest,
+ },
+ secondaryButton: { children: 'Cancel' },
+ })
+ }
>
Pick from response
</LemonButton>