Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): task_status says starting until the child's provider starts #24475

Mergedonly21mil(GitHub profile, opens in a new tab)merged 11 commits intomain fromrefs/pull/24475/headmerged by juliusmarminge View on GitHub

Showing 6 changed files with 109 additions and 7 deletions (loading 3).

x
0 of 6 viewed, 6 left
90 additions and 0 deletionsapps/server/src/mcp/OrchestratorMcpService.test.tsModified
View file
@@ -350,6 +350,95 @@
}),
​
+ it.effect("reports a child run the provider has not started yet as starting", () =>
+ Effect.gen(function* () {
+ const parentThreadId = ThreadId.make("thread:mcp-starting-parent");
+ const childThreadId = ThreadId.make("thread:mcp-starting-child");
+ const childRunId = RunId.make("run:mcp-starting-child");
+ const taskId = NodeId.make("node:mcp-starting-task");
+ const parentProjection = {
+ thread: { id: parentThreadId },
+ runs: [],
+ contextTransfers: [],
+ subagents: [
+ {
+ id: taskId,
+ threadId: parentThreadId,
+ origin: "app_owned",
+ childThreadId,
+ driver: "codex",
+ model: "gpt-5.6-terra",
+ status: "running",
+ result: null,
+ completionDelivery: null,
+ },
+ ],
+ } as unknown as OrchestrationV2ThreadProjection;
+ let providerStarted = false;
+ const childProjection = () =>