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.

feat(tasks): filter the task list by several sources (#117566)

Paul D'Ambraf054af3391f3
diff --git a/products/desktop/packages/api-client/src/generated.ts b/products/desktop/packages/api-client/src/generated.ts
index 139ea90d9d28..9fda1bc234c2 100644
--- a/products/desktop/packages/api-client/src/generated.ts
+++ b/products/desktop/packages/api-client/src/generated.ts
@@ -22865,6 +22865,33 @@ export namespace Endpoints {
pr_state: "open" | "draft" | "merged" | "closed";
repository: string;
search: string;
+ sources: Array<
+ | "autoresearch"
+ | "error_tracking"
+ | "eval_clusters"
+ | "experiments"
+ | "hogdesk"
+ | "image_builder"
+ | "loop"
+ | "mcp_analytics"
+ | "onboarding"
+ | "posthog_ai"
+ | "posthog_desktop"
+ | "posthog_mobile"
+ | "posthog_web"
+ | "review_hog"
+ | "scout_suggestions"
+ | "session_summaries"
+ | "signal_report"
+ | "signals_chat"
+ | "signals_scout"
+ | "slack"
+ | "space_setup"
+ | "support_queue"
+ | "support_reply"
+ | "task_analysis"
+ | "workflow"
+ >;
stage: string;
status:
| "not_started"
diff --git a/products/tasks/backend/facade/api.py b/products/tasks/backend/facade/api.py
index cd309f1cdd99..d05993519466 100644
--- a/products/tasks/backend/facade/api.py
+++ b/products/tasks/backend/facade/api.py
@@ -38,6 +38,7 @@ from django.db.models import (
Q,
QuerySet,
Subquery,
+ TextChoices,
Value,
When,
)
@@ -178,6 +179,7 @@ from products.tasks.backend.repository_config_analytics import (
repositories_differ,
)
from products.tasks.backend.visibility import (
+ PRODUCT_PRIVATE_ORIGIN_PRODUCTS,
TEAM_READABLE_ORIGIN_PRODUCTS,
scout_trial_visibility_q,
task_control_q,
@@ -6926,6 +6928,46 @@ TASK_LIST_ORDERINGS: dict[str, tuple[str, ...]] = {
}
DEFAULT_TASK_LIST_ORDERING = "-created_at"
+#: Built from the two source classes, so a new origin product becomes a source without an edit here.
+#: Product-private origin products are left out because the task list never shows their tasks.
+# django-stubs types only the class-body form of TextChoices; Django supports this functional form.
+TaskListSource = TextChoices( # type: ignore[call-overload]
+ "TaskListSource",
+ [
+ # The value is also the label, so the API docs show "posthog_ai", not a title-cased "Posthog Ai".
+ (source.upper(), (source, source))
+ for source in sorted(
+ {
+ *TaskClientProvenance.values,
+ *(
+ product
+ for product in Task.OriginProduct.values
+ if product != Task.OriginProduct.USER_CREATED and product not in PRODUCT_PRIVATE_ORIGIN_PRODUCTS
+ ),
+ }
+ )
+ ],
+)
+
+
+def _task_sources_q(sources: list[str]) -> Q:
+ user_created = Q(origin_product=Task.OriginProduct.USER_CREATED)
+ matches = Q(pk__in=[])
+ for source in sources:
+ if source == TaskClientProvenance.POSTHOG_DESKTOP:
+ # A user-created task with no other known client counts as desktop, the same as the desktop app.
+ matches |= user_created & ~Q(
+ client_provenance__in=[TaskClientProvenance.POSTHOG_MOBILE, TaskClientProvenance.POSTHOG_WEB]
+ )
+ elif source == TaskClientProvenance.POSTHOG_WEB:
+ # PostHog AI runs in the web app, so the desktop app shows its tasks as web tasks too.
+ matches |= (user_created & Q(client_provenance=source)) | Q(origin_product=Task.OriginProduct.POSTHOG_AI)
+ elif source in TaskClientProvenance.values:
+ matches |= user_created & Q(client_provenance=source)
+ else:
+ matches |= Q(origin_product=source)
+ return matches
+
def _list_tasks_queryset(
team_id: int, user_id: int | None, *, filters: dict, bypass_visibility: bool = False
@@ -6946,6 +6988,10 @@ def _list_tasks_queryset(
if exclude_origin_product:
qs = qs.exclude(origin_product=exclude_origin_product)
+ sources = filters.get("sources")
+ if sources:
+ qs = qs.filter(_task_sources_q(sources))
+
stage = filters.get("stage")
if stage:
stage_run = TaskRun.objects.filter(task=OuterRef("pk"), team_id=team_id, stage=stage)
diff --git a/products/tasks/backend/presentation/serializers.py b/products/tasks/backend/presentation/serializers.py
index 43fd47814f15..6057cc85f8f0 100644
--- a/products/tasks/backend/presentation/serializers.py
+++ b/products/tasks/backend/presentation/serializers.py
@@ -17,6 +17,7 @@ from rest_framework import serializers
from rest_framework.request import Request
from rest_framework_dataclasses.serializers import DataclassSerializer
+from posthog.api.fields import JSONTolerantListField, RepeatedOrCommaSeparatedListField
from posthog.api.scoped_related_fields import TeamScopedPrimaryKeyRelatedField
from posthog.event_usage import groups
from posthog.models.integration import Integration
@@ -2332,6 +2333,21 @@ class TaskSummarySerializer(DataclassSerializer):
]
+class TaskSourcesListField(RepeatedOrCommaSeparatedListField, JSONTolerantListField):
+ """Repeated keys, one comma-joined value (the generated frontend client) or one JSON array (the MCP client).
+
+ The base order matters: JSONTolerantListField reads a JSON array before
+ RepeatedOrCommaSeparatedListField splits on commas. Blank values are dropped, so an empty
+ value means no source filter, as an empty source list does in the desktop filter.
+ """
+
+ def get_value(self, dictionary: Any) -> Any:
+ value = super().get_value(dictionary)
+ if isinstance(value, list):
+ return [source for source in value if source != ""]
+ return value
+
+
class TaskListQuerySerializer(serializers.Serializer):
"""Query parameters for listing tasks"""
@@ -2346,6 +2362,17 @@ class TaskListQuerySerializer(serializers.Serializer):
choices=tasks_facade.TaskOriginProduct.choices,
help_text="Exclude tasks with this origin product from the results",
)
+ sources = TaskSourcesListField(
+ required=False,
+ child=serializers.ChoiceField(choices=tasks_facade.TaskListSource.choices),
+ help_text=(
+ "Only tasks from any of these sources. Repeat the parameter for each source, or send one "
+ "comma-joined value or a JSON array. 'posthog_desktop', 'posthog_mobile' and 'posthog_web' "
+ "match user-created tasks by the client that created them, and a user-created task from no "
+ "other known client counts as desktop. 'posthog_web' also matches PostHog AI tasks. "
+ "Any other value matches the task's origin product."
+ ),
+ )
stage = serializers.CharField(required=False, help_text="Filter by task run stage")
organization = serializers.CharField(required=False, help_text="Filter by repository organization")
repository = serializers.CharField(
diff --git a/products/tasks/backend/presentation/views/api.py b/products/tasks/backend/presentation/views/api.py
index 97d4167383aa..0bd9cdf8568d 100644
--- a/products/tasks/backend/presentation/views/api.py
+++ b/products/tasks/backend/presentation/views/api.py
@@ -547,6 +547,7 @@ class TaskViewSet(TeamAndOrgViewSetMixin, viewsets.GenericViewSet):
filters["archived"] = getattr(request, "validated_query_data", {}).get("archived")
filters["channel"] = getattr(request, "validated_query_data", {}).get("channel")
filters["hog_flow_id"] = getattr(request, "validated_query_data", {}).get("hog_flow_id")
+ filters["sources"] = getattr(request, "validated_query_data", {}).get("sources")
# Staff can opt into seeing every team task; re-check server-side so a client can't
# forge the flag to bypass the per-user visibility gate.
all_team_tasks = bool(getattr(request, "validated_query_data", {}).get("all_team_tasks"))
diff --git a/products/tasks/backend/tests/test_filter_matrix.py b/products/tasks/backend/tests/test_filter_matrix.py
index 8d888911bb19..0810657efd9a 100644
--- a/products/tasks/backend/tests/test_filter_matrix.py
+++ b/products/tasks/backend/tests/test_filter_matrix.py
@@ -221,22 +221,86 @@ class TestTaskListFilterMatrix(TestCase):
assert self._list(client_provenance="posthog_desktop", search="billing") == self._ids("peter_plain")
assert self._list(client_provenance="posthog_desktop", search="missing") == set()
- def test_client_provenance_rejects_unknown_values(self) -> None:
- response = self.client.get("/api/projects/@current/tasks/", {"client_provenance": "unknown"})
- assert response.status_code == http_status.HTTP_400_BAD_REQUEST
-
def test_exclude_origin_product(self):
assert self._list(exclude_origin_product="signals_scout") == self.all_except("scout_in_channel")
assert self._list(created_by=self.peter.id, exclude_origin_product="slack") == self._ids(
"peter_mention_me", "peter_plain", "peter_i_commented", "peter_legacy_mention"
)
- def test_exclude_origin_product_rejects_unknown_values(self):
- # A typo must not fail open: matching nothing would return the full list including the
- # very tasks the caller asked to drop.
- response = self.client.get("/api/projects/@current/tasks/", {"exclude_origin_product": "signal_scout"})
+ @parameterized.expand(
+ [
+ ("client_provenance", "unknown"),
+ # A typo must not fail open: matching nothing would return the full list including the
+ # very tasks the caller asked to drop.
+ ("exclude_origin_product", "signal_scout"),
+ ("sources", "signal_scout"),
+ ("sources", "user_created"),
+ ("sources", "business_knowledge"),
+ ]
+ )
+ def test_rejects_unknown_values(self, param: str, value: str) -> None:
+ response = self.client.get("/api/projects/@current/tasks/", {param: value})
assert response.status_code == http_status.HTTP_400_BAD_REQUEST
+ @parameterized.expand(
+ [
+ (
+ "first_party_clients",
+ ["posthog_desktop", "posthog_mobile", "posthog_web"],
+ [
+ "peter_mention_me",
+ "peter_plain",
+ "adam_mention_peter",
+ "mine_peter_commented",
+ "peter_i_commented",
+ "adam_pinned_by_me",
+ "peter_legacy_mention",
+ ],
+ ),
+ (
+ "desktop_includes_unknown_client",
+ ["posthog_desktop"],
+ ["peter_mention_me", "peter_plain", "peter_i_commented", "adam_pinned_by_me"],
+ ),
+ ("mobile", ["posthog_mobile"], ["mine_peter_commented"]),
+ (
+ "web_includes_posthog_ai",
+ ["posthog_web", "slack"],
+ ["adam_mention_peter", "peter_legacy_mention", "peter_slack_mention_me"],
+ ),
+ ("origin_product", ["signals_scout"], ["scout_in_channel"]),
+ ("json_encoded", '["posthog_mobile", "signals_scout"]', ["mine_peter_commented", "scout_in_channel"]),
+ ("comma_joined", "posthog_mobile,signals_scout", ["mine_peter_commented", "scout_in_channel"]),
+ (
+ "empty_value_applies_no_filter",
+ "",
+ [
+ "peter_mention_me",
+ "peter_plain",
+ "peter_slack_mention_me",
+ "adam_mention_peter",
+ "mine_peter_commented",
+ "scout_in_channel",
+ "peter_i_commented",
+ "adam_pinned_by_me",
+ "peter_legacy_mention",
+ ],
+ ),
+ ]
+ )
+ def test_sources(self, _name: str, sources: list[str] | str, expected: list[str]) -> None:
+ for key, provenance in (
+ ("peter_plain", "posthog_desktop"),
+ ("mine_peter_commented", "posthog_mobile"),
+ ("adam_mention_peter", "posthog_web"),
+ ):
+ Task.objects.filter(id=self.tasks[key].id).update(client_provenance=provenance)
+ Task.objects.filter(id=self.tasks["peter_legacy_mention"].id).update(
+ origin_product=Task.OriginProduct.POSTHOG_AI
+ )
+
+ assert self._list(sources=sources) == self._ids(*expected)
+
@parameterized.expand(
[
("failed", ["peter_mention_me"]),
diff --git a/products/tasks/frontend/generated/api.schemas.ts b/products/tasks/frontend/generated/api.schemas.ts
index fd1fd44134c2..573bd0808af6 100644
--- a/products/tasks/frontend/generated/api.schemas.ts
+++ b/products/tasks/frontend/generated/api.schemas.ts
@@ -5430,6 +5430,10 @@ export type TasksListParams = {
* Case-insensitive substring search over task title and description. A numeric value also matches the task number. An empty value disables the filter.
*/
search?: string
+ /**
+ * Only tasks from any of these sources. Repeat the parameter for each source, or send one comma-joined value or a JSON array. 'posthog_desktop', 'posthog_mobile' and 'posthog_web' match user-created tasks by the client that created them, and a user-created task from no other known client counts as desktop. 'posthog_web' also matches PostHog AI tasks. Any other value matches the task's origin product.
+ */
+ sources?: TasksListSourcesItem[]
/**
* Filter by task run stage
* @minLength 1
@@ -5530,6 +5534,63 @@ export const TasksListPrState = {
Closed: 'closed',
} as const
+/**
+ * * `autoresearch` - autoresearch
+ * * `error_tracking` - error_tracking
+ * * `eval_clusters` - eval_clusters
+ * * `experiments` - experiments
+ * * `hogdesk` - hogdesk
+ * * `image_builder` - image_builder
+ * * `loop` - loop
+ * * `mcp_analytics` - mcp_analytics
+ * * `onboarding` - onboarding
+ * * `posthog_ai` - posthog_ai
+ * * `posthog_desktop` - posthog_desktop
+ * * `posthog_mobile` - posthog_mobile
+ * * `posthog_web` - posthog_web
+ * * `review_hog` - review_hog
+ * * `scout_suggestions` - scout_suggestions
+ * * `session_summaries` - session_summaries
+ * * `signal_report` - signal_report
+ * * `signals_chat` - signals_chat
+ * * `signals_scout` - signals_scout
+ * * `slack` - slack
+ * * `space_setup` - space_setup
+ * * `support_queue` - support_queue
+ * * `support_reply` - support_reply
+ * * `task_analysis` - task_analysis
+ * * `workflow` - workflow
+ */
+export type TasksListSourcesItem = (typeof TasksListSourcesItem)[keyof typeof TasksListSourcesItem]
+
+export const TasksListSourcesItem = {
+ Autoresearch: 'autoresearch',
+ ErrorTracking: 'error_tracking',
+ EvalClusters: 'eval_clusters',
+ Experiments: 'experiments',
+ Hogdesk: 'hogdesk',
+ ImageBuilder: 'image_builder',
+ Loop: 'loop',
+ McpAnalytics: 'mcp_analytics',
+ Onboarding: 'onboarding',
+ PosthogAi: 'posthog_ai',
+ PosthogDesktop: 'posthog_desktop',
+ PosthogMobile: 'posthog_mobile',
+ PosthogWeb: 'posthog_web',
+ ReviewHog: 'review_hog',
+ ScoutSuggestions: 'scout_suggestions',
+ SessionSummaries: 'session_summaries',
+ SignalReport: 'signal_report',
+ SignalsChat: 'signals_chat',
+ SignalsScout: 'signals_scout',
+ Slack: 'slack',
+ SpaceSetup: 'space_setup',
+ SupportQueue: 'support_queue',
+ SupportReply: 'support_reply',
+ TaskAnalysis: 'task_analysis',
+ Workflow: 'workflow',
+} as const
+
export type TasksListStatus = (typeof TasksListStatus)[keyof typeof TasksListStatus]
export const TasksListStatus = {
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index 02a12e64f53e..fe2f92086069 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -130577,6 +130577,10 @@ export namespace Schemas {
* Case-insensitive substring search over task title and description. A numeric value also matches the task number. An empty value disables the filter.
*/
search?: string;
+ /**
+ * Only tasks from any of these sources. Repeat the parameter for each source, or send one comma-joined value or a JSON array. 'posthog_desktop', 'posthog_mobile' and 'posthog_web' match user-created tasks by the client that created them, and a user-created task from no other known client counts as desktop. 'posthog_web' also matches PostHog AI tasks. Any other value matches the task's origin product.
+ */
+ sources?: TasksListSourcesItem[];
/**
* Filter by task run stage
* @minLength 1
@@ -130683,6 +130687,64 @@ export namespace Schemas {
Closed: 'closed',
} as const;
+ /**
+ * * `autoresearch` - autoresearch
+ * * `error_tracking` - error_tracking
+ * * `eval_clusters` - eval_clusters
+ * * `experiments` - experiments
+ * * `hogdesk` - hogdesk
+ * * `image_builder` - image_builder
+ * * `loop` - loop
+ * * `mcp_analytics` - mcp_analytics
+ * * `onboarding` - onboarding
+ * * `posthog_ai` - posthog_ai
+ * * `posthog_desktop` - posthog_desktop
+ * * `posthog_mobile` - posthog_mobile
+ * * `posthog_web` - posthog_web
+ * * `review_hog` - review_hog
+ * * `scout_suggestions` - scout_suggestions
+ * * `session_summaries` - session_summaries
+ * * `signal_report` - signal_report
+ * * `signals_chat` - signals_chat
+ * * `signals_scout` - signals_scout
+ * * `slack` - slack
+ * * `space_setup` - space_setup
+ * * `support_queue` - support_queue
+ * * `support_reply` - support_reply
+ * * `task_analysis` - task_analysis
+ * * `workflow` - workflow
+ */
+ export type TasksListSourcesItem = typeof TasksListSourcesItem[keyof typeof TasksListSourcesItem];
+
+
+ export const TasksListSourcesItem = {
+ Autoresearch: 'autoresearch',
+ ErrorTracking: 'error_tracking',
+ EvalClusters: 'eval_clusters',
+ Experiments: 'experiments',
+ Hogdesk: 'hogdesk',
+ ImageBuilder: 'image_builder',
+ Loop: 'loop',
+ McpAnalytics: 'mcp_analytics',
+ Onboarding: 'onboarding',
+ PosthogAi: 'posthog_ai',
+ PosthogDesktop: 'posthog_desktop',
+ PosthogMobile: 'posthog_mobile',
+ PosthogWeb: 'posthog_web',
+ ReviewHog: 'review_hog',
+ ScoutSuggestions: 'scout_suggestions',
+ SessionSummaries: 'session_summaries',
+ SignalReport: 'signal_report',
+ SignalsChat: 'signals_chat',
+ SignalsScout: 'signals_scout',
+ Slack: 'slack',
+ SpaceSetup: 'space_setup',
+ SupportQueue: 'support_queue',
+ SupportReply: 'support_reply',
+ TaskAnalysis: 'task_analysis',
+ Workflow: 'workflow',
+ } as const;
+
export type TasksListStatus = typeof TasksListStatus[keyof typeof TasksListStatus];
diff --git a/services/mcp/src/generated/tasks/api.ts b/services/mcp/src/generated/tasks/api.ts
index caa350b28a0b..0588c89439e2 100644
--- a/services/mcp/src/generated/tasks/api.ts
+++ b/services/mcp/src/generated/tasks/api.ts
@@ -261,6 +261,44 @@ export const TasksListQueryParams = () => zod.object({
.describe(
'Case-insensitive substring search over task title and description. A numeric value also matches the task number. An empty value disables the filter.'
),
+ sources: zod
+ .array(
+ zod
+ .enum([
+ 'autoresearch',
+ 'error_tracking',
+ 'eval_clusters',
+ 'experiments',
+ 'hogdesk',
+ 'image_builder',
+ 'loop',
+ 'mcp_analytics',
+ 'onboarding',
+ 'posthog_ai',
+ 'posthog_desktop',
+ 'posthog_mobile',
+ 'posthog_web',
+ 'review_hog',
+ 'scout_suggestions',
+ 'session_summaries',
+ 'signal_report',
+ 'signals_chat',
+ 'signals_scout',
+ 'slack',
+ 'space_setup',
+ 'support_queue',
+ 'support_reply',
+ 'task_analysis',
+ 'workflow',
+ ])
+ .describe(
+ '\* `autoresearch` - autoresearch\n\* `error_tracking` - error_tracking\n\* `eval_clusters` - eval_clusters\n\* `experiments` - experiments\n\* `hogdesk` - hogdesk\n\* `image_builder` - image_builder\n\* `loop` - loop\n\* `mcp_analytics` - mcp_analytics\n\* `onboarding` - onboarding\n\* `posthog_ai` - posthog_ai\n\* `posthog_desktop` - posthog_desktop\n\* `posthog_mobile` - posthog_mobile\n\* `posthog_web` - posthog_web\n\* `review_hog` - review_hog\n\* `scout_suggestions` - scout_suggestions\n\* `session_summaries` - session_summaries\n\* `signal_report` - signal_report\n\* `signals_chat` - signals_chat\n\* `signals_scout` - signals_scout\n\* `slack` - slack\n\* `space_setup` - space_setup\n\* `support_queue` - support_queue\n\* `support_reply` - support_reply\n\* `task_analysis` - task_analysis\n\* `workflow` - workflow'
+ )
+ )
+ .optional()
+ .describe(
+ "Only tasks from any of these sources. Repeat the parameter for each source, or send one comma-joined value or a JSON array. 'posthog_desktop', 'posthog_mobile' and 'posthog_web' match user-created tasks by the client that created them, and a user-created task from no other known client counts as desktop. 'posthog_web' also matches PostHog AI tasks. Any other value matches the task's origin product."
+ ),
stage: zod.string().min(1).optional().describe('Filter by task run stage'),
status: zod
.enum(['not_started', 'queued', 'in_progress', 'completed', 'failed', 'cancelled'])
diff --git a/services/mcp/src/tools/generated/tasks.ts b/services/mcp/src/tools/generated/tasks.ts
index fd6ba7f4819d..6df98b01405c 100644
--- a/services/mcp/src/tools/generated/tasks.ts
+++ b/services/mcp/src/tools/generated/tasks.ts
@@ -379,6 +379,7 @@ const tasksList = (): ToolBase<
pr_state: params.pr_state,
repository: params.repository,
search: params.search,
+ sources: params.sources,
stage: params.stage,
status: params.status,
},
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/tasks-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/tasks-list.json
index 19d436cd7789..cbe5250676f2 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/tasks-list.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/tasks-list.json
@@ -129,6 +129,41 @@
"description": "Case-insensitive substring search over task title and description. A numeric value also matches the task number. An empty value disables the filter.",
"type": "string"
},
+ "sources": {
+ "description": "Only tasks from any of these sources. Repeat the parameter for each source, or send one comma-joined value or a JSON array. 'posthog_desktop', 'posthog_mobile' and 'posthog_web' match user-created tasks by the client that created them, and a user-created task from no other known client counts as desktop. 'posthog_web' also matches PostHog AI tasks. Any other value matches the task's origin product.",
+ "items": {
+ "description": "* `autoresearch` - autoresearch\n* `error_tracking` - error_tracking\n* `eval_clusters` - eval_clusters\n* `experiments` - experiments\n* `hogdesk` - hogdesk\n* `image_builder` - image_builder\n* `loop` - loop\n* `mcp_analytics` - mcp_analytics\n* `onboarding` - onboarding\n* `posthog_ai` - posthog_ai\n* `posthog_desktop` - posthog_desktop\n* `posthog_mobile` - posthog_mobile\n* `posthog_web` - posthog_web\n* `review_hog` - review_hog\n* `scout_suggestions` - scout_suggestions\n* `session_summaries` - session_summaries\n* `signal_report` - signal_report\n* `signals_chat` - signals_chat\n* `signals_scout` - signals_scout\n* `slack` - slack\n* `space_setup` - space_setup\n* `support_queue` - support_queue\n* `support_reply` - support_reply\n* `task_analysis` - task_analysis\n* `workflow` - workflow",
+ "enum": [
+ "autoresearch",
+ "error_tracking",
+ "eval_clusters",
+ "experiments",
+ "hogdesk",
+ "image_builder",
+ "loop",
+ "mcp_analytics",
+ "onboarding",
+ "posthog_ai",
+ "posthog_desktop",
+ "posthog_mobile",
+ "posthog_web",
+ "review_hog",
+ "scout_suggestions",
+ "session_summaries",
+ "signal_report",
+ "signals_chat",
+ "signals_scout",
+ "slack",
+ "space_setup",
+ "support_queue",
+ "support_reply",
+ "task_analysis",
+ "workflow"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
"stage": {
"description": "Filter by task run stage",
"minLength": 1,