Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(antigravity): Show background command summaries and live output #40687

Openmwolson(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/40687/headopened View on GitHub

Showing 13 changed files with 140 additions and 0 deletions (loading 10).

x
0 of 13 viewed, 13 left
82 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.tsModified
View file
@@ -50,6 +50,7 @@
import type * as AcpSessionRuntime from "@t3tools/provider-acp/server/AcpSessionRuntime";
import { makeAcpAdapterV2 } from "@t3tools/provider-acp/server/adapter";
import { makeAntigravityAcpRuntime } from "../../provider/acp/AntigravityAcpSupport.ts";
+import { commandStep } from "../../provider/acp/AntigravityChildWork.testkit.ts";
import { normalizeAntigravitySessionUpdate } from "../../provider/acp/AntigravityProtocol.ts";
import { ANTIGRAVITY_SIGN_IN_REQUIRED_MESSAGE } from "../../provider/antigravityAuthSupport.ts";
import * as IdAllocator from "@t3tools/provider-core/server/IdAllocator";
@@ -2426,6 +2427,87 @@
}).pipe(Effect.provide(layerSession)),
+ it.live(
+ "tails background task-<idx>.log into command_output.delta and hydrates toolSummary from SQLite",
+ () =>
+ Effect.gen(function* () {
+ const fileSystem = yield* FileSystem.FileSystem;
+ const path = yield* Path.Path;
+ const NodeSqlite = yield* Effect.promise(() => import("node:sqlite"));
+ const profile = yield* fileSystem.makeTempDirectoryScoped({ prefix: "t3-ag-cmd-tail-" });
+ const acpDir = path.join(profile, "antigravity-acp");
+ const conversationsDir = path.join(acpDir, "conversations");
+ const tasksDir = path.join(acpDir, "brain", "mock-session-1", ".system_generated", "tasks");
+ yield* fileSystem.makeDirectory(conversationsDir, { recursive: true });
+ yield* fileSystem.makeDirectory(tasksDir, { recursive: true });
+ const db = new NodeSqlite.DatabaseSync(path.join(conversationsDir, "mock-session-1.db"));
+ db.exec(
+ "CREATE TABLE steps (idx integer PRIMARY KEY, step_type integer NOT NULL DEFAULT 0, step_format integer NOT NULL DEFAULT 0, step_payload blob)",
+ );