Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Stop also stops delegated tasks and pull request watches #16002

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 10 commits intomain fromrefs/pull/16002/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 18 changed files with 4 additions and 4 deletions (loading 15).

x
0 of 18 viewed, 18 left
1 addition and 1 deletionapps/server/src/mcp/toolkits/orchestrator/tools.test.tsModified
View file
@@ -26,7 +26,7 @@
);
assert.include(
OrchestratorToolkit.tools.task_cancel.description ?? "",
- "without interrupting later child-thread runs",
+ "This includes later child-thread runs, even after the task is terminal",
);
});
​
2 additions and 2 deletionsapps/server/src/mcp/toolkits/orchestrator/tools.tsModified
View file
@@ -71,7 +71,7 @@
​
const TaskStatusTool = Tool.make("task_status", {
description:
- "Needs an agent running inside a T3 thread. Read a T3-owned delegated task created by this parent thread. childRunId identifies the original delegated run. workState distinguishes working, waiting_for_children, and result_available; a completed turn with live nested work is not a completed task. summary is the final task result, including provider errors on failure, and remains stable after publication. hasPendingChildRuns reports later queued or executing turns in the backing child thread, even after the task is terminal; it does not reopen the task or extend task_cancel to those turns. latestTerminal* provides later non-monitor turn results. Reading a terminal result acknowledges its automatic parent delivery.",
+ "Needs an agent running inside a T3 thread. Read a T3-owned delegated task created by this parent thread. childRunId identifies the original delegated run. workState distinguishes working, waiting_for_children, and result_available; a completed turn with live nested work is not a completed task. summary is the final task result, including provider errors on failure, and remains stable after publication. hasPendingChildRuns reports later queued or executing turns in the backing child thread, even after the task is terminal; it does not reopen the task, and task_cancel stops those turns too. latestTerminal* provides later non-monitor turn results. Reading a terminal result acknowledges its automatic parent delivery.",
parameters: OrchestratorMcpTaskStatusInput,
success: OrchestratorMcpDelegateTaskResult,
failure: OrchestratorMcpFailure,
@@ -85,7 +85,7 @@
​
const TaskCancelTool = Tool.make("task_cancel", {
description:
- "Needs an agent running inside a T3 thread. Request interruption of an active T3-owned delegated task and dispose its automatic parent delivery. For a terminal task, return its existing status and dispose delivery without interrupting later child-thread runs, even when task_status reports hasPendingChildRuns=true. Published task results remain available. Use t3_thread_interrupt for a later active run.",
+ "Needs an agent running inside a T3 thread. Stop a T3-owned delegated task and dispose its automatic parent delivery. Its child thread stops like a user Stop: the running turn is interrupted, queued turns are held, pull request watches end, and the tasks it delegated stop too. This includes later child-thread runs, even after the task is terminal. A terminal task returns its existing status, and published task results remain available.",
parameters: OrchestratorMcpTaskCancelInput,