diff --git a/apps/server/src/provider/AntigravityInstallation.test.ts b/apps/server/src/provider/AntigravityInstallation.test.ts index dcd3e40030093..a9d98adf217ab 100644 --- a/apps/server/src/provider/AntigravityInstallation.test.ts +++ b/apps/server/src/provider/AntigravityInstallation.test.ts @@ -1032,6 +1032,11 @@ it.layer(Layer.mergeAll(NodeServices.layer, NodeCrypto.layer))("Antigravity inst executablePath: alias, harnessPath: null, }); + expect(yield* installation.resolve(undefined, { PATH: cliDirectory })).toMatchObject({ + executablePath: alias, + harnessPath: null, + source: "path", + }); expect(yield* installation.resolve(other).pipe(Effect.flip)).toMatchObject({ operation: "resolve", }); diff --git a/apps/server/src/provider/AntigravityInstallation.ts b/apps/server/src/provider/AntigravityInstallation.ts index feb412867f2e4..79fbb5cb92950 100644 --- a/apps/server/src/provider/AntigravityInstallation.ts +++ b/apps/server/src/provider/AntigravityInstallation.ts @@ -401,9 +401,12 @@ export const makeAntigravityInstallation = Effect.fn("AntigravityInstallation.ma ); return installed; } - for (const candidate of yield* commandCandidates(names.executable, processEnvironment)) { - const selected = yield* fromExternal(candidate, "path"); - if (selected) return selected; + // Only `agy` is looked up on PATH: `antigravity` there is usually the IDE launcher. + for (const command of [names.executable, "agy"]) { + for (const candidate of yield* commandCandidates(command, processEnvironment)) { + const selected = yield* fromExternal(candidate, "path"); + if (selected) return selected; + } } return yield* installationError( "resolve", diff --git a/docs/user/providers-antigravity.md b/docs/user/providers-antigravity.md index 8a284a11e782e..0aa6392a39b84 100644 --- a/docs/user/providers-antigravity.md +++ b/docs/user/providers-antigravity.md @@ -58,9 +58,9 @@ space for downloading and staging an update. ### Use a manual installation Install [Antigravity CLI](https://antigravity.google/docs/getting-started) on the environment. -Set **Binary path** to its `agy` executable and update it yourself. -Leave the field blank to use the managed runtime, or a compatible executable on -`PATH` if no managed runtime is installed. +With **Binary path** blank, T3 uses the managed runtime, or `agy` on `PATH` if no +managed runtime is installed. Otherwise set **Binary path** to the `agy` +executable. Update a manual installation yourself. ## Update the managed runtime