[BUG] Antigravity IDE 2.28.0.0 — Broken UI styling and CSS stylesheets reporting zero CSS rules

[BUG] Antigravity IDE 2.28.0.0 — Broken UI styling and CSS stylesheets reporting zero CSS rules

Environment

  • Application: Google Antigravity IDE

  • Version: 2.28.0.0

  • Operating system: Windows

  • Installation path: C:\Users\DAYNOR\AppData\Local\Programs\antigravity\

Problem description

The Antigravity IDE interface is rendering incorrectly, with broken or missing styles. The application becomes difficult to use because the UI does not appear as expected.

The issue persists when running Antigravity from a different Windows user profile, so it does not appear to be limited to one Windows user’s profile.

Troubleshooting and observations

  1. Confirmed that Antigravity launches its embedded UI server.

  2. The local UI page loads at https://127.0.0.1:50257/.

  3. The following CSS resources return HTTP 200:

    • /compiled_tailwind.css

    • /jetbox.css

  4. Both CSS responses report the content type text/plain; charset=utf-8, rather than the expected text/css.

  5. The response bodies contain CSS-looking content. The compiled_tailwind.css response begins with a Tailwind CSS v4.2.2 license comment and CSS layer declarations.

  6. When inspecting the stylesheets, the browser reported cssRules: 0 for both stylesheets.

  7. Updating from version 2.27 to 2.28 previously encountered a .blockmap HTTP 404 error and a full-download net::ERR_SSL_PROTOCOL_ERROR.

Expected behavior

The application should load its UI and apply all stylesheets correctly.

Actual behavior

The UI appears incorrectly styled, even though the CSS resource requests return HTTP 200.

Questions

  • Could the text/plain content type prevent these stylesheets from being applied correctly?

  • Why would the browser report zero CSS rules for stylesheets whose responses contain CSS-looking content?

  • Is there a known issue with the embedded UI bundle or stylesheet delivery in version 2.28.0.0?

  • Is there a recommended repair or diagnostic procedure that does not require reinstalling Windows?

Attachments

I will attach screenshots showing the broken UI and, where available, the stylesheet inspection results.

Thank you for your help.

@Gabriel_Daynor_Moran The text/plain; charset=utf-8 response header is the exact cause of both the unstyled UI and the cssRules: 0 readout.

Here is the technical breakdown across all four of your questions, along with the 30-second Windows registry repair that resolves it without reinstalling Windows.

  1. Why text/plain Causes cssRules: 0 (Even When the Body Contains Valid CSS):
    Under the W3C CSSOM specification enforced by Chromium (Electron 39), when an HTML document renders in Standards Mode (<!DOCTYPE html>), the engine enforces strict MIME-type verification on external <link rel="stylesheet"> resources. When the local server returns Content-Type: text/plain instead of text/css, Chromium downloads the payload (HTTP 200) and displays the raw text in the Network preview tab, but refuses to parse the stylesheet into the CSS Object Model, leaving an empty CSSStyleSheet object (cssRules.length === 0).

  2. Why the Embedded UI Server Returns text/plain Across All Windows User Profiles:
    Antigravity’s local UI server (https://127.0.0.1``:<port>/) is hosted by a compiled Go binary (resources\bin\language_server.exe) using Go’s standard net/http.FileServer and mime.TypeByExtension(".css").

  • On Windows, Go’s mime package populates its extension lookup table at startup by reading the machine-wide Windows Registry key HKEY_CLASSES_ROOT\.css (HKLM\Software\Classes\.css) for the Content Type value.
  • When a third-party text editor, file-association utility, or installer removes or overwrites Content Type under HKCR\.css, Go’s file server cannot resolve .css in the registry and falls back to http.DetectContentType() (sniffing the first 512 bytes of the file).
  • Because /compiled_tailwind.css begins with a plain-text license comment (/*! tailwindcss v4.2.2 ... */), the 512-byte content sniffer classifies the payload as text/plain; charset=utf-8.
  • Because HKLM\Software\Classes\.css lives in the machine-wide registry hive (HKEY_LOCAL_MACHINE), the exact same failure occurs across every Windows user profile on the machine.
  1. Repair Procedure (No Windows Reinstall Required):

Step A: Verify & Restore the Windows .css MIME Registry Key (Primary Fix)
Open PowerShell (Run as Administrator) and check the current registry mapping:

Get-ItemProperty -Path "Registry::HKEY_CLASSES_ROOT\.css" | Select-Object "(default)", "Content Type", "PerceivedType"

If Content Type is missing or not set to text/css, restore the standard Windows MIME registration:

Set-ItemProperty -Path "Registry::HKEY_LOCAL_MACHINE\Software\Classes\.css" -Name "Content Type" -Value "text/css"
Set-ItemProperty -Path "Registry::HKEY_LOCAL_MACHINE\Software\Classes\.css" -Name "PerceivedType" -Value "text"
if (Test-Path "Registry::HKEY_CURRENT_USER\Software\Classes\.css") {
    Set-ItemProperty -Path "Registry::HKEY_CURRENT_USER\Software\Classes\.css" -Name "Content Type" -Value "text/css"
}

Step B: Flush the Interrupted Updater & Chromium Cache
Because your 2.27-to-2.28 update also hit a .blockmap 404 and ERR_SSL_PROTOCOL_ERROR, flush the cached text/plain HTTP responses and restart the background processes:

Stop-Process -Name "Antigravity*", "language_server*" -Force -ErrorAction SilentlyContinue
Remove-Item -Path "$env:LOCALAPPDATA\antigravity-updater" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item -Path "$env:APPDATA\Antigravity\Cache*" -Recurse -Force -ErrorAction SilentlyContinue

Relaunch Antigravity. When language_server.exe initialises, it will read Content Type = text/css from HKCR\.css, serve /compiled_tailwind.css and /jetbox.css with the text/css; charset=utf-8 header, and Chromium will parse the full rule set immediately.