Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): deliver subagent results without history handoffs #22117

Mergedjuliusmarmingemerged 4 commits intomain fromrefs/pull/22117/headmerged by juliusmarminge View on GitHub

Showing 5 changed files with 188 additions and 4 deletions (loading 3).

x
0 of 5 viewed, 5 left
9 additions and 4 deletionsapps/server/src/orchestration-v2/testkit/ProviderTurnStartMemory.fixture.mjsModified
View file
@@ -4,7 +4,7 @@
import * as NodeAssert from "node:assert/strict";
const root = process.argv[2];
const mode = process.argv[3];
-const withHandoff = mode.startsWith("handoff");
+const withHandoff = mode.startsWith("handoff") || mode === "subagent-result";
const require = NodeModule.createRequire(root + "/apps/server/package.json");
const load = (name) => import(NodeURL.pathToFileURL(require.resolve("effect/" + name)));
const [Effect, Layer, FileSystem, Path] = await Promise.all([
@@ -160,7 +160,10 @@
driver: "codex",
providerSessionId: "session",
nativeThreadRef: { nativeId: "native", driver: "codex", strength: "strong" },
- contextUsage: { usedTokens: 0, maxTokens: 128000 },
+ contextUsage:
+ mode === "subagent-result"
+ ? { usedTokens: 390458, maxTokens: 475000 }
+ : { usedTokens: 0, maxTokens: 128000 },
handoffIds: [],
@@ -170,19 +173,21 @@
? [
id: "handoff",
+ transferId: mode === "subagent-result" ? "subagent-transfer" : null,
threadId: "thread",
targetRunId: runId,