Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Antigravity delegates get your MCP tools on the first turn #48020 (GitHub #48019)

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/48019/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

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

x
0 of 5 viewed, 5 left
48 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.tsModified
View file
@@ -375,6 +375,54 @@
});
​
+describe("AntigravityAdapterV2 profile MCP wait", () => {
+ it.effect("Stop during the wait settles the prompt without sending it to agy", () =>
+ Effect.gen(function* () {
+ const fileSystem = yield* FileSystem.FileSystem;
+ const path = yield* Path.Path;
+ const profileDirectory = yield* fileSystem.makeTempDirectoryScoped();
+ yield* fileSystem.makeDirectory(path.join(profileDirectory, "config"));
+ yield* fileSystem.writeFileString(
+ path.join(profileDirectory, "config", "mcp_config.json"),
+ '{"mcpServers":{"slow":{"command":"x"}}}',
+ );
+ type RuntimeService = AcpSessionRuntime.AcpSessionRuntime["Service"];
+ const calls: Array<string> = [];
+ const inner = {
+ prompt: () =>
+ Effect.sync(() => calls.push("prompt")).pipe(Effect.as({ stopReason: "end_turn" })),
+ cancel: Effect.sync(() => void calls.push("cancel")),
+ } as unknown as RuntimeService;
+ const flavor = makeAntigravityAcpAdapterFlavor({
+ instanceId: ProviderInstanceId.make("antigravity-mcp-wait-test"),
+ random: undefined as never,
+ fileSystem,
+ path,
+ host: undefined as never,
+ selfInvocation: undefined as never,
+ makeRuntime: () => Effect.succeed(inner),