Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): read detached Antigravity 1.5 subagent transcripts #39004

MergedDASungta(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/39004/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 154 additions and 0 deletions (loading 1).

x
0 of 2 viewed, 2 left
154 additions and 0 deletionsapps/server/src/provider/acp/AntigravityChildWork.test.tsModified
View file
@@ -318,6 +318,160 @@
}),
​
+ it.effect("follows a detached 1.5 launch id through the child's inbox to its transcript", () =>
+ Effect.gen(function* () {
+ const fs = yield* FileSystem.FileSystem;
+ const path = yield* Path.Path;
+ const profile = yield* fs.makeTempDirectoryScoped({ prefix: "t3-agy-detached-" });
+ const sibling = "b468c0e1-d2f3-4a5b-6c7d-8e9f0a1b2c3d";
+ const writeJson = (segments: ReadonlyArray<string>, value: unknown) => {
+ const file = path.join(profile, "antigravity-acp", "brain", ...segments);
+ return fs
+ .makeDirectory(path.dirname(file), { recursive: true })
+ .pipe(Effect.andThen(fs.writeFileString(file, JSON.stringify(value))));
+ };
+ const writeTranscript = (
+ conversationId: string,
+ lines: ReadonlyArray<Record<string, unknown>>,
+ ) => {
+ const file = path.join(
+ profile,
+ "antigravity-acp",
+ "brain",
+ conversationId,
+ ".system_generated",
+ "logs",
+ "transcript.jsonl",
+ );
+ return fs