[Bug + Workaround] Language Server crash-loop on projects with .git folder — .antigravityignore ineffective

Environment

  • OS: Windows 11 x64

  • Antigravity: latest (April 2026)

  • Project type: Node.js / Vite / Supabase (cmms project)

Description

Opening a project that contains a .git folder causes the Language Server to enter a persistent crash-loop. The log shows LS update error: Canceled immediately after the server attempts to load AI models. The IDE becomes unusable — chat never initializes.

Steps to reproduce

  1. Open any project with a .git folder at workspace root

  2. Observe Language Server log → LS update error: Canceled

  3. Server enters crash-loop, AI agent never starts

What does NOT work

  • Adding .git/ to .antigravityignore → crash persists

  • Adding .git/ to files.watcherExclude and files.exclude in .vscode/settings.json → crash persists

  • git gc --aggressive → crash persists

The LSP appears to have a separate code path that reads .git/config directly, bypassing all exclusion configurations.

Confirmed workaround Remove or move the .git folder outside the workspace root. Language Server initializes cleanly in 448ms with no errors.

This is consistent with the existing report Language_server holds .git/index.lock indefinitely and the recent worktreeConfig crash — all point to the same root cause: the LSP actively parses .git internals rather than treating it as an opaque directory.

Request: Exclude .git from all LSP processing paths, or at minimum make .antigravityignore actually block LSP git integration, not just file indexing.

Got same problem for few months. Can confirmed that remove .git and re-name .git-backup solve my “unable to chat“ problem.