: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
feat(tasks): add queue workflow and admin links to slack thread debug (#92204)
Vojta Bartoš4d6775016701
diff --git a/posthog/temporal/ai/slack_app/slack_app_mention.py b/posthog/temporal/ai/slack_app/slack_app_mention.pyindex 2307a5e3523c..68469df55be8 100644--- a/posthog/temporal/ai/slack_app/slack_app_mention.py+++ b/posthog/temporal/ai/slack_app/slack_app_mention.py@@ -20,6 +20,8 @@ from posthog.temporal.ai.slack_app.types import ()from posthog.temporal.common.base import PostHogWorkflow+from products.slack_app.backend.helpers import slack_app_mention_queue_workflow_id+SLACK_APP_MENTION_IDLE_TIMEOUT_SECONDS = 30# Dedup keys carried across continue_as_new. Bounded so the carry-over payload# stays small; old keys only matter for Slack retries, which arrive within@@ -61,7 +63,7 @@ def derive_slack_app_mention_workflow_id(inputs: PostHogCodeSlackMentionWorkflowanchor = event.get("thread_ts") or event.get("ts")if not channel or not anchor:return None- return f"slack-app-mention-{inputs.slack_team_id}:{channel}:{anchor}"+ return slack_app_mention_queue_workflow_id(inputs.slack_team_id, channel, anchor)@workflow.defn(name="slack-app-mention")diff --git a/products/slack_app/backend/helpers.py b/products/slack_app/backend/helpers.pyindex 054c9ee72eb5..b0f5aea48fcf 100644--- a/products/slack_app/backend/helpers.py+++ b/products/slack_app/backend/helpers.py@@ -1,6 +1,16 @@from django.conf import settings+def slack_app_mention_queue_workflow_id(slack_workspace_id: str, channel: str, thread_ts: str) -> str:+ """Conversation-scoped id of the queue workflow that serializes a thread's mentions.++ Lives here, away from the workflow module, so a caller that only needs the id — the+ dispatcher, or the debug endpoint reconstructing it from a stored thread mapping —+ does not import the Temporal workflow tree to build a string.+ """+ return f"slack-app-mention-{slack_workspace_id}:{channel}:{thread_ts}"++def local_dev_slack_email() -> str | None:"""Return the seeded fixture email to force during local dev, or None.diff --git a/products/tasks/backend/facade/api.py b/products/tasks/backend/facade/api.pyindex 498a32323936..790e364a10d3 100644--- a/products/tasks/backend/facade/api.py+++ b/products/tasks/backend/facade/api.py@@ -40,6 +40,7 @@ from django.db.models import (Func,IntegerField,Min,+ Model,OuterRef,Q,QuerySet,@@ -7236,6 +7237,26 @@ def _temporal_workflow_url(workflow_id: str | None) -> str | None:return f"{base.rstrip('/')}/namespaces/{namespace}/workflows/{workflow_id}"+def _slack_queue_workflow_id(slack_workspace_id: str | None, channel: str, thread_ts: str) -> str | None:+ """The per-conversation queue workflow (`slack-app-mention-…`) that fronts every+ per-message mention workflow. A message can stall or be deduped there before any+ run exists, so the debug view links it at the thread level."""+ from products.slack_app.backend.helpers import slack_app_mention_queue_workflow_id # noqa: PLC0415++ if not slack_workspace_id:+ return None+ return slack_app_mention_queue_workflow_id(slack_workspace_id, channel, thread_ts)+++def _admin_change_url(instance: Model, *, build_url) -> str:+ """Django admin change-page URL for a model row, built from the stable admin URL+ layout instead of `reverse` — the admin URLconf is only mounted when+ ``ADMIN_PORTAL_ENABLED``, and this endpoint only serves PostHog Cloud US, where the+ portal is always on."""+ meta = instance._meta+ return build_url(f"/admin/{meta.app_label}/{meta.model_name}/{instance.pk}/change/")++def _slack_repo_research_dto(team_id: int, state: dict, repo_research_runs_by_id: dict, *, build_task_view_url) -> contracts.SlackThreadContextRepoResearchDTO | None:@@ -7299,14 +7320,27 @@ def resolve_slack_thread_context(.first())if mapping is None:+ # No run may exist because the message is still stuck (or was deduped) in the+ # per-conversation queue workflow, so derive its handle anyway. Only possible+ # when the team maps to a single Slack workspace — with several, the guess+ # could point at another workspace's workflow.+ workspace_ids = list(+ Integration.objects.filter(team_id=team_id, kind="slack")+ .values_list("integration_id", flat=True)+ .distinct()[:2]+ )+ workspace_id = workspace_ids[0] if len(workspace_ids) == 1 else None+ queue_workflow_id = _slack_queue_workflow_id(workspace_id, channel, thread_ts)return contracts.SlackThreadContextResult(outcome="no_mapping",no_mapping_thread=contracts.SlackThreadContextThreadDTO(url=url,channel=channel,thread_ts=thread_ts,- slack_workspace_id=None,+ slack_workspace_id=workspace_id,mentioning_slack_user_id=None,+ queue_workflow_id=queue_workflow_id,+ queue_workflow_url=_temporal_workflow_url(queue_workflow_id),),)@@ -7351,9 +7385,11 @@ def resolve_slack_thread_context(repo_research=_slack_repo_research_dto(task.team_id, state, repo_research_runs_by_id, build_task_view_url=build_url),+ admin_url=_admin_change_url(run, build_url=build_url),))+ queue_workflow_id = _slack_queue_workflow_id(mapping.slack_workspace_id, channel, thread_ts)context = contracts.SlackThreadContextDTO(thread=contracts.SlackThreadContextThreadDTO(url=url,@@ -7361,6 +7397,9 @@ def resolve_slack_thread_context(thread_ts=thread_ts,slack_workspace_id=mapping.slack_workspace_id,mentioning_slack_user_id=mapping.mentioning_slack_user_id,+ queue_workflow_id=queue_workflow_id,+ queue_workflow_url=_temporal_workflow_url(queue_workflow_id),+ mapping_admin_url=_admin_change_url(mapping, build_url=build_url),),task=contracts.SlackThreadContextTaskDTO(id=str(task.id),@@ -7370,6 +7409,7 @@ def resolve_slack_thread_context(origin_product=task.origin_product,created_at=task.created_at,url=task_url,+ admin_url=_admin_change_url(task, build_url=build_url),),runs=run_dtos,)diff --git a/products/tasks/backend/facade/contracts.py b/products/tasks/backend/facade/contracts.pyindex 042eea0c2b6d..cb34462d8bf2 100644--- a/products/tasks/backend/facade/contracts.py+++ b/products/tasks/backend/facade/contracts.py@@ -492,6 +492,7 @@ class SlackThreadContextRunDTO:mention_workflow_url: str | Nonetask_view_url: strlog_url: str | None+ admin_url: strrepo_research: SlackThreadContextRepoResearchDTO | None = None@@ -504,6 +505,10 @@ class SlackThreadContextThreadDTO:thread_ts: strslack_workspace_id: str | Nonementioning_slack_user_id: str | None+ queue_workflow_id: str | None+ queue_workflow_url: str | None+ # Null on the no-mapping path, where there is no row to link.+ mapping_admin_url: str | None = None@dataclass(frozen=True)@@ -517,6 +522,7 @@ class SlackThreadContextTaskDTO:origin_product: strcreated_at: datetime | Noneurl: str+ admin_url: str@dataclass(frozen=True)diff --git a/products/tasks/backend/presentation/serializers.py b/products/tasks/backend/presentation/serializers.pyindex 8d4d0e330234..401175cac569 100644--- a/products/tasks/backend/presentation/serializers.py+++ b/products/tasks/backend/presentation/serializers.py@@ -4125,6 +4125,22 @@ class SlackThreadContextThreadSerializer(serializers.Serializer):allow_null=True,help_text="The Slack user who triggered the task. Null when no mapping exists yet.",)+ queue_workflow_id = serializers.CharField(+ allow_null=True,+ help_text=(+ "Temporal workflow id of the per-conversation mention queue "+ "(`slack-app-mention-<workspace>:<channel>:<thread_ts>`) that serializes the thread's "+ "messages before any run exists. Null when the workspace id cannot be resolved."+ ),+ )+ queue_workflow_url = serializers.CharField(+ allow_null=True,+ help_text="Full Temporal Web UI URL for the mention queue workflow; null when `TEMPORAL_UI_HOST` is unset.",+ )+ mapping_admin_url = serializers.CharField(+ allow_null=True,+ help_text="Absolute URL to the SlackThreadTaskMapping row in Django admin. Null when no mapping exists.",+ )class SlackThreadContextTaskSerializer(serializers.Serializer):@@ -4140,6 +4156,7 @@ class SlackThreadContextTaskSerializer(serializers.Serializer):origin_product = serializers.CharField(help_text="`Task.OriginProduct` (`slack` for slack-originated tasks).")created_at = serializers.DateTimeField(help_text="When the task was created (server-side timestamp).")url = serializers.CharField(help_text="Absolute URL to the task detail page in the PostHog app.")+ admin_url = serializers.CharField(help_text="Absolute URL to the Task row in Django admin.")class SlackThreadContextRepoResearchSerializer(serializers.Serializer):@@ -4232,6 +4249,9 @@ class SlackThreadContextRunSerializer(serializers.Serializer):allow_null=True,help_text="The discovery-agent sandbox that picked this run's repo, when the mention was ambiguous.",)+ admin_url = serializers.CharField(+ help_text="Absolute URL to the TaskRun row in Django admin (includes a log download action).",+ )class SlackThreadContextResponseSerializer(serializers.Serializer):diff --git a/products/tasks/backend/presentation/views/api.py b/products/tasks/backend/presentation/views/api.pyindex 85601b55faf5..b41d1bab7702 100644--- a/products/tasks/backend/presentation/views/api.py+++ b/products/tasks/backend/presentation/views/api.py@@ -113,6 +113,7 @@ from products.tasks.backend.presentation.serializers import (SandboxEnvironmentWriteSerializer,SlackThreadContextQuerySerializer,SlackThreadContextResponseSerializer,+ SlackThreadContextThreadSerializer,StreamReadTokenResponseSerializer,TaskArtifactsResponseSerializer,TaskCommentDetailQuerySerializer,@@ -941,16 +942,7 @@ class TaskViewSet(TeamAndOrgViewSetMixin, viewsets.GenericViewSet):)if result.outcome == "no_mapping" and (thread := result.no_mapping_thread) is not None:return Response(- {- "detail": "no_mapping",- "thread": {- "url": thread.url,- "channel": thread.channel,- "thread_ts": thread.thread_ts,- "slack_workspace_id": thread.slack_workspace_id,- "mentioning_slack_user_id": thread.mentioning_slack_user_id,- },- },+ {"detail": "no_mapping", "thread": SlackThreadContextThreadSerializer(thread).data},status=status.HTTP_404_NOT_FOUND,)serializer = SlackThreadContextResponseSerializer(result.context)diff --git a/products/tasks/backend/tests/test_slack_thread_context.py b/products/tasks/backend/tests/test_slack_thread_context.pyindex ee73bc024cce..d938dbd96b98 100644--- a/products/tasks/backend/tests/test_slack_thread_context.py+++ b/products/tasks/backend/tests/test_slack_thread_context.py@@ -6,6 +6,7 @@ from unittest.mock import patchfrom django.conf import settingsfrom django.test import TestCase, override_settings+from parameterized import parameterizedfrom rest_framework import statusfrom rest_framework.test import APIClient@@ -116,13 +117,26 @@ class TestSlackThreadContextEndpoint(_SlackThreadContextBase):response = self.client.get(self._url(None))assert response.status_code == status.HTTP_400_BAD_REQUEST- def test_no_mapping_returns_404(self):+ @parameterized.expand(+ [+ ("no_workspace", [], None),+ ("single_workspace", ["T_SLACK"], "slack-app-mention-T_SLACK:C0ACRAMJUAG:1779956938.619299"),+ ("ambiguous_workspaces", ["T_SLACK", "T_OTHER"], None),+ ]+ )+ def test_no_mapping_returns_404(self, _name, workspace_ids, expected_queue_workflow_id):+ for workspace_id in workspace_ids:+ Integration.objects.create(team=self.team, kind="slack", integration_id=workspace_id, config={})response = self.client.get(self._url("https://posthog.slack.com/archives/C0ACRAMJUAG/p1779956938619299"))assert response.status_code == status.HTTP_404_NOT_FOUNDbody = response.json()assert body["detail"] == "no_mapping"assert body["thread"]["channel"] == "C0ACRAMJUAG"assert body["thread"]["thread_ts"] == "1779956938.619299"+ # A mention can be stuck (or deduped) in the conversation queue before any+ # run exists — the 404 must still hand back the queue workflow when the+ # workspace is unambiguous.+ assert body["thread"]["queue_workflow_id"] == expected_queue_workflow_iddef test_soft_deleted_task_has_no_slack_thread_context(self):task, _run, _mapping = self._create_fixture()@@ -145,6 +159,10 @@ class TestSlackThreadContextEndpoint(_SlackThreadContextBase):assert body["thread"]["thread_ts"] == "1779956938.619299"assert body["thread"]["slack_workspace_id"] == "T_SLACK"assert body["thread"]["mentioning_slack_user_id"] == "U_ANDY"+ assert body["thread"]["queue_workflow_id"] == "slack-app-mention-T_SLACK:C0ACRAMJUAG:1779956938.619299"+ assert body["thread"]["mapping_admin_url"].endswith(+ f"/admin/slack_app/slackthreadtaskmapping/{mapping.id}/change/"+ )assert body["task"]["id"] == str(task.id)assert body["task"]["team_id"] == self.team.id@@ -154,6 +172,7 @@ class TestSlackThreadContextEndpoint(_SlackThreadContextBase):# Links carry `?ph_debug=true` so reviewers don't lose the cross-creator# bypass when they click through to the regular task UI.assert body["task"]["url"].endswith(f"/project/{self.team.id}/tasks/{task.id}?ph_debug=true")+ assert body["task"]["admin_url"].endswith(f"/admin/tasks/task/{task.id}/change/")assert len(body["runs"]) == 1run_payload = body["runs"][0]@@ -166,6 +185,7 @@ class TestSlackThreadContextEndpoint(_SlackThreadContextBase):f"/project/{self.team.id}/tasks/{task.id}?runId={run.id}&ph_debug=true")assert run_payload["log_url"] == "https://s3.example/presigned"+ assert run_payload["admin_url"].endswith(f"/admin/tasks/taskrun/{run.id}/change/")def test_log_presign_failure_returns_200_with_null_log_url(self):# Presign failures must degrade to a null log_url, not 500.@@ -237,6 +257,10 @@ class TestSlackThreadContextEndpoint(_SlackThreadContextBase):assert run_payload["mention_workflow_url"] == ("https://temporal.example.com/namespaces/prod/workflows/posthog-code-mention-T_SLACK:Ev01")+ assert body["thread"]["queue_workflow_url"] == (+ "https://temporal.example.com/namespaces/prod/workflows/"+ "slack-app-mention-T_SLACK:C0ACRAMJUAG:1779956938.619299"+ )def test_mention_workflow_id_null_for_old_runs(self):self._create_fixture(slack_mention_workflow_id=None)diff --git a/products/tasks/frontend/SlackTaskContextScene.tsx b/products/tasks/frontend/SlackTaskContextScene.tsxindex 369f6c7a51c5..74e31555e23c 100644--- a/products/tasks/frontend/SlackTaskContextScene.tsx+++ b/products/tasks/frontend/SlackTaskContextScene.tsx@@ -10,7 +10,7 @@ import { SceneContent } from '~/layout/scenes/components/SceneContent'import { SceneTitleSection } from '~/layout/scenes/components/SceneTitleSection'import { SlackThreadContextRepoResearchApi, SlackThreadContextRunApi } from './generated/api.schemas'-import { slackTaskContextSceneLogic } from './logics/slackTaskContextSceneLogic'+import { SlackTaskContextSubmissionError, slackTaskContextSceneLogic } from './logics/slackTaskContextSceneLogic'export const scene: SceneExport = {component: SlackTaskContextScene,@@ -66,11 +66,7 @@ export function SlackTaskContextScene(): JSX.Element {{submissionError ? (<LemonBanner type="error">- {submissionError.status === 403- ? 'This endpoint is restricted to PostHog-internal debugging (team 2).'- : submissionError.status === 404- ? 'No Slack → task mapping found for that thread.'- : submissionError.detail || 'Request failed.'}+ <SubmissionErrorContent error={submissionError} /></LemonBanner>) : null}@@ -85,6 +81,26 @@ export function SlackTaskContextScene(): JSX.Element {)}+function SubmissionErrorContent({ error }: { error: SlackTaskContextSubmissionError }): JSX.Element {+ if (error.status === 403) {+ return <>This endpoint is restricted to PostHog-internal debugging (team 2).</>+ }+ if (error.status === 404) {+ return (+ <div className="space-y-1">+ <div>No Slack → task mapping found for that thread.</div>+ {error.queueWorkflowId ? (+ <div className="text-sm font-normal">+ The message may still be queued (or was dropped) before a task was created. Check the mention+ queue workflow: <WorkflowLink id={error.queueWorkflowId} url={error.queueWorkflowUrl ?? null} />+ </div>+ ) : null}+ </div>+ )+ }+ return <>{error.detail || 'Request failed.'}</>+}+function SlackTaskContextResult({result,}: {@@ -107,6 +123,21 @@ function SlackTaskContextResult({{thread.url}</Link>,],+ [+ 'Mention queue workflow',+ thread.queue_workflow_id ? (+ <WorkflowLink+ key="queue-wf"+ id={thread.queue_workflow_id}+ url={thread.queue_workflow_url}+ />+ ) : (+ <span key="empty" className="text-muted">+ Not derivable (mapping has no workspace id).+ </span>+ ),+ ],+ ['Django admin', <AdminLink key="mapping-admin" url={thread.mapping_admin_url} />],]}/></section>@@ -129,6 +160,7 @@ function SlackTaskContextResult({{task.url}</Link>,],+ ['Django admin', <AdminLink key="task-admin" url={task.admin_url} />],]}/></section>@@ -172,6 +204,7 @@ function SlackTaskContextRunCard({ run, index }: { run: SlackThreadContextRunApi{run.task_view_url}</Link>,],+ ['Django admin', <AdminLink key="run-admin" url={run.admin_url} />],['Task-processing workflow',<WorkflowLink@@ -311,6 +344,17 @@ function RepoResearchBlock({ research }: { research: SlackThreadContextRepoResea)}+function AdminLink({ url }: { url: string | null | undefined }): JSX.Element {+ if (!url) {+ return <span className="text-muted">—</span>+ }+ return (+ <Link to={url} target="_blank">+ {url}+ </Link>+ )+}+function WorkflowLink({ id, url }: { id: string; url: string | null }): JSX.Element {if (url) {return (diff --git a/products/tasks/frontend/generated/api.schemas.ts b/products/tasks/frontend/generated/api.schemas.tsindex 8aa06525eebf..7f78a6b3edee 100644--- a/products/tasks/frontend/generated/api.schemas.ts+++ b/products/tasks/frontend/generated/api.schemas.ts@@ -4473,6 +4473,21 @@ export interface SlackThreadContextThreadApi {* @nullable*/mentioning_slack_user_id: string | null+ /**+ * Temporal workflow id of the per-conversation mention queue (`slack-app-mention-<workspace>:<channel>:<thread_ts>`) that serializes the thread's messages before any run exists. Null when the workspace id cannot be resolved.+ * @nullable+ */+ queue_workflow_id: string | null+ /**+ * Full Temporal Web UI URL for the mention queue workflow; null when `TEMPORAL_UI_HOST` is unset.+ * @nullable+ */+ queue_workflow_url: string | null+ /**+ * Absolute URL to the SlackThreadTaskMapping row in Django admin. Null when no mapping exists.+ * @nullable+ */+ mapping_admin_url: string | null}/**@@ -4496,6 +4511,8 @@ export interface SlackThreadContextTaskApi {created_at: string/** Absolute URL to the task detail page in the PostHog app. */url: string+ /** Absolute URL to the Task row in Django admin. */+ admin_url: string}/**@@ -4592,6 +4609,8 @@ export interface SlackThreadContextRunApi {log_url: string | null/** The discovery-agent sandbox that picked this run's repo, when the mention was ambiguous. */repo_research: SlackThreadContextRepoResearchApi | null+ /** Absolute URL to the TaskRun row in Django admin (includes a log download action). */+ admin_url: string}/**diff --git a/products/tasks/frontend/logics/slackTaskContextSceneLogic.test.ts b/products/tasks/frontend/logics/slackTaskContextSceneLogic.test.tsindex 56100baf64b4..6d53b08159d2 100644--- a/products/tasks/frontend/logics/slackTaskContextSceneLogic.test.ts+++ b/products/tasks/frontend/logics/slackTaskContextSceneLogic.test.ts@@ -19,6 +19,9 @@ const mockResponse: SlackThreadContextResponseApi = {thread_ts: '1779956938.619299',slack_workspace_id: 'T_SLACK',mentioning_slack_user_id: 'U_ANDY',+ queue_workflow_id: 'slack-app-mention-T_SLACK:C0:1779956938.619299',+ queue_workflow_url: null,+ mapping_admin_url: 'http://testserver/admin/slack_app/slackthreadtaskmapping/mapping-1/change/',},task: {id: 'task-1',@@ -28,6 +31,7 @@ const mockResponse: SlackThreadContextResponseApi = {origin_product: 'slack',created_at: '2026-05-28T08:30:00Z',url: 'http://testserver/project/2/tasks/task-1',+ admin_url: 'http://testserver/admin/tasks/task/task-1/change/',},runs: [],}@@ -76,19 +80,35 @@ describe('slackTaskContextSceneLogic', () => {await logic.asyncActions.loadResult()expect(logic.values.result).toBeNull()- expect(logic.values.submissionError).toEqual({ status: 403, detail: 'Forbidden' })+ expect(logic.values.submissionError).toEqual({+ status: 403,+ detail: 'Forbidden',+ queueWorkflowId: null,+ queueWorkflowUrl: null,+ })})- it('surfaces a 404 error from the backend', async () => {+ it('surfaces a 404 error with the mention queue workflow handle', async () => {;(generatedApi.tasksSlackThreadContextRetrieve as jest.Mock).mockRejectedValueOnce({status: 404,- data: { detail: 'no_mapping' },+ data: {+ detail: 'no_mapping',+ thread: {+ queue_workflow_id: 'slack-app-mention-T_SLACK:C0:1779956938.619299',+ queue_workflow_url: 'https://temporal.example/wf',+ },+ },})logic.actions.setUrl('https://posthog.slack.com/archives/C0/p1779956938619299')await logic.asyncActions.loadResult()- expect(logic.values.submissionError).toEqual({ status: 404, detail: 'no_mapping' })+ expect(logic.values.submissionError).toEqual({+ status: 404,+ detail: 'no_mapping',+ queueWorkflowId: 'slack-app-mention-T_SLACK:C0:1779956938.619299',+ queueWorkflowUrl: 'https://temporal.example/wf',+ })})it('clears state on clearResult', async () => {diff --git a/products/tasks/frontend/logics/slackTaskContextSceneLogic.ts b/products/tasks/frontend/logics/slackTaskContextSceneLogic.tsindex 34313726b714..f4984214a44d 100644--- a/products/tasks/frontend/logics/slackTaskContextSceneLogic.ts+++ b/products/tasks/frontend/logics/slackTaskContextSceneLogic.ts@@ -9,6 +9,8 @@ import { SlackThreadContextResponseApi } from 'products/tasks/frontend/generatedexport type SlackTaskContextSubmissionError = {status: number | nulldetail: string+ queueWorkflowId?: string | null+ queueWorkflowUrl?: string | null}// Generated by kea-typegen. Update if you're an agent, ignore if you're human.@@ -132,9 +134,13 @@ export const slackTaskContextSceneLogic = kea<slackTaskContextSceneLogicType>([: typeof e?.response?.status === 'number'? e.response.status: null- const detail: string =- e?.data?.detail ?? e?.response?.data?.detail ?? e?.message ?? 'Request failed.'- actions.setSubmissionError({ status, detail })+ const errorBody = e?.data ?? e?.response?.data+ actions.setSubmissionError({+ status,+ detail: errorBody?.detail ?? e?.message ?? 'Request failed.',+ queueWorkflowId: errorBody?.thread?.queue_workflow_id ?? null,+ queueWorkflowUrl: errorBody?.thread?.queue_workflow_url ?? null,+ })return null}},diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 31474613d9f5..4135b769d689 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -77411,6 +77411,21 @@ export namespace Schemas {* @nullable*/mentioning_slack_user_id: string | null;+ /**+ * Temporal workflow id of the per-conversation mention queue (`slack-app-mention-<workspace>:<channel>:<thread_ts>`) that serializes the thread's messages before any run exists. Null when the workspace id cannot be resolved.+ * @nullable+ */+ queue_workflow_id: string | null;+ /**+ * Full Temporal Web UI URL for the mention queue workflow; null when `TEMPORAL_UI_HOST` is unset.+ * @nullable+ */+ queue_workflow_url: string | null;+ /**+ * Absolute URL to the SlackThreadTaskMapping row in Django admin. Null when no mapping exists.+ * @nullable+ */+ mapping_admin_url: string | null;}/**@@ -77434,6 +77449,8 @@ export namespace Schemas {created_at: string;/** Absolute URL to the task detail page in the PostHog app. */url: string;+ /** Absolute URL to the Task row in Django admin. */+ admin_url: string;}/**@@ -77492,6 +77509,8 @@ export namespace Schemas {log_url: string | null;/** The discovery-agent sandbox that picked this run's repo, when the mention was ambiguous. */repo_research: SlackThreadContextRepoResearch | null;+ /** Absolute URL to the TaskRun row in Django admin (includes a log download action). */+ admin_url: string;}/**