: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
fix(signals): mark auto-started implementation task as internal (#68752)
Joshua Snyder0da0b8dcb7fb
diff --git a/frontend/src/scenes/inbox/inboxSceneLogic.ts b/frontend/src/scenes/inbox/inboxSceneLogic.tsindex 87ba86c5119f..4fc7dcf7aa81 100644--- a/frontend/src/scenes/inbox/inboxSceneLogic.ts+++ b/frontend/src/scenes/inbox/inboxSceneLogic.ts@@ -229,8 +229,8 @@ export const inboxSceneLogic = kea<inboxSceneLogicType>([loadRuns: async (_payload: void, breakpoint) => {const [scoutResult, signalResult] = await Promise.allSettled([api.signalScout.runs.list({ limit: SCOUT_RUNS_LIMIT }),- // `internal: 'all'` so the pipeline's research runs (created internal) are included,- // not just the non-internal implementation/PR runs.+ // `internal: 'all'` so the pipeline's runs (research and implementation, both+ // created internal) are included. They're hidden from the default task list.api.tasks.list({origin_product: OriginProduct.SIGNAL_REPORT,internal: 'all',diff --git a/products/signals/backend/auto_start.py b/products/signals/backend/auto_start.pyindex fc47f65a58cb..45adb285c377 100644--- a/products/signals/backend/auto_start.py+++ b/products/signals/backend/auto_start.py@@ -148,6 +148,8 @@ def _create_implementation_task_if_absent(posthog_mcp_scopes="full",interaction_origin="signal_report", # Makes the agent auto-push and open a draft PRai_stage="implementation",+ # Internal so the run stays out of the default task list; the report surfaces it by id.+ internal=True,)if created.latest_run is None:raise RuntimeError(f"Task {created.task_id} auto-started without producing a TaskRun")diff --git a/products/signals/backend/test/test_auto_start.py b/products/signals/backend/test/test_auto_start.pyindex 4f38c28a0c20..1242658a57e3 100644--- a/products/signals/backend/test/test_auto_start.py+++ b/products/signals/backend/test/test_auto_start.py@@ -159,6 +159,7 @@ def test_create_implementation_task_if_absent_is_idempotent(organization, team):call_kwargs = mock_create.call_args.kwargsassert call_kwargs["origin_product"] == tasks_facade.TaskOriginProduct.SIGNAL_REPORTassert call_kwargs["ai_stage"] == "implementation"+ assert call_kwargs["internal"] is True# The gate the second evaluation observed is the legacy SignalReportTask implementation link,# written in the same transaction as the task; the task_run artefact is the work-log entry# alongside.