Procházet zdrojové kódy

test: create built probe child in parent scope

Tianyi Cui před 3 měsíci
rodič
revize
db3e97fc17

+ 1 - 1
packages/ui/jsonrpc/tests/built-scope-carrier.e2e.ts

@@ -58,7 +58,7 @@ try {
     meta: { cwd: storageRoot },
     meta: { cwd: storageRoot },
     agentOptions: { model: "test" },
     agentOptions: { model: "test" },
   });
   });
-  const child = await ctx.agents.create({
+  const child = await parent.agent.ctx.agents.create({
     sessionId: SessionId("built-child"),
     sessionId: SessionId("built-child"),
     meta: { cwd: storageRoot, parentSession: SessionId("built-parent") },
     meta: { cwd: storageRoot, parentSession: SessionId("built-parent") },
     agentOptions: { model: "test" },
     agentOptions: { model: "test" },