Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): track resumed subagent follow-ups as separate tasks #17696

MergedYash-Singh1(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/17696/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

Showing 14 changed files with 12 additions and 3 deletions (loading 11).

x
0 of 14 viewed, 14 left
1 addition and 1 deletionapps/server/src/mcp/toolkits/orchestrator/tools.test.tsModified
View file
@@ -22,7 +22,7 @@
assert.include(DelegateTaskTool.description ?? "", "childThreadId is backing storage");
assert.include(
OrchestratorToolkit.tools.t3_thread_send.description ?? "",
- "Do not use a delegated task's childThreadId to start another review round",
+ "a requested follow-up creates a fresh task",
);
assert.include(
OrchestratorToolkit.tools.task_cancel.description ?? "",
1 addition and 1 deletionapps/server/src/mcp/toolkits/orchestrator/tools.tsModified
View file
@@ -219,7 +219,7 @@
​
const ThreadSendTool = Tool.make("t3_thread_send", {
description:
- "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.",
parameters: OrchestratorMcpThreadSendInput,
success: OrchestratorMcpThreadSendResult,
failure: OrchestratorMcpFailure,
10 additions and 1 deletionapps/server/src/mcp/OrchestratorMcpService.test.tsModified
View file
@@ -200,7 +200,16 @@
} as unknown as OrchestrationV2ThreadProjection;
const childProjection = {
thread: { id: childThreadId },