Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Antigravity swarm workers keep their run open until they report #39958

Closedjuliusmarmingewants to merge 4 commits intomain fromrefs/pull/39958/headopened View on GitHub

Showing 5 changed files with 122 additions and 26 deletions (loading 2).

x
0 of 5 viewed, 5 left
53 additions and 16 deletionsapps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.tsModified
View file
@@ -992,12 +992,32 @@
* A session whose prompt reports one running command and returns end_turn, as agy 1.5.11 does
* for `run_command` once `WaitMsBeforeAsync` passes. The test sends every later frame.
+const invokeSubagentLaunch = {
+ sessionUpdate: "tool_call",
+ toolCallId: "call_research",
+ kind: "other",
+ title: "Run invoke_subagent",
+ status: "completed",
+ rawInput: { TypeName: "research", Role: "Researcher", Prompt: "Read it" },
+} as const satisfies EffectAcpSchema.SessionUpdate;
+​
+// agy 1.5.13 completes `swarm` add at once; the worker keeps running as a detached child.
+const swarmWorkerLaunch = {
+ sessionUpdate: "tool_call",
+ toolCallId: "call_research",
+ kind: "other",
+ title: "Run swarm",
+ status: "completed",
+ rawInput: { action: "add", name: "worker-a", brief: "Read it" },
+} as const satisfies EffectAcpSchema.SessionUpdate;
+​
const openSessionWithRunningCommand = Effect.fn("openSessionWithRunningCommand")(function* (
commandInput: Record<string, unknown>,
/** The prompt launches one agy 1.5 subagent instead; its records live below this profile. */
detachedChildProfile?: string,
/** agy 1.5.11 answers a steered prompt once the next one arrives, which runs to `releaseSteer`. */
steering?: { readonly agentVersion: string; readonly holdsFirstPrompt: boolean },
+ detachedLaunch: EffectAcpSchema.SessionUpdate = invokeSubagentLaunch,