Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(orchestrator): Show when a completed delegated child still has work #4793

Mergedmwolson(GitHub profile, opens in a new tab)merged 5 commits intot3code/codex-turn-mapping fromrefs/pull/4793/headmerged by juliusmarminge View on GitHub

Showing 7 changed files with 62 additions and 10 deletions (loading 5).

x
0 of 7 viewed, 7 left
1 addition and 1 deletionapps/server/src/mcp/toolkits/orchestrator/tools.tsModified
View file
@@ -62,7 +62,7 @@
​
export const TaskStatusTool = Tool.make("task_status", {
description:
- "Read the latest durable state and final summary for a T3-owned delegated task created by this parent thread. Reading a terminal result acknowledges its automatic parent delivery.",
+ "Read a T3-owned delegated task created by this parent thread. The primary status, childRunId, summary, and resultContextTransferId stay tied to the original delegated run. hasPendingChildRuns reports whether later work is still queued or executing, while latestTerminal* exposes the original run or the newest later terminal run that began execution. Reading a terminal result acknowledges its automatic parent delivery.",
parameters: OrchestratorMcpTaskStatusInput,
success: OrchestratorMcpDelegateTaskResult,
failure: OrchestratorMcpFailure,
61 additions and 9 deletionsapps/server/src/mcp/OrchestratorMcpService.tsModified
View file
@@ -64,6 +64,7 @@
import { subagentResultForRun } from "../orchestration-v2/SubagentProjection.ts";
import {
isActiveRun,
+ isTerminalRunStatus,
latestActiveRun,
latestRun,
ThreadManagementError,
@@ -297,7 +298,7 @@
​
-function delegatedTaskRun(
+export function delegatedTaskRun(
childProjection: OrchestrationV2ThreadProjection,
task: OrchestrationV2Subagent,