diff --git a/apps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts b/apps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts index 55b313a9d3adc..ad6987a92f43d 100644 --- a/apps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts +++ b/apps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts @@ -455,6 +455,8 @@ describe("AcpRegistryAdapterV2", () => { it.effect.each([ { commandPath: "/root/.local/bin/agy", offers: 1 }, { commandPath: "C:\\tools\\agy.exe", offers: 1 }, + { commandPath: "/Users/me/.t3/tools/antigravity-cli/1.5.12/antigravity", offers: 1 }, + { commandPath: "C:\\tools\\antigravity.exe", offers: 1 }, { commandPath: "/opt/bin/other-agent", offers: 0 }, ])("continues late output only for agy ($commandPath)", ({ commandPath, offers }) => Effect.gen(function* () { diff --git a/packages/provider-acp-registry/src/server/adapter.ts b/packages/provider-acp-registry/src/server/adapter.ts index 8eb5dbb30b8cc..050abefbe4fed 100644 --- a/packages/provider-acp-registry/src/server/adapter.ts +++ b/packages/provider-acp-registry/src/server/adapter.ts @@ -199,7 +199,9 @@ export const makeAcpRegistryAdapterV2 = Effect.fn("makeAcpRegistryAdapterV2")(fu const isDevin = registryAgentId === "devin"; const isAntigravityCli = options.settings.source === "local" && - /^agy(\.exe|\.cmd)?$/i.test(options.settings.commandPath.split(/[\\/]/).pop() ?? ""); + /^(?:agy|antigravity)(\.exe|\.cmd)?$/i.test( + options.settings.commandPath.split(/[\\/]/).pop() ?? "", + ); const isOmp = options.settings.source === "local" && /^omp(\.exe|\.cmd)?$/i.test(options.settings.commandPath.split(/[\\/]/).pop() ?? ""); @@ -311,7 +313,7 @@ export const makeAcpRegistryAdapterV2 = Effect.fn("makeAcpRegistryAdapterV2")(fu // Hermes replies on the root session when a background process it started exits; no // prompt response follows, so the continuation ends on the deferred-finalize debounce. // Hermes is not in the public registry and may run through a wrapper, so only its - // initialize reply identifies it. agy does the same and is known by its command. + // initialize reply identifies it. agy / antigravity does the same and is known by its command. enablePostSettleContinuation: (initializeResult) => isAntigravityCli || isHermes(initializeResult), deferFinalizeForBackgroundWork: (initializeResult) =>