Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): keep Antigravity child tool calls out of the parent's reply #46915

Openjuliusmarmingewants to merge 3 commits intomain fromrefs/pull/46915/headopened View on GitHub

Showing 4 changed files with 82 additions and 2 deletions (loading 1).

x
0 of 4 viewed, 4 left
58 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.tsModified
View file
@@ -4328,3 +4328,61 @@
}).pipe(Effect.provide(layerSession)),
+​
+describe("AntigravityAdapterV2 forwarded child tool calls", () => {
+ // agy forwards a background subagent's tool calls onto the root session with
+ // `toolCallId = "<childConversationId>:<callId>"` while the parent's reply is streaming.
+ it.effect("keeps the parent's streaming reply whole and its timeline free of child tools", () =>
+ Effect.gen(function* () {
+ const childConversationId = "7d0d0257-9096-41b0-bc31-60ff358085f3";
+ const { startTurn, throughTerminal } = yield* openSessionWithRunningCommand(
+ {},
+ undefined,
+ undefined,
+ {
+ initialToolCalls: [
+ {
+ sessionUpdate: "agent_message_chunk",
+ content: { type: "text", text: "**Medieval Beacons**\nMon" },
+ },
+ {
+ sessionUpdate: "tool_call",
+ toolCallId: `${childConversationId}:call_9495233002226623095`,
+ kind: "execute",
+ title: "wc -w note03.txt",
+ status: "completed",
+ rawInput: { CommandLine: "wc -w note03.txt" },
+ rawOutput: { combinedOutput: "773 note03.txt\n", exitCode: 0 },
+ },