Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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* () {
Expand Down
6 changes: 4 additions & 2 deletions packages/provider-acp-registry/src/server/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() ?? "");
Expand Down Expand Up @@ -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) =>
Expand Down
Loading