Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(orchestrator): Stop treating a wait timeout as a dead child #7427

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

Showing 3 changed files with 45 additions and 4 deletions.

x
0 of 3 viewed, 3 left
30 additions and 0 deletionsapps/server/src/mcp/toolkits/orchestrator/tools.test.tsModified
View file
@@ -9,6 +9,36 @@
assert.include(DelegateTaskTool.description ?? "", "cross-provider");
assert.include(CreateThreadsTool.description ?? "", "not delegation");
assert.include(CreateThreadsTool.description ?? "", "call delegate_task");
+ assert.include(DelegateTaskTool.description ?? "", "waitTimedOut");
+ assert.include(DelegateTaskTool.description ?? "", "does not cancel the child");
+ assert.include(DelegateTaskTool.description ?? "", "keep that taskId");
+ });
+​
+ it("documents wait timeout as a parent budget, not a child failure", () => {
+ const schema = Tool.getJsonSchema(DelegateTaskTool) as {
+ readonly properties?: Readonly<
+ Record<
+ string,
+ {
+ readonly description?: unknown;
+ readonly anyOf?: ReadonlyArray<{ readonly description?: unknown }>;
+ }
+ >
+ >;
+ };
+ const mode = schema.properties?.mode;
+ const timeoutMs = schema.properties?.timeoutMs;
+ const modeText = [mode?.description, ...(mode?.anyOf ?? []).map((entry) => entry.description)]
+ .filter((value) => typeof value === "string")
+ .join(" ");
+ const timeoutText = [
+ timeoutMs?.description,
+ ...(timeoutMs?.anyOf ?? []).map((entry) => entry.description),
+ ]