fix(server): track resumed subagent follow-ups as separate tasks #17696
Merged
Yash-Singh1(GitHub profile, opens in a new tab)merged 3 commits into
main fromrefs/pull/17696/head·merged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHubShowing 14 changed files with 12 additions and 3 deletions (loading 11).
x
1 addition and 1 deletion+1-1apps/server/src/mcp/toolkits/orchestrator/tools.test.tsModifiedView file
@@ -22,7 +22,7 @@
- "Do not use a delegated task's childThreadId to start another review round",
+ "a requested follow-up creates a fresh task",
@@ -219,7 +219,7 @@
- "Send a message to any T3 thread in this environment. The target cannot have broader permission modes than the caller. Do not use a delegated task's childThreadId to start another review round here; use delegate_task with the full review context and a new clientRequestId for that round. Thread messages do not create a new delegated task or reopen a completed task. mode='auto' starts an idle thread, steers a fully active turn, or queues behind a turn that is not yet steerable. Use queue for a separate follow-up turn, steer for an in-flight update, or restart to interrupt-and-restart the active turn. clientRequestId makes retries idempotent.",
+ "Send a message to any T3 thread in this environment. The target cannot have broader permission modes than the caller. Use delegate_task with the full review context and a new clientRequestId for independent review rounds. For a follow-up that needs the same child's conversation, send to its childThreadId. After the original task completes, a requested follow-up creates a fresh task in that child thread and returns taskId; its completion notifies the parent, and the original result stays unchanged. mode='auto' starts an idle thread, steers a fully active turn, or queues behind a turn that is not yet steerable. Use queue for a separate follow-up turn, steer for an in-flight update, or restart to interrupt-and-restart the active turn. clientRequestId makes retries idempotent.",
@@ -200,7 +200,16 @@