[Antigravity IDE] Dev Container: Remote server installation fails silently

I’ve been debugging similar issue on my Mac Apple Silicon deeply and can confirm this is not a user/container misconfiguration, but a bug in Antigravity’s remote server bootstrap script.

[Info   - 12:03:43.311] Found container ID: d37cb6f228788ae9799bdb3429f314966b1a2ebb4f2230d50d41a77e523f331c

[Info   - 12:03:43.311] Reading devcontainer configuration with command: "/Applications/Antigravity.app/Contents/Frameworks/Antigravity Helper (Plugin).app/Contents/MacOS/Antigravity Helper (Plugin)" "/Applications/Antigravity.app/Contents/Resources/app/extensions/antigravity-dev-containers/dist/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js" read-configuration --workspace-folder "/Users/marceloarevalos/Projects/others/trading_bot" --container-id "d37cb6f228788ae9799bdb3429f314966b1a2ebb4f2230d50d41a77e523f331c" --config "/Users/marceloarevalos/Projects/others/trading_bot/.devcontainer/devcontainer.json"

[Info   - 12:03:43.490] Finished Read Dev Container Configuration.

[Info   - 12:03:43.491] Remote user: dev-user

[Info   - 12:03:43.491] Installing remote server in container...

…

[Info   - 12:03:44.163] Finished installing remote server in container. Output: Waiting for lock...

Lock acquired, proceeding with installation.

Error need wget to download server binary

This error does not necessarily mean that wget is missing.
It comes from a bug in Antigravity’s remote server bootstrap script, specifically in how it detects whether wget is available.

Problematic code (from the installer script)

if [ ! -z $(which wget) ]; then
wget …
else
echo “Error need wget to download server binary”
print_install_results_and_exit 1
fi

Why this fails (even when wget is installed)

  1. which is not POSIX and not guaranteed to exist

  2. In non-interactive, sanitized shells (typical for devcontainers):

    • which may not be present
    • or not in $PATH
  3. When which is missing, this expands to:

$(which wget) → ""
  1. The script does not check the exit code, only string emptiness

  2. Missing robust fallback logic

For this case Antigravity only needs to change one line in the bootstrap script:


- if [ ! -z $(which wget) ]; then

+ if command -v wget >/dev/null 2>&1; then

Uses a shell buildtin
works in minimal environments