: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(tasks): carry the first message and its artifacts through warm run activation (#68601)
Alessandro Pogliaghi7039c057dfe9
diff --git a/products/tasks/backend/facade/api.py b/products/tasks/backend/facade/api.pyindex 749ddf2c8640..4eb34353ebc5 100644--- a/products/tasks/backend/facade/api.py+++ b/products/tasks/backend/facade/api.py@@ -2838,6 +2838,8 @@ def create_task(team_id: int, user_id: int | None, *, validated_data: dict) -> cwarm_runtime_adapter = validated_data.pop("runtime_adapter", None)warm_model = validated_data.pop("model", None)warm_reasoning_effort = validated_data.pop("reasoning_effort", None)+ pending_user_message = (validated_data.pop("pending_user_message", None) or "").strip() or None+ pending_user_artifact_ids = validated_data.pop("pending_user_artifact_ids", None) or []if user_id is not None:validated_data["created_by"] = User.objects.get(id=user_id)@@ -2857,18 +2859,44 @@ def create_task(team_id: int, user_id: int | None, *, validated_data: dict) -> cmodel=warm_model,reasoning_effort=warm_reasoning_effort,)+ if warm_run is not None and pending_user_artifact_ids:+ from products.tasks.backend.logic.services.staged_artifacts import ( # noqa: PLC0415 — keep storage deps off the api import path+ get_task_run_artifacts_by_id,+ )++ _, missing_artifact_ids = get_task_run_artifacts_by_id(warm_run, pending_user_artifact_ids)+ if missing_artifact_ids:+ logger.info(+ "Skipping warm run reuse: %d pending artifact id(s) missing from warm run %s manifest",+ len(missing_artifact_ids),+ warm_run.id,+ )+ warm_run = Noneif warm_run is not None:warm_task = warm_run.task- message = (validated_data.get("description") or "").strip()- if message and not (warm_task.title or "").strip():- warm_task.title = generate_task_title(message)+ description = (validated_data.get("description") or "").strip()+ update_fields: list[str] = []+ if description and not (warm_task.title or "").strip():+ warm_task.title = generate_task_title(description)warm_task.title_manually_set = False- warm_task.save(update_fields=["title", "title_manually_set", "updated_at"])+ update_fields += ["title", "title_manually_set"]+ if description and not (warm_task.description or "").strip():+ warm_task.description = description+ update_fields.append("description")channel = validated_data.get("channel")if channel is not None and warm_task.channel_id != channel.id:warm_task.channel = channel- warm_task.save(update_fields=["channel", "updated_at"])- _activate_warm_run(warm_run, warm_task, team_id, message=message or None, artifact_ids=[])+ update_fields.append("channel")+ if update_fields:+ warm_task.save(update_fields=[*update_fields, "updated_at"])+ _activate_warm_run(+ warm_run,+ warm_task,+ team_id,+ message=pending_user_message or description or None,+ description=description or None,+ artifact_ids=pending_user_artifact_ids,+ )return _task_detail_to_dto(_task_detail_queryset().get(pk=warm_task.pk))# Only IMPLEMENTATION is accepted; pop it so it isn't forwarded to the model. The link itself@@ -3166,16 +3194,48 @@ def _idling_warm_run_for_task(task: Task) -> TaskRun | None:return run-def _activate_warm_run(run: TaskRun, task: Task, team_id: int, *, message: str | None, artifact_ids: list[str]) -> None:- """Activate an idling warm Run: set the draft Task's description (when empty), forward the first- message to the already-running agent, and drop the ``await_user_message`` marker so the Run leaves- the warm pool. Mirrors ``message_routing._handle_first_message``; no fresh agent start."""+def _attach_staged_artifacts_to_run(+ run: TaskRun, task: Task, *, staged_artifacts: list[dict], artifact_ids: list[str]+) -> None:+ from products.tasks.backend.logic.services.staged_artifacts import ( # noqa: PLC0415 — keep storage deps off the api import path+ RUN_ARTIFACT_TTL_DAYS,+ build_task_staged_artifact_cache_key,+ tag_task_artifact,+ )+ from products.tasks.backend.redis import get_tasks_cache # noqa: PLC0415++ manifest = list(run.artifacts or [])+ for staged_artifact in staged_artifacts:+ storage_path = str(staged_artifact["storage_path"])+ if _find_artifact_manifest_entry(manifest, str(staged_artifact.get("id")), storage_path):+ continue+ tag_task_artifact(storage_path, ttl_days=RUN_ARTIFACT_TTL_DAYS, team_id=task.team_id)+ manifest.append(dict(staged_artifact))+ _save_artifact_manifest(run, manifest)+ get_tasks_cache().delete_many(+ [build_task_staged_artifact_cache_key(str(task.id), artifact_id) for artifact_id in artifact_ids]+ )+++def _activate_warm_run(+ run: TaskRun,+ task: Task,+ team_id: int,+ *,+ message: str | None,+ artifact_ids: list[str],+ description: str | None = None,+) -> None:+ """Activate an idling warm Run: set the draft Task's visible description from raw task text,+ forward the first message to the already-running agent, and drop the ``await_user_message`` marker+ so the Run leaves the warm pool. Mirrors ``message_routing._handle_first_message``; no fresh agent+ start."""from products.tasks.backend.metrics import ( # noqa: PLC0415 — keep prometheus deps off the api import pathobserve_prewarmed_activated,)- if message and not (task.description or "").strip():- task.description = message+ if description and not (task.description or "").strip():+ task.description = descriptiontask.save(update_fields=["description", "updated_at"])signal_task_run_user_message(run.id, task.id, team_id, content=message, artifact_ids=artifact_ids)TaskRun.update_state_atomic(run.id, remove_keys=["await_user_message"])@@ -3298,13 +3358,7 @@ def run_task(``TaskRunResult`` carrying the refreshed task detail DTO or a structured error. The usagegate (429) is applied by the view before calling this."""- from products.tasks.backend.logic.services.staged_artifacts import ( # noqa: PLC0415- RUN_ARTIFACT_TTL_DAYS,- build_task_staged_artifact_cache_key,- get_task_staged_artifacts,- tag_task_artifact,- )- from products.tasks.backend.redis import get_tasks_cache # noqa: PLC0415+ from products.tasks.backend.logic.services.staged_artifacts import get_task_staged_artifacts # noqa: PLC0415from products.tasks.backend.temporal.process_task.utils import ( # noqa: PLC0415 — keep temporalio off the api import pathPrAuthorshipMode,RunSource,@@ -3322,6 +3376,7 @@ def run_task(branch = validated_data.get("branch")resume_from_run_id = validated_data.get("resume_from_run_id")pending_user_message = validated_data.get("pending_user_message")+ pending_user_artifact_ids = validated_data.get("pending_user_artifact_ids") or []if not resume_from_run_id:warm_run = _idling_warm_run_for_task(task)@@ -3337,15 +3392,28 @@ def run_task(validated_data.get("reasoning_effort") or None,)if warm_runtime_matches:- _activate_warm_run(- warm_run,- task,- team_id,- message=pending_user_message or (task.description or None),- artifact_ids=validated_data.get("pending_user_artifact_ids") or [],+ warm_staged_artifacts, warm_missing_artifact_ids = (+ get_task_staged_artifacts(task, pending_user_artifact_ids)+ if pending_user_artifact_ids+ else ([], []))- return contracts.TaskRunResult(task=get_task_detail(task.id, team_id, user_id))- pending_user_artifact_ids = validated_data.get("pending_user_artifact_ids") or []+ if not warm_missing_artifact_ids:+ if warm_staged_artifacts:+ _attach_staged_artifacts_to_run(+ warm_run,+ task,+ staged_artifacts=warm_staged_artifacts,+ artifact_ids=pending_user_artifact_ids,+ )+ _activate_warm_run(+ warm_run,+ task,+ team_id,+ message=pending_user_message or (task.description or None),+ description=task.description or None,+ artifact_ids=pending_user_artifact_ids,+ )+ return contracts.TaskRunResult(task=get_task_detail(task.id, team_id, user_id))sandbox_environment_id = validated_data.get("sandbox_environment_id")sandbox_environment_id_supplied_by_user = sandbox_environment_id is not Nonepr_authorship_mode = validated_data.get("pr_authorship_mode")@@ -3497,17 +3565,9 @@ def run_task(task_run = task.create_run(mode=mode, branch=branch, extra_state=extra_state)if pending_user_artifact_ids:- run_artifacts: list[dict] = []- for staged_artifact in staged_artifacts:- storage_path = str(staged_artifact["storage_path"])- tag_task_artifact(storage_path, ttl_days=RUN_ARTIFACT_TTL_DAYS, team_id=task.team_id)- run_artifacts.append(dict(staged_artifact))-- task_run.artifacts = run_artifacts- task_run.save(update_fields=["artifacts", "updated_at"])-- for artifact_id in pending_user_artifact_ids:- get_tasks_cache().delete(build_task_staged_artifact_cache_key(str(task.id), artifact_id))+ _attach_staged_artifacts_to_run(+ task_run, task, staged_artifacts=staged_artifacts, artifact_ids=pending_user_artifact_ids+ )if github_user_token and pr_authorship_mode == PrAuthorshipMode.USER:cache_github_user_token(str(task_run.id), github_user_token)diff --git a/products/tasks/backend/presentation/serializers.py b/products/tasks/backend/presentation/serializers.pyindex e62ba88a2006..e04a0543408f 100644--- a/products/tasks/backend/presentation/serializers.py+++ b/products/tasks/backend/presentation/serializers.py@@ -466,6 +466,31 @@ class TaskWriteSerializer(serializers.Serializer):write_only=True,help_text="Selected reasoning effort. Write-only; used only to reuse a warm Run started on the same effort.",)+ pending_user_message = serializers.CharField(+ required=False,+ default=None,+ allow_null=True,+ allow_blank=True,+ write_only=True,+ help_text=(+ "First user message to forward when creation reuses a pre-warmed Run. Write-only and not "+ "persisted on the task: lets clients deliver a message that differs from `description` "+ "(e.g. a resolved skill invocation with channel context folded in). Ignored when no warm "+ "Run is reused — cold creation takes the first message via the run start endpoint instead."+ ),+ )+ pending_user_artifact_ids = serializers.ListField(+ required=False,+ default=list,+ child=serializers.CharField(max_length=128),+ write_only=True,+ help_text=(+ "Run artifact ids (already uploaded to the pre-warmed Run) to attach to the forwarded "+ "first message when creation reuses that warm Run, e.g. skill bundles or file attachments. "+ "If any id is missing from the warm Run's manifest, warm reuse is skipped and the task is "+ "created cold. Ignored when no warm Run is matched."+ ),+ )channel = TeamScopedPrimaryKeyRelatedField( # nosemgrep: unscoped-primary-key-related-fieldqueryset=Integration.objects.none(),required=False,diff --git a/products/tasks/backend/tests/test_warm_facade.py b/products/tasks/backend/tests/test_warm_facade.pyindex 3d35bc22e430..9cf92ed3377d 100644--- a/products/tasks/backend/tests/test_warm_facade.py+++ b/products/tasks/backend/tests/test_warm_facade.py@@ -12,10 +12,36 @@ from products.tasks.backend.facade import (api as facade,contracts,)+from products.tasks.backend.logic.services.staged_artifacts import (+ build_task_artifact_entry,+ build_task_staged_artifact_cache_key,+)from products.tasks.backend.logic.services.warm import WarmResultfrom products.tasks.backend.models import Task, TaskRun+from products.tasks.backend.redis import get_tasks_cacheFACADE = "products.tasks.backend.facade.api"+++def _artifact_entry(artifact_id: str) -> dict[str, Any]:+ return build_task_artifact_entry(+ artifact_id=artifact_id,+ name="millie.zip",+ artifact_type="skill_bundle",+ source="user_attachment",+ size=128,+ content_type="application/zip",+ storage_path=f"tasks/artifacts/{artifact_id}/millie.zip",+ metadata={+ "skill_name": "millie",+ "skill_source": "user",+ "content_sha256": "a" * 64,+ "bundle_format": "zip",+ "schema_version": 1,+ },+ )++WARM_SRC = "products.tasks.backend.logic.services.warm.SandboxWarmer"TITLE_SRC = "products.tasks.backend.logic.services.title_generator"@@ -196,6 +222,75 @@ class TestCreateTaskWarmReuse(APIBaseTest):assert str(dto.id) != str(warm_task.id)assert Task.objects.filter(team=self.team, deleted=False).count() == 2+ def test_forwards_pending_message_and_run_artifacts_on_warm_reuse(self):+ warm_task, run = self._warm_run()+ run.artifacts = [_artifact_entry("artifact-1")]+ run.save(update_fields=["artifacts"])++ with patch(f"{FACADE}.signal_task_run_user_message", return_value=True) as m_signal:+ dto = self._create(+ description="/millie readme this skill",+ pending_user_message='<skill name="millie" source="user" /> readme this skill',+ pending_user_artifact_ids=["artifact-1"],+ )++ assert str(dto.id) == str(warm_task.id)+ _, kwargs = m_signal.call_args+ assert kwargs["content"] == '<skill name="millie" source="user" /> readme this skill'+ assert kwargs["artifact_ids"] == ["artifact-1"]+ warm_task.refresh_from_db()+ assert warm_task.description == "/millie readme this skill"++ def test_does_not_persist_augmented_pending_message_when_description_empty(self):+ warm_task, _ = self._warm_run()+ augmented_message = "<channel_context>\nUse this workspace context.\n</channel_context>"++ with patch(f"{FACADE}.signal_task_run_user_message", return_value=True) as m_signal:+ dto = self._create(description="", pending_user_message=augmented_message)++ assert str(dto.id) == str(warm_task.id)+ _, kwargs = m_signal.call_args+ assert kwargs["content"] == augmented_message+ warm_task.refresh_from_db()+ assert warm_task.description == ""++ def test_skips_warm_reuse_when_pending_artifacts_missing_from_warm_run(self):+ warm_task, run = self._warm_run()+ with (+ patch(f"{FACADE}.signal_task_run_user_message") as m_signal,+ patch(f"{TITLE_SRC}.generate_task_title", return_value="T"),+ ):+ dto = self._create(pending_user_artifact_ids=["not-uploaded"])++ assert str(dto.id) != str(warm_task.id)+ m_signal.assert_not_called()+ run.refresh_from_db()+ assert run.state.get("await_user_message") is True++ def test_create_endpoint_passes_pending_fields_to_warm_activation(self):+ warm_task, run = self._warm_run()+ run.artifacts = [_artifact_entry("artifact-1")]+ run.save(update_fields=["artifacts"])++ with patch(f"{FACADE}.signal_task_run_user_message", return_value=True) as m_signal:+ response = self.client.post(+ "/api/projects/@current/tasks/",+ {+ "description": "/millie readme this skill",+ "repository": "posthog/posthog",+ "branch": "main",+ "pending_user_message": "resolved skill message",+ "pending_user_artifact_ids": ["artifact-1"],+ },+ format="json",+ )++ assert response.status_code == 201, response.content+ assert response.json()["id"] == str(warm_task.id)+ _, kwargs = m_signal.call_args+ assert kwargs["content"] == "resolved skill message"+ assert kwargs["artifact_ids"] == ["artifact-1"]+class TestRunTaskWarmActivation(APIBaseTest):"""The normal run path activates an idling warm Run instead of dispatching a fresh workflow."""@@ -249,6 +344,53 @@ class TestRunTaskWarmActivation(APIBaseTest):_, kwargs = m_signal.call_argsassert kwargs["content"] == "from description"+ def test_materializes_staged_artifacts_onto_warm_run_before_activation(self):+ task, run = self._warm_run()+ staged = _artifact_entry("artifact-1")+ get_tasks_cache().set(build_task_staged_artifact_cache_key(str(task.id), "artifact-1"), staged, timeout=60)++ with patch(f"{FACADE}.signal_task_run_user_message", return_value=True) as m_signal:+ result = facade.run_task(+ task.id,+ self.team.id,+ self.user.id,+ validated_data={+ "mode": "interactive",+ "branch": "main",+ "pending_user_message": "do it",+ "pending_user_artifact_ids": ["artifact-1"],+ },+ )++ assert result is not None and result.error is None+ assert task.runs.count() == 1+ run.refresh_from_db()+ assert [artifact["id"] for artifact in run.artifacts] == ["artifact-1"]+ assert "await_user_message" not in run.state+ _, kwargs = m_signal.call_args+ assert kwargs["artifact_ids"] == ["artifact-1"]++ def test_missing_staged_artifacts_skip_warm_activation(self):+ task, run = self._warm_run()+ with patch(f"{FACADE}.signal_task_run_user_message") as m_signal:+ result = facade.run_task(+ task.id,+ self.team.id,+ self.user.id,+ validated_data={+ "mode": "interactive",+ "branch": "main",+ "pending_user_message": "do it",+ "pending_user_artifact_ids": ["ghost"],+ },+ )++ m_signal.assert_not_called()+ run.refresh_from_db()+ assert run.state.get("await_user_message") is True+ assert result is not None and result.error is not None+ assert task.runs.count() == 1+def test_branch_mismatch_does_not_activate_warm_run(self):# Requesting a different branch than the warm Run was provisioned on must NOT activate it# (it would work the wrong branch); fall through to the cold path instead.diff --git a/products/tasks/frontend/generated/api.schemas.ts b/products/tasks/frontend/generated/api.schemas.tsindex 219fedaffe0f..947e01774ebf 100644--- a/products/tasks/frontend/generated/api.schemas.ts+++ b/products/tasks/frontend/generated/api.schemas.ts@@ -558,6 +558,16 @@ export interface TaskWriteApi {* * `xhigh` - xhigh* * `max` - max */reasoning_effort?: ReasoningEffortEnumApi | null+ /**+ * First user message to forward when creation reuses a pre-warmed Run. Write-only and not persisted on the task: lets clients deliver a message that differs from `description` (e.g. a resolved skill invocation with channel context folded in). Ignored when no warm Run is reused — cold creation takes the first message via the run start endpoint instead.+ * @nullable+ */+ pending_user_message?: string | null+ /**+ * Run artifact ids (already uploaded to the pre-warmed Run) to attach to the forwarded first message when creation reuses that warm Run, e.g. skill bundles or file attachments. If any id is missing from the warm Run's manifest, warm reuse is skipped and the task is created cold. Ignored when no warm Run is matched.+ * @items.maxLength 128+ */+ pending_user_artifact_ids?: string[]/*** Channel this task is owned by (the channel it was kicked off in).* @nullable@@ -655,6 +665,16 @@ export interface PatchedTaskWriteApi {* * `xhigh` - xhigh* * `max` - max */reasoning_effort?: ReasoningEffortEnumApi | null+ /**+ * First user message to forward when creation reuses a pre-warmed Run. Write-only and not persisted on the task: lets clients deliver a message that differs from `description` (e.g. a resolved skill invocation with channel context folded in). Ignored when no warm Run is reused — cold creation takes the first message via the run start endpoint instead.+ * @nullable+ */+ pending_user_message?: string | null+ /**+ * Run artifact ids (already uploaded to the pre-warmed Run) to attach to the forwarded first message when creation reuses that warm Run, e.g. skill bundles or file attachments. If any id is missing from the warm Run's manifest, warm reuse is skipped and the task is created cold. Ignored when no warm Run is matched.+ * @items.maxLength 128+ */+ pending_user_artifact_ids?: string[]/*** Channel this task is owned by (the channel it was kicked off in).* @nullablediff --git a/products/tasks/frontend/generated/api.zod.ts b/products/tasks/frontend/generated/api.zod.tsindex 5ac3b31951b3..35a5bd7c89a2 100644--- a/products/tasks/frontend/generated/api.zod.ts+++ b/products/tasks/frontend/generated/api.zod.ts@@ -264,6 +264,8 @@ export const tasksCreateBodyRepositoryMax = 255export const tasksCreateBodyBranchMax = 255+export const tasksCreateBodyPendingUserArtifactIdsItemMax = 128+export const TasksCreateBody = /* @__PURE__ */ zod.object({title: zod@@ -359,6 +361,18 @@ export const TasksCreateBody = /* @__PURE__ */ zod.describe('Selected reasoning effort. Write-only; used only to reuse a warm Run started on the same effort.\n\n\* `low` - low\n\* `medium` - medium\n\* `high` - high\n\* `xhigh` - xhigh\n\* `max` - max'),+ pending_user_message: zod+ .string()+ .nullish()+ .describe(+ 'First user message to forward when creation reuses a pre-warmed Run. Write-only and not persisted on the task: lets clients deliver a message that differs from `description` (e.g. a resolved skill invocation with channel context folded in). Ignored when no warm Run is reused — cold creation takes the first message via the run start endpoint instead.'+ ),+ pending_user_artifact_ids: zod+ .array(zod.string().max(tasksCreateBodyPendingUserArtifactIdsItemMax))+ .optional()+ .describe(+ "Run artifact ids (already uploaded to the pre-warmed Run) to attach to the forwarded first message when creation reuses that warm Run, e.g. skill bundles or file attachments. If any id is missing from the warm Run's manifest, warm reuse is skipped and the task is created cold. Ignored when no warm Run is matched."+ ),channel: zod.uuid().nullish().describe('Channel this task is owned by (the channel it was kicked off in).'),}).describe(@@ -374,6 +388,8 @@ export const tasksUpdateBodyRepositoryMax = 255export const tasksUpdateBodyBranchMax = 255+export const tasksUpdateBodyPendingUserArtifactIdsItemMax = 128+export const TasksUpdateBody = /* @__PURE__ */ zod.object({title: zod@@ -469,6 +485,18 @@ export const TasksUpdateBody = /* @__PURE__ */ zod.describe('Selected reasoning effort. Write-only; used only to reuse a warm Run started on the same effort.\n\n\* `low` - low\n\* `medium` - medium\n\* `high` - high\n\* `xhigh` - xhigh\n\* `max` - max'),+ pending_user_message: zod+ .string()+ .nullish()+ .describe(+ 'First user message to forward when creation reuses a pre-warmed Run. Write-only and not persisted on the task: lets clients deliver a message that differs from `description` (e.g. a resolved skill invocation with channel context folded in). Ignored when no warm Run is reused — cold creation takes the first message via the run start endpoint instead.'+ ),+ pending_user_artifact_ids: zod+ .array(zod.string().max(tasksUpdateBodyPendingUserArtifactIdsItemMax))+ .optional()+ .describe(+ "Run artifact ids (already uploaded to the pre-warmed Run) to attach to the forwarded first message when creation reuses that warm Run, e.g. skill bundles or file attachments. If any id is missing from the warm Run's manifest, warm reuse is skipped and the task is created cold. Ignored when no warm Run is matched."+ ),channel: zod.uuid().nullish().describe('Channel this task is owned by (the channel it was kicked off in).'),}).describe(@@ -484,6 +512,8 @@ export const tasksPartialUpdateBodyRepositoryMax = 255export const tasksPartialUpdateBodyBranchMax = 255+export const tasksPartialUpdateBodyPendingUserArtifactIdsItemMax = 128+export const TasksPartialUpdateBody = /* @__PURE__ */ zod.object({title: zod@@ -579,6 +609,18 @@ export const TasksPartialUpdateBody = /* @__PURE__ */ zod.describe('Selected reasoning effort. Write-only; used only to reuse a warm Run started on the same effort.\n\n\* `low` - low\n\* `medium` - medium\n\* `high` - high\n\* `xhigh` - xhigh\n\* `max` - max'),+ pending_user_message: zod+ .string()+ .nullish()+ .describe(+ 'First user message to forward when creation reuses a pre-warmed Run. Write-only and not persisted on the task: lets clients deliver a message that differs from `description` (e.g. a resolved skill invocation with channel context folded in). Ignored when no warm Run is reused — cold creation takes the first message via the run start endpoint instead.'+ ),+ pending_user_artifact_ids: zod+ .array(zod.string().max(tasksPartialUpdateBodyPendingUserArtifactIdsItemMax))+ .optional()+ .describe(+ "Run artifact ids (already uploaded to the pre-warmed Run) to attach to the forwarded first message when creation reuses that warm Run, e.g. skill bundles or file attachments. If any id is missing from the warm Run's manifest, warm reuse is skipped and the task is created cold. Ignored when no warm Run is matched."+ ),channel: zod.uuid().nullish().describe('Channel this task is owned by (the channel it was kicked off in).'),}).describe(diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 6ced5d4a07b2..30670263d131 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -42203,6 +42203,16 @@ export namespace Schemas {* * `xhigh` - xhigh* * `max` - max */reasoning_effort?: ReasoningEffortEnum | null;+ /**+ * First user message to forward when creation reuses a pre-warmed Run. Write-only and not persisted on the task: lets clients deliver a message that differs from `description` (e.g. a resolved skill invocation with channel context folded in). Ignored when no warm Run is reused — cold creation takes the first message via the run start endpoint instead.+ * @nullable+ */+ pending_user_message?: string | null;+ /**+ * Run artifact ids (already uploaded to the pre-warmed Run) to attach to the forwarded first message when creation reuses that warm Run, e.g. skill bundles or file attachments. If any id is missing from the warm Run's manifest, warm reuse is skipped and the task is created cold. Ignored when no warm Run is matched.+ * @items.maxLength 128+ */+ pending_user_artifact_ids?: string[];/*** Channel this task is owned by (the channel it was kicked off in).* @nullable@@ -53143,6 +53153,16 @@ export namespace Schemas {* * `xhigh` - xhigh* * `max` - max */reasoning_effort?: ReasoningEffortEnum | null;+ /**+ * First user message to forward when creation reuses a pre-warmed Run. Write-only and not persisted on the task: lets clients deliver a message that differs from `description` (e.g. a resolved skill invocation with channel context folded in). Ignored when no warm Run is reused — cold creation takes the first message via the run start endpoint instead.+ * @nullable+ */+ pending_user_message?: string | null;+ /**+ * Run artifact ids (already uploaded to the pre-warmed Run) to attach to the forwarded first message when creation reuses that warm Run, e.g. skill bundles or file attachments. If any id is missing from the warm Run's manifest, warm reuse is skipped and the task is created cold. Ignored when no warm Run is matched.+ * @items.maxLength 128+ */+ pending_user_artifact_ids?: string[];/*** Channel this task is owned by (the channel it was kicked off in).* @nullable