Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(server): tell the parent when a delegated task pauses on a request #14423

Closedsaphid(GitHub profile, opens in a new tab)wants to merge 2 commits intot3code/codex-turn-mapping fromrefs/pull/14423/headopened View on GitHub

Showing 11 changed files with 134 additions and 1 deletion (loading 9).

x
0 of 11 viewed, 11 left
1 addition and 1 deletionapps/server/src/mcp/toolkits/orchestrator/tools.tsModified
View file
@@ -67,7 +67,7 @@
​
const TaskStatusTool = Tool.make("task_status", {
description:
- "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; latestTerminal* provides later non-monitor turn results. Reading a terminal result acknowledges its automatic parent delivery.",
+ "Read a T3-owned delegated task created by this parent thread. childRunId identifies the original delegated run. workState distinguishes working, blocked_on_request, waiting_for_children, and result_available; a blocked task is paused on pendingRequests until someone responds, and 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; latestTerminal* provides later non-monitor turn results. Reading a terminal result acknowledges its automatic parent delivery.",
parameters: OrchestratorMcpTaskStatusInput,
success: OrchestratorMcpDelegateTaskResult,
failure: OrchestratorMcpFailure,
133 additions and 0 deletionsapps/server/src/mcp/OrchestratorMcpService.test.tsModified
View file
@@ -7,6 +7,7 @@
ProviderDriverKind,
ProviderInstanceId,
RunId,
+ RuntimeRequestId,
ThreadId,
type OrchestrationV2ThreadProjection,
type ServerProvider,
@@ -60,6 +61,7 @@
messages: [],
subagents: [],
providerThreads: [],
+ runtimeRequests: [],
} as unknown as OrchestrationV2ThreadProjection;
let hasNestedWork = true;
const dependencies = Layer.mergeAll(