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): add a "My scouts" filter and keep scouts out of "For you" (#86258)

Andrew Maguire0bec5bb9e873
diff --git a/products/posthog_ai/frontend/logics/taskLogic.test.ts b/products/posthog_ai/frontend/logics/taskLogic.test.ts
index 025c9298ece7..f2fc44aa92c5 100644
--- a/products/posthog_ai/frontend/logics/taskLogic.test.ts
+++ b/products/posthog_ai/frontend/logics/taskLogic.test.ts
@@ -1,8 +1,11 @@
+import { MOCK_DEFAULT_USER } from 'lib/api.mock'
+
import { expectLogic } from 'kea-test-utils'
import { lemonToast } from '@posthog/lemon-ui'
-import { ApiError } from 'lib/api'
+import api, { ApiError } from 'lib/api'
+import { userLogic } from 'scenes/userLogic'
import { initKeaTests } from '~/test/init'
@@ -104,6 +107,51 @@ describe('taskLogic', () => {
})
})
+ describe('refreshing task lists after a mutation', () => {
+ afterEach(() => {
+ jest.restoreAllMocks()
+ })
+
+ // A mutation from the detail view reloads every mounted list. A bare `loadTasks()` defaults
+ // to `{}`, which drops the active filter — e.g. "For you"'s scout exclusion — and returns the
+ // whole visible set until the next filter/search change. The refresh must carry each list's
+ // current params.
+ it.each([
+ ['updateTask', () => logic.actions.updateTask({ data: { title: 'renamed' } })],
+ ['deleteTask', () => logic.actions.deleteTask()],
+ ])('%s reloads the list with its active filter, not the unfiltered default', async (_name, mutate) => {
+ userLogic.mount()
+ userLogic.actions.loadUserSuccess(MOCK_DEFAULT_USER)
+
+ const listSpy = jest
+ .spyOn(api.tasks, 'list')
+ .mockResolvedValue({ results: [], count: 0, next: null } as any)
+ jest.spyOn(api.tasks, 'update').mockResolvedValue(createMockTask('task-123'))
+ jest.spyOn(api.tasks, 'delete').mockResolvedValue(undefined)
+
+ const tasksLogicInstance = tasksLogic()
+ tasksLogicInstance.mount()
+ tasksLogicInstance.actions.setAssigneeFilter('my_scouts')
+ await expectLogic(tasksLogicInstance).toFinishAllListeners()
+ listSpy.mockClear()
+
+ logic = taskLogic({ taskId: 'task-123' })
+ logic.mount()
+
+ await expectLogic(tasksLogicInstance, () => {
+ mutate()
+ }).toDispatchActions(['loadTasks', 'loadTasksSuccess'])
+
+ expect(listSpy).toHaveBeenCalledWith(
+ expect.objectContaining({
+ created_by: MOCK_DEFAULT_USER.id,
+ origin_product: OriginProduct.SIGNALS_SCOUT,
+ })
+ )
+ tasksLogicInstance.unmount()
+ })
+ })
+
describe('runTaskSuccess', () => {
it('updates tasksLogic with task including new run', async () => {
const tasksLogicInstance = tasksLogic()
diff --git a/products/posthog_ai/frontend/logics/taskLogic.ts b/products/posthog_ai/frontend/logics/taskLogic.ts
index e503c99509fa..43b6d94350d4 100644
--- a/products/posthog_ai/frontend/logics/taskLogic.ts
+++ b/products/posthog_ai/frontend/logics/taskLogic.ts
@@ -134,13 +134,16 @@ export const taskLogic = kea<taskLogicType>([
},
deleteTask: async () => {
await api.tasks.delete(props.taskId)
- tasksLogic.findAllMounted().forEach((logic) => logic.actions.loadTasks())
+ // Reload each mounted list with its own active filter — a bare `loadTasks()`
+ // defaults to `{}`, which drops "For you"'s scout exclusion (and any other
+ // filter) and shows the whole visible set until the next filter/search change.
+ tasksLogic.findAllMounted().forEach((logic) => logic.actions.loadTasks(logic.values.taskListParams))
router.actions.push('/tasks')
return null
},
updateTask: async ({ data }: { data: TaskUpsertProps }) => {
const updatedTask = await api.tasks.update(props.taskId, data)
- tasksLogic.findAllMounted().forEach((logic) => logic.actions.loadTasks())
+ tasksLogic.findAllMounted().forEach((logic) => logic.actions.loadTasks(logic.values.taskListParams))
return updatedTask
},
},
diff --git a/products/posthog_ai/frontend/logics/tasksLogic.test.ts b/products/posthog_ai/frontend/logics/tasksLogic.test.ts
index d3378ca3f32f..bc6e67bcaeee 100644
--- a/products/posthog_ai/frontend/logics/tasksLogic.test.ts
+++ b/products/posthog_ai/frontend/logics/tasksLogic.test.ts
@@ -37,9 +37,18 @@ describe('tasksLogic', () => {
afterEach(resumeKeaLoadersErrors)
let logic: ReturnType<typeof tasksLogic.build>
+ let listRequestUrls: URL[]
beforeEach(() => {
- useMocks({ get: { '/api/projects/:team_id/tasks/': () => [200, { results: [], count: 0 }] } })
+ listRequestUrls = []
+ useMocks({
+ get: {
+ '/api/projects/:team_id/tasks/': ({ request }) => {
+ listRequestUrls.push(new URL(request.url))
+ return [200, { results: [], count: 0 }]
+ },
+ },
+ })
initKeaTests()
userLogic.mount()
userLogic.actions.loadUserSuccess(MOCK_DEFAULT_USER)
@@ -77,21 +86,23 @@ describe('tasksLogic', () => {
})
describe('taskListParams', () => {
- it('defaults to "for you", scoping the list to the current user', () => {
+ it('defaults to "for you"', () => {
expect(logic.values.assigneeFilter).toBe('for_you')
- expect(logic.values.taskListParams).toEqual({
- search: undefined,
- created_by: userLogic.values.user?.id,
- })
})
- it('scopes to the Signals Scout origin for team scouts', () => {
- logic.actions.setAssigneeFilter('team_scouts')
-
- expect(logic.values.taskListParams).toEqual({
- search: undefined,
- origin_product: OriginProduct.SIGNALS_SCOUT,
- })
+ // "For you" and "my scouts" both scope to the current user, so they have to split on origin
+ // as well as creator, otherwise the two filters return the same rows.
+ it.each([
+ [
+ 'for_you' as const,
+ { created_by: MOCK_DEFAULT_USER.id, exclude_origin_product: OriginProduct.SIGNALS_SCOUT },
+ ],
+ ['my_scouts' as const, { created_by: MOCK_DEFAULT_USER.id, origin_product: OriginProduct.SIGNALS_SCOUT }],
+ ['team_scouts' as const, { origin_product: OriginProduct.SIGNALS_SCOUT }],
+ ])('maps the %s filter to its query params', (assigneeFilter, expected) => {
+ logic.actions.setAssigneeFilter(assigneeFilter)
+
+ expect(logic.values.taskListParams).toEqual({ search: undefined, ...expected })
})
it('composes the search term with the active assignee filter', () => {
@@ -100,10 +111,25 @@ describe('tasksLogic', () => {
expect(logic.values.taskListParams).toEqual({
search: 'checkout bug',
created_by: userLogic.values.user?.id,
+ exclude_origin_product: OriginProduct.SIGNALS_SCOUT,
})
})
})
+ describe('loadTasks', () => {
+ // Regression coverage: `taskLogic` reloads every mounted list after an update or delete
+ // without knowing what each one shows. Defaulting those parameterless calls to `{}` swapped
+ // the active filter for the whole visible set, so "For you" silently filled with scout tasks.
+ it('reloads with the active filter when called with no params', async () => {
+ logic.actions.loadTasks()
+ await expectLogic(logic).toFinishAllListeners()
+
+ expect(listRequestUrls).toHaveLength(1)
+ expect(listRequestUrls[0].searchParams.get('exclude_origin_product')).toBe(OriginProduct.SIGNALS_SCOUT)
+ expect(listRequestUrls[0].searchParams.get('created_by')).toBe(String(MOCK_DEFAULT_USER.id))
+ })
+ })
+
describe('loadMoreTasks', () => {
// Regression coverage: `loadMoreTasks` reads `tasksNext` again after its `await`, so a
// `loadTasks` dispatched while a page is in flight (e.g. a filter change) must not have its
diff --git a/products/posthog_ai/frontend/logics/tasksLogic.ts b/products/posthog_ai/frontend/logics/tasksLogic.ts
index f5c99351b3be..947336284a33 100644
--- a/products/posthog_ai/frontend/logics/tasksLogic.ts
+++ b/products/posthog_ai/frontend/logics/tasksLogic.ts
@@ -171,7 +171,11 @@ export const tasksLogic = kea<tasksLogicType>([
{
// `breakpoint` cancels this invocation if a newer `loadTasks` action has been
// dispatched, so filter changes don't overwrite state with stale responses.
- loadTasks: async (params: TaskListParams = {}, breakpoint) => {
+ // A caller that passes nothing wants a plain refresh, not an unfiltered list: refresh
+ // sites like `taskLogic`'s update/delete reload every mounted list without knowing what
+ // it is showing, and `{}` there would swap the active filter for the whole visible set.
+ // The default is evaluated per call, so it picks up the filter active at refresh time.
+ loadTasks: async (params: TaskListParams = values.taskListParams, breakpoint) => {
const response = await api.tasks.list(params)
breakpoint()
actions.setTasksNext(response.next ?? null)
@@ -277,9 +281,13 @@ export const tasksLogic = kea<tasksLogicType>([
selectors({
// The "all team" filter is staff-only; expose it so the menu can conditionally show it.
isStaffUser: [(s) => [s.user], (user: null | import('~/types').UserType): boolean => !!user?.is_staff],
- // Combined list filters: search term + the assignee toggle. "For you" scopes to the current
- // user's own tasks; "team scouts" scopes to autonomous Signals Scout tasks; "all team" (staff
- // only) lists every task on the team, letting the server bypass the per-user visibility filter.
+ // Combined list filters: search term + the assignee toggle. A scout run is created by the user
+ // the scout executes as, so "for you" and "my scouts" are the two halves of that user's
+ // `created_by` rows: those runs are what clutters their list, so they are what the split has to
+ // move. Keying "my scouts" on scout ownership (`LLMSkillOwner`) instead would hide the runs from
+ // the person actually seeing them, since the executing identity and the owner can differ.
+ // "Team scouts" is every scout task on the team; "all team" (staff only) lists every task,
+ // letting the server bypass the per-user visibility filter.
taskListParams: [
(s) => [s.searchQuery, s.assigneeFilter, s.user],
(
@@ -296,7 +304,10 @@ export const tasksLogic = kea<tasksLogicType>([
if (assigneeFilter === 'team_scouts') {
return { ...base, origin_product: OriginProduct.SIGNALS_SCOUT }
}
- return { ...base, created_by: user?.id }
+ if (assigneeFilter === 'my_scouts') {
+ return { ...base, origin_product: OriginProduct.SIGNALS_SCOUT, created_by: user?.id }
+ }
+ return { ...base, created_by: user?.id, exclude_origin_product: OriginProduct.SIGNALS_SCOUT }
},
],
}),
diff --git a/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskAssigneeFilterMenu.tsx b/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskAssigneeFilterMenu.tsx
index 381bd3cbe249..326267871384 100644
--- a/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskAssigneeFilterMenu.tsx
+++ b/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskAssigneeFilterMenu.tsx
@@ -34,6 +34,7 @@ export function TaskAssigneeFilterMenu(): JSX.Element {
onValueChange={(value) => setAssigneeFilter(value as TaskAssigneeFilter)}
>
<DropdownMenuRadioItem value="for_you">For you</DropdownMenuRadioItem>
+ <DropdownMenuRadioItem value="my_scouts">My scouts</DropdownMenuRadioItem>
<DropdownMenuRadioItem value="team_scouts">Team scouts</DropdownMenuRadioItem>
{isStaffUser && (
<DropdownMenuRadioItem value="all_team">All team tasks (staff)</DropdownMenuRadioItem>
diff --git a/products/posthog_ai/frontend/scenes/TaskTracker/components/TasksListColumn.tsx b/products/posthog_ai/frontend/scenes/TaskTracker/components/TasksListColumn.tsx
index 43448ca52b31..a0e6591d42c3 100644
--- a/products/posthog_ai/frontend/scenes/TaskTracker/components/TasksListColumn.tsx
+++ b/products/posthog_ai/frontend/scenes/TaskTracker/components/TasksListColumn.tsx
@@ -63,7 +63,11 @@ export function TasksListColumn({ selectedTaskId, isMobile = false }: TasksListC
) : (
<div className="flex flex-col items-center justify-center text-center py-8 text-muted">
<p className="text-sm mb-0">
- {searchQuery || assigneeFilter !== 'for_you' ? 'No tasks match your filters' : 'No tasks yet'}
+ {searchQuery || assigneeFilter !== 'for_you'
+ ? 'No tasks match your filters'
+ : // "For you" leaves scout runs out, so someone whose only tasks are scout runs
+ // lands here. Point them at the filter that does show them.
+ 'No tasks yet. Scout runs are under "My scouts".'}
</p>
</div>
)
diff --git a/products/posthog_ai/frontend/types/taskTypes.ts b/products/posthog_ai/frontend/types/taskTypes.ts
index dab9e4288c8e..b1a3a5ab5251 100644
--- a/products/posthog_ai/frontend/types/taskTypes.ts
+++ b/products/posthog_ai/frontend/types/taskTypes.ts
@@ -31,10 +31,10 @@ export enum OriginProduct {
}
/**
- * TaskTracker list filter: the current user's own tasks, team scout tasks, or — staff only —
- * every task on the team.
+ * TaskTracker list filter: the current user's own non-scout tasks, their own scout tasks, every
+ * team scout task, or — staff only — every task on the team.
*/
-export type TaskAssigneeFilter = 'for_you' | 'team_scouts' | 'all_team'
+export type TaskAssigneeFilter = 'for_you' | 'my_scouts' | 'team_scouts' | 'all_team'
export enum TaskRunStatus {
NOT_STARTED = 'not_started',
@@ -118,6 +118,7 @@ export interface TaskListParams {
organization?: string
stage?: string
origin_product?: string
+ exclude_origin_product?: string
/** `all` includes internal tasks (shown-by-default flag, not an access gate); `true` narrows to only-internal tasks. */
internal?: 'true' | 'false' | 'all'
search?: string
diff --git a/products/tasks/backend/facade/api.py b/products/tasks/backend/facade/api.py
index 34428707f14a..a3dfe49b08a7 100644
--- a/products/tasks/backend/facade/api.py
+++ b/products/tasks/backend/facade/api.py
@@ -4750,6 +4750,10 @@ def _list_tasks_queryset(
if origin_product:
qs = qs.filter(origin_product=origin_product)
+ exclude_origin_product = filters.get("exclude_origin_product")
+ if exclude_origin_product:
+ qs = qs.exclude(origin_product=exclude_origin_product)
+
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 f915999ff118..388fdc29182e 100644
--- a/products/tasks/backend/presentation/serializers.py
+++ b/products/tasks/backend/presentation/serializers.py
@@ -1585,6 +1585,11 @@ class TaskListQuerySerializer(serializers.Serializer):
"""Query parameters for listing tasks"""
origin_product = serializers.CharField(required=False, help_text="Filter by origin product")
+ exclude_origin_product = serializers.ChoiceField(
+ required=False,
+ choices=tasks_facade.TaskOriginProduct.choices,
+ help_text="Exclude tasks with this origin product from the results",
+ )
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/tests/test_filter_matrix.py b/products/tasks/backend/tests/test_filter_matrix.py
index aeae1bce5cb0..50f9fa20cfda 100644
--- a/products/tasks/backend/tests/test_filter_matrix.py
+++ b/products/tasks/backend/tests/test_filter_matrix.py
@@ -207,6 +207,18 @@ class TestTaskListFilterMatrix(TestCase):
assert self._list(origin_product="signals_scout") == self._ids("scout_in_channel")
assert self._list(origin_product="slack") == self._ids("peter_slack_mention_me")
+ 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"})
+ assert response.status_code == http_status.HTTP_400_BAD_REQUEST
+
@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 ab9a5b938b8d..4b921a700e16 100644
--- a/products/tasks/frontend/generated/api.schemas.ts
+++ b/products/tasks/frontend/generated/api.schemas.ts
@@ -4341,6 +4341,31 @@ export type TasksListParams = {
* Filter by creator user ID
*/
created_by?: number
+ /**
+ * Exclude tasks with this origin product from the results
+ *
+ * * `onboarding` - Onboarding
+ * * `error_tracking` - Error Tracking
+ * * `eval_clusters` - Eval Clusters
+ * * `user_created` - User Created
+ * * `slack` - Slack
+ * * `support_queue` - Support Queue
+ * * `session_summaries` - Session Summaries
+ * * `posthog_ai` - PostHog AI
+ * * `experiments` - Experiments
+ * * `signal_report` - Signal Report
+ * * `signals_scout` - Signals Scout
+ * * `support_reply` - Support Reply
+ * * `hogdesk` - HogDesk
+ * * `review_hog` - ReviewHog
+ * * `image_builder` - Image Builder
+ * * `loop` - Loop
+ * * `mcp_analytics` - MCP Analytics
+ * * `signals_chat` - Signals Chat
+ * * `workflow` - Workflow
+ * @minLength 1
+ */
+ exclude_origin_product?: TasksListExcludeOriginProduct
/**
* Filter by the internal flag, which controls whether a task is shown by default, not whether it is accessible. Defaults to excluding internal tasks. Use 'all' to include both internal and user-facing tasks, or 'true' to list only internal tasks. All values are available to any team member; access stays governed by task visibility.
*
@@ -4442,6 +4467,31 @@ export const TasksListCiStatus = {
None: 'none',
} as const
+export type TasksListExcludeOriginProduct =
+ (typeof TasksListExcludeOriginProduct)[keyof typeof TasksListExcludeOriginProduct]
+
+export const TasksListExcludeOriginProduct = {
+ Onboarding: 'onboarding',
+ ErrorTracking: 'error_tracking',
+ EvalClusters: 'eval_clusters',
+ UserCreated: 'user_created',
+ Slack: 'slack',
+ SupportQueue: 'support_queue',
+ SessionSummaries: 'session_summaries',
+ PosthogAi: 'posthog_ai',
+ Experiments: 'experiments',
+ SignalReport: 'signal_report',
+ SignalsScout: 'signals_scout',
+ SupportReply: 'support_reply',
+ Hogdesk: 'hogdesk',
+ ReviewHog: 'review_hog',
+ ImageBuilder: 'image_builder',
+ Loop: 'loop',
+ McpAnalytics: 'mcp_analytics',
+ SignalsChat: 'signals_chat',
+ Workflow: 'workflow',
+} as const
+
export type TasksListInternal = (typeof TasksListInternal)[keyof typeof TasksListInternal]
export const TasksListInternal = {
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index 95548b96a378..ec89d112d5ee 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -93244,6 +93244,31 @@ export namespace Schemas {
* Filter by creator user ID
*/
created_by?: number;
+ /**
+ * Exclude tasks with this origin product from the results
+ *
+ * * `onboarding` - Onboarding
+ * * `error_tracking` - Error Tracking
+ * * `eval_clusters` - Eval Clusters
+ * * `user_created` - User Created
+ * * `slack` - Slack
+ * * `support_queue` - Support Queue
+ * * `session_summaries` - Session Summaries
+ * * `posthog_ai` - PostHog AI
+ * * `experiments` - Experiments
+ * * `signal_report` - Signal Report
+ * * `signals_scout` - Signals Scout
+ * * `support_reply` - Support Reply
+ * * `hogdesk` - HogDesk
+ * * `review_hog` - ReviewHog
+ * * `image_builder` - Image Builder
+ * * `loop` - Loop
+ * * `mcp_analytics` - MCP Analytics
+ * * `signals_chat` - Signals Chat
+ * * `workflow` - Workflow
+ * @minLength 1
+ */
+ exclude_origin_product?: TasksListExcludeOriginProduct;
/**
* Filter by the internal flag, which controls whether a task is shown by default, not whether it is accessible. Defaults to excluding internal tasks. Use 'all' to include both internal and user-facing tasks, or 'true' to list only internal tasks. All values are available to any team member; access stays governed by task visibility.
*
@@ -93347,6 +93372,31 @@ export namespace Schemas {
None: 'none',
} as const;
+ export type TasksListExcludeOriginProduct = typeof TasksListExcludeOriginProduct[keyof typeof TasksListExcludeOriginProduct];
+
+
+ export const TasksListExcludeOriginProduct = {
+ Onboarding: 'onboarding',
+ ErrorTracking: 'error_tracking',
+ EvalClusters: 'eval_clusters',
+ UserCreated: 'user_created',
+ Slack: 'slack',
+ SupportQueue: 'support_queue',
+ SessionSummaries: 'session_summaries',
+ PosthogAi: 'posthog_ai',
+ Experiments: 'experiments',
+ SignalReport: 'signal_report',
+ SignalsScout: 'signals_scout',
+ SupportReply: 'support_reply',
+ Hogdesk: 'hogdesk',
+ ReviewHog: 'review_hog',
+ ImageBuilder: 'image_builder',
+ Loop: 'loop',
+ McpAnalytics: 'mcp_analytics',
+ SignalsChat: 'signals_chat',
+ Workflow: 'workflow',
+ } as const;
+
export type TasksListInternal = typeof TasksListInternal[keyof typeof TasksListInternal];
diff --git a/services/mcp/src/generated/tasks/api.ts b/services/mcp/src/generated/tasks/api.ts
index 0266f238d243..1819a43b9cb1 100644
--- a/services/mcp/src/generated/tasks/api.ts
+++ b/services/mcp/src/generated/tasks/api.ts
@@ -888,6 +888,32 @@ export const TasksListQueryParams = /* @__PURE__ */ zod.object({
.optional()
.describe('Filter to tasks carrying a thread comment written by this user ID.'),
created_by: zod.number().optional().describe('Filter by creator user ID'),
+ exclude_origin_product: zod
+ .enum([
+ 'onboarding',
+ 'error_tracking',
+ 'eval_clusters',
+ 'user_created',
+ 'slack',
+ 'support_queue',
+ 'session_summaries',
+ 'posthog_ai',
+ 'experiments',
+ 'signal_report',
+ 'signals_scout',
+ 'support_reply',
+ 'hogdesk',
+ 'review_hog',
+ 'image_builder',
+ 'loop',
+ 'mcp_analytics',
+ 'signals_chat',
+ 'workflow',
+ ])
+ .optional()
+ .describe(
+ 'Exclude tasks with this origin product from the results\n\n\* `onboarding` - Onboarding\n\* `error_tracking` - Error Tracking\n\* `eval_clusters` - Eval Clusters\n\* `user_created` - User Created\n\* `slack` - Slack\n\* `support_queue` - Support Queue\n\* `session_summaries` - Session Summaries\n\* `posthog_ai` - PostHog AI\n\* `experiments` - Experiments\n\* `signal_report` - Signal Report\n\* `signals_scout` - Signals Scout\n\* `support_reply` - Support Reply\n\* `hogdesk` - HogDesk\n\* `review_hog` - ReviewHog\n\* `image_builder` - Image Builder\n\* `loop` - Loop\n\* `mcp_analytics` - MCP Analytics\n\* `signals_chat` - Signals Chat\n\* `workflow` - Workflow'
+ ),
internal: zod
.enum(['true', 'false', 'all'])
.optional()
diff --git a/services/mcp/src/tools/generated/tasks.ts b/services/mcp/src/tools/generated/tasks.ts
index 9b8a62fe0f49..fc7a44c91355 100644
--- a/services/mcp/src/tools/generated/tasks.ts
+++ b/services/mcp/src/tools/generated/tasks.ts
@@ -530,6 +530,7 @@ const tasksList = (): ToolBase<typeof TasksListSchema, WithPostHogUrl<Schemas.Pa
ci_status: params.ci_status,
commented_by: params.commented_by,
created_by: params.created_by,
+ exclude_origin_product: params.exclude_origin_product,
internal: params.internal,
limit: params.limit,
mentions: params.mentions,
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 b641f02d39fb..76c8ce179347 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/tasks-list.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/tasks-list.json
@@ -28,6 +28,31 @@
"description": "Filter by creator user ID",
"type": "number"
},
+ "exclude_origin_product": {
+ "description": "Exclude tasks with this origin product from the results\n\n* `onboarding` - Onboarding\n* `error_tracking` - Error Tracking\n* `eval_clusters` - Eval Clusters\n* `user_created` - User Created\n* `slack` - Slack\n* `support_queue` - Support Queue\n* `session_summaries` - Session Summaries\n* `posthog_ai` - PostHog AI\n* `experiments` - Experiments\n* `signal_report` - Signal Report\n* `signals_scout` - Signals Scout\n* `support_reply` - Support Reply\n* `hogdesk` - HogDesk\n* `review_hog` - ReviewHog\n* `image_builder` - Image Builder\n* `loop` - Loop\n* `mcp_analytics` - MCP Analytics\n* `signals_chat` - Signals Chat\n* `workflow` - Workflow",
+ "enum": [
+ "onboarding",
+ "error_tracking",
+ "eval_clusters",
+ "user_created",
+ "slack",
+ "support_queue",
+ "session_summaries",
+ "posthog_ai",
+ "experiments",
+ "signal_report",
+ "signals_scout",
+ "support_reply",
+ "hogdesk",
+ "review_hog",
+ "image_builder",
+ "loop",
+ "mcp_analytics",
+ "signals_chat",
+ "workflow"
+ ],
+ "type": "string"
+ },
"internal": {
"description": "Filter by the internal flag, which controls whether a task is shown by default, not whether it is accessible. Defaults to excluding internal tasks. Use 'all' to include both internal and user-facing tasks, or 'true' to list only internal tasks. All values are available to any team member; access stays governed by task visibility.\n\n* `true` - true\n* `false` - false\n* `all` - all",
"enum": ["true", "false", "all"],