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.

chore(tasks): remove inbox discussion prewarm flag (#105713)

Alessandro Pogliaghi69aa32752687
diff --git a/docs/internal/task-run-api.md b/docs/internal/task-run-api.md
index 05f5a794aff4..3c3f1a432ed3 100644
--- a/docs/internal/task-run-api.md
+++ b/docs/internal/task-run-api.md
@@ -9,6 +9,7 @@ Requests through a PostHog connection keep the sandbox origin and the same run r
The origin marker does not grant sandbox access.
PostHog Desktop access, runtime access, and usage limits still apply.
Repository-backed report discussions also require Desktop access.
+Opening Ask AI on a Self-driving inbox report warms a task sandbox for the discussion.
The response has status `201` and contains the task and its `latest_run`.
If task creation succeeds but run creation or dispatch fails, the response also contains `run_error`.
diff --git a/products/tasks/backend/presentation/views/api.py b/products/tasks/backend/presentation/views/api.py
index 1824aa37d504..00fa26726abc 100644
--- a/products/tasks/backend/presentation/views/api.py
+++ b/products/tasks/backend/presentation/views/api.py
@@ -262,19 +262,16 @@ def _agent_run_disabled_response() -> Response:
TASKS_PREWARM_SANDBOX_FLAG = "tasks-prewarm-sandbox"
-TASKS_PREWARM_INBOX_DISCUSSION_FLAG = "tasks-prewarm-inbox-discussion"
-# One rollout per origin product — the Code app, PostHog AI and the Inbox reach different populations,
-# so a shared flag would drag one to 100% while rolling out another.
WARM_SANDBOX_FLAGS_BY_ORIGIN_PRODUCT: dict[str, str] = {
tasks_facade.TaskOriginProduct.USER_CREATED: TASKS_PREWARM_SANDBOX_FLAG,
- tasks_facade.TaskOriginProduct.SIGNAL_REPORT: TASKS_PREWARM_INBOX_DISCUSSION_FLAG,
}
# Origins that warm for every user, with no flag left to evaluate.
WARM_SANDBOX_UNGATED_ORIGIN_PRODUCTS: frozenset[str] = frozenset(
{
tasks_facade.TaskOriginProduct.POSTHOG_AI,
+ tasks_facade.TaskOriginProduct.SIGNAL_REPORT,
}
)
diff --git a/products/tasks/backend/tests/test_warm_facade.py b/products/tasks/backend/tests/test_warm_facade.py
index 33a6168d152b..a8b42ab69f4b 100644
--- a/products/tasks/backend/tests/test_warm_facade.py
+++ b/products/tasks/backend/tests/test_warm_facade.py
@@ -443,11 +443,8 @@ class TestWarmTaskSandbox(APIBaseTest):
("refused", tasks_access.DesktopAccessDecision.STARTUP_PLAN, False),
]
)
- @patch("products.tasks.backend.presentation.views.api.TaskViewSet._warm_enabled", return_value=True)
@patch("products.tasks.backend.facade.api.warm_task_sandbox")
- def test_warm_endpoint_forwards_the_report_and_the_desktop_gate_outcome(
- self, _name, decision, entitled, mock_warm, _mock_warm_enabled
- ):
+ def test_warm_endpoint_forwards_the_report_and_the_desktop_gate_outcome(self, _name, decision, entitled, mock_warm):
from products.signals.backend.models import SignalReport
report = SignalReport.objects.create(team=self.team)