Open Browser (Preview) button do not working on Antigravity using a devcontainer

The Antigravity button in the devcontainer mode is not working, everything works fine using in normal mode.

{
  "name": "name-base",
  "dockerComposeFile": "docker-compose.yml",
  "service": "app",
  "workspaceFolder": "/workspaces/name-base",
  "remoteUser": "vscode",
  "remoteEnv": {
    "PYTHONPATH": "/workspaces/name-base"
  },
  "postCreateCommand": "python3 -m pip install --upgrade pip build setuptools wheel"
}
services:
  app:
    build:
      context: ..
      dockerfile: .devcontainer/Dockerfile
    volumes:
      - ..:/workspaces/name-base:cached
    command: sleep infinity
    env_file:
      - ../.env
    ports:
      - "8001:8001"
      - "4200:4200"
    depends_on:
      db:
        condition: service_healthy

  db:
    image: postgres:16-alpine
    restart: unless-stopped
    volumes:
      - postgres-data:/var/lib/postgresql/data
    env_file:
      - ../.env
    ports:
      - "5432:5432"
    healthcheck:
      test:
        - CMD-SHELL
        - pg_isready -U ${POSTGRES_USER:-name_base_user} -d ${POSTGRES_DB:-name_base_db}
      interval: 10s
      timeout: 5s
      retries: 5

volumes:
  postgres-data:


1 Like

+1. Also have not been able to launch Antigravity browser from devcontainers.

In my case, the button works, but then the agent is not able to connect to the browser, as if the extension was not installed. Is there an update on this?

Same to me. The launcher button does nothing and when the agent tries to launch it, it just fails.