Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Antigravity invoke_subagent calls show as running subagents again #38966

Mergedjuliusmarmingemerged 3 commits intomain fromrefs/pull/38966/headmerged by juliusmarminge View on GitHub

Showing 5 changed files with 129 additions and 1 deletion (loading 3).

x
0 of 5 viewed, 5 left
122 additions and 1 deletionapps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.tsModified
View file
@@ -98,6 +98,20 @@
});
assert.equal(launch?.title, "Readme Reader");
assert.equal(launch?.prompt, "Read README.md");
+​
+ // agy 1.5.x auto-approves one subagent per call with a flat input.
+ const single = flavor.extractSubagentUpdate?.({
+ toolCallId: "call_16976942396429577770",
+ title: "Run invoke_subagent",
+ kind: "other",
+ status: "completed",
+ data: {
+ rawInput: { TypeName: "research", Role: "Codebase Researcher", Prompt: "Read README.md" },
+ },
+ });
+ assert.equal(single?.status, "running");
+ assert.equal(single?.title, "Codebase Researcher");
+ assert.equal(single?.prompt, "Read README.md");
});
​
it("routes interaction_* permission requests to the question card", () => {
@@ -901,6 +915,8 @@
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,
) {
const childProcessSpawner = yield* ChildProcessSpawner.ChildProcessSpawner;