Agent panel stuck on "Authentication Required" with no login button due to UNKNOWN service agentSessions DI Error

Environment:

  • OS: Ubuntu 20.04 LTS (x86_64)

  • Device: ThinkPad X220

  • App Version: Latest build (as of late Feb/early Mar 2026)

Steps to Reproduce:

  1. Install and launch Antigravity on Ubuntu 20.04.

  2. Successfully authenticate the main application via Google Auth (User profile correctly appears in the top right corner).

  3. Open the right-side Agent panel.

  4. Observe the UI state and check the Developer Tools Console (Ctrl+Shift+I).

Expected Behavior: The Agent panel should either automatically sync the global authentication state from the main app, or at the very least, successfully render a clickable “Log in / Sign in” button to trigger the auth flow.

Actual Behavior: The Agent panel gets permanently stuck on a blank “Authentication Required: Please sign in.” page. There is no button rendered to click. Meanwhile, the global login state is completely ignored by the Agent extension.

Root Cause Analysis (from Console Logs): Extensive network troubleshooting was performed (bypassing local proxies, resolving self-signed cert TLS EOFs via NODE_TLS_REJECT_UNAUTHORIZED=0). The Language Server and MCP initialize successfully:

[INFO]: LS lspClient started successfully

However, the frontend UI crashes due to a fatal Dependency Injection failure when trying to render the Agent view, missing the core session service:

JavaScript

ERR [createInstance] wre depends on UNKNOWN service agentSessions.: Error: [createInstance] wre depends on UNKNOWN service agentSessions. [cite: 93, 94]

Furthermore, the state synchronization fails due to an initialization order race condition:

JavaScript

[Extension Host] Failed to update user status Error: LanguageServerClient must be initialized first! [cite: 99, 100]

Conclusion: This appears to be a packaging/build issue or a severe race condition in the frontend React/Electron code for this specific release, where the agentSessions provider is not registered before the UI attempts to instantiate it, completely breaking the Agent’s rendering and authentication flow.

btw, i really need this device to help me code everything, i really love to code with this old pal, plz fix this bug