fix(server): held queued wakes no longer keep delegated tasks running #17028
Merged
juliusmarmingemerged 1 commit into
main fromrefs/pull/17028/head·merged by juliusmarminge View on GitHubShowing 9 changed files with 17 additions and 1 deletion (loading 6).
x
@@ -76,7 +76,7 @@
- "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.",
+ "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. Turns held in a stopped queue wait for the user and do not count. latestTerminal* provides later non-monitor turn results. Reading a terminal result acknowledges its automatic parent delivery.",
@@ -372,9 +372,11 @@
+ // Held queued runs wait for the user to resume the child; task_cancel holds them.
+ !(run.status === "queued" && run.queueHeld === true) &&
14 additions and 0 deletions+14-0apps/server/src/mcp/OrchestratorMcpToolkit.integration.test.tsModifiedView file
@@ -1873,6 +1873,20 @@