If anyone is experiencing the “local chrome mode is only supported on Linux” bug, try disabling Persistent Language Server. cmd+shift+P and Toggle Persistent Language Server and Reload Window. When this is enabled the browser agent can fail silently.
Antigravity is injecting the --use_local_chrome flag into the language_server_macos_arm binary when launching from a local project directory. This flag is explicitly unsupported on macOS (“local chrome mode is only supported on Linux”).
To make matters worse, if Persistent Language Server is enabled, the IDE refuses to kill the misconfigured process. You end up with a “Zombie” server that ignores setting changes (.vscode/settings.json) because the process is already locked into a failure state from the initial boot.
STEPS TO REPRODUCE
-
Open any local project on macOS.
-
Enable Persistent Language Server in User Settings.
-
Trigger any Browser Agent action (or click the Chrome icon).
-
Observe:
ConnectError: [unknown] Failed to smart open browser: local chrome mode is only supported on Linux.