Skip to content

[Bug]: Antigravity does not discover the native CLI on PATH #37658

Closed as not planned

Description

@StiensWout

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Install the Antigravity agy CLI so it is on PATH, with no managed Antigravity runtime installed by T3 Code.
  2. Leave the Antigravity provider's Binary path blank.
  3. Start a thread with Antigravity.

Expected behavior

T3 Code finds the agy CLI on PATH and uses it.

Actual behavior

T3 Code reports that the Antigravity runtime is not installed. Setting the Binary path to the same CLI by hand works.

Impact

Minor bug or occasional failure. Anyone who has only the native agy CLI and no managed runtime, on every start until they set the Binary path by hand.

Version or commit

main at d427894aa1. The cause is at apps/server/src/provider/AntigravityInstallation.ts:404.

Environment

Linux x64, the repository's own tests.

Logs or stack traces

expected { _id: 'Option', _tag: 'None' } to match object
Automated repro

Fails in 2 of 2 runs on main: apply the patch with git apply, then run the command.

diff --git a/apps/server/src/provider/AntigravityInstallation.test.ts b/apps/server/src/provider/AntigravityInstallation.test.ts
index dcd3e40030..1a27eda297 100644
--- a/apps/server/src/provider/AntigravityInstallation.test.ts
+++ b/apps/server/src/provider/AntigravityInstallation.test.ts
@@ -1032,6 +1032,12 @@ it.layer(Layer.mergeAll(NodeServices.layer, NodeCrypto.layer))("Antigravity inst
           executablePath: alias,
           harnessPath: null,
         });
+        expect(
+          yield* installation.resolve(undefined, { PATH: cliDirectory }).pipe(Effect.option),
+        ).toMatchObject({
+          _tag: "Some",
+          value: { source: "path", harnessPath: null },
+        });
         expect(yield* installation.resolve(other).pipe(Effect.flip)).toMatchObject({
           operation: "resolve",
         });
./node_modules/.bin/vp test run apps/server/src/provider/AntigravityInstallation.test.ts -t 'accepts the agy CLI without a harness sibling'

Workaround

No response

Activity

  1. added
    vouch:trusted
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions