Critical Issue: WSL Connection Failure (Error 1006) and "agentSessions" Service Dependency Error

Hi everyone,

I am experiencing a cascading failure in Antigravity that prevents me from using the editor with WSL. It appears to be a combination of internal service registration failures and connection timeouts.

The main issues are:

  1. Internal Dependency Failure: The logs show a core service failure: [createInstance] fZ depends on UNKNOWN service agentSessions. This seems to prevent other components from initializing.
  2. WSL Connection Timeout: I am unable to connect to my WSL instance. The editor reports: CodeExpectedError: WebSocket close with status code 1006.
  3. Missing Commands: Several built-in commands are failing to register, specifically antigravity.getChromeDevtoolsMcpUrl, which causes repeated errors in the Extension Host.
  4. Language Server Error: The Extension Host fails with Error: LanguageServerClient must be initialized first!, likely as a result of the service issues mentioned above.

System Environment:

  • OS: Windows 11
  • WSL Distro: Ubuntu 22.04
  • Antigravity Version: 1.16.5

Troubleshooting steps already taken:

  • Ran wsl --shutdown and restarted the environment.
  • Cleared the application cache.
  • Verified that the standard VS Code can still connect to the same WSL instance (it works there).

Relevant Log Snippet:

2026-02-17 22:15:32.976 [error] [Window] [Extension Host] Failed to update user status Error: LanguageServerClient must be initialized first!
2026-02-17 22:15:35.229 [error] [Window] [Extension Host] [ExtensionServer] Failed to get Chrome DevTools MCP URL: Error: command 'antigravity.getChromeDevtoolsMcpUrl' not found
2026-02-17 22:15:45.793 [error] [Window] [createInstance] fZ depends on UNKNOWN service agentSessions.: Error: [createInstance] fZ depends on UNKNOWN service agentSessions.
2026-02-17 22:16:00.079 [error] [Window] CodeExpectedError: WebSocket close with status code 1006

Is this a known bug with the current build? It seems like a core service (agentSessions) is missing from the bundle or failing to register during startup, which is breaking the WSL bridge and the Language Server.

Any guidance on how to resolve this or if a clean reinstall is required would be greatly appreciated.

1 Like