Antigraviti Bug

Hi Antigravity team,

I’m experiencing a critical issue where the Antigravity agent completely stops working when opened with my Next.js project.

Environment:

  • OS: macOS
  • Antigravity: latest version (freshly reinstalled)
  • Project: Next.js 14, ~1.3GB node_modules, 203MB .next folder
  • Plan: Ultra

Issue:
When I open my Grant Guru project and type any message to the agent, one of two things happens:

  1. The agent shows “generating…” for a split second, then goes blank with no response
  2. The server crashes with errors: “Antigravity server crashed unexpectedly”, “Restarting server failed”, “couldn’t create connection to server”

What I tried:

  • Reinstalled Antigravity completely
  • Deleted .claude folder
  • Removed .next folder (203MB)
  • Created .agignore file to exclude node_modules and .next
  • Developer: Reload Window
  • The same agent works perfectly on other smaller projects

Key observation:
The issue started after Claude Code (Anthropic) created a git worktree (.claude/worktrees/) inside my project directory during an agentic session. Even after removing the worktree and all related files, Antigravity still crashes on this specific project.

Workaround attempted:
Opening a different, smaller project works fine. The issue is specific to this large Next.js project.

Please advise. I have a product launch deadline on April 1st and cannot work on my project.

Hello @Damian_Tepowski ,

Welcome to AI Forum!

Thanks for addressing the issue and bringing this to our attention. Since standard troubleshooting hasn’t resolved the crashes on your Next.js project, please try these targeted steps:

  1. Deep-Clean Local Cache :
    Standard uninstalls often leave behind corrupted state files. Close the app and run this command in your macOS terminal:

rm -rf ~/Library/Application\ Support/Antigravity ~/Library/Caches/com.google.antigravity

  1. Clear Zombie Processes

The “Restarting server failed” error usually means a background process is hung.

  • Open Activity Monitor.
  • Search for Antigravity or node processes and Force Quit them
  1. Strict Indexing

Ensure your .agignore file is in the project root and explicitly includes these lines to prevent the agent from hanging on large directories:

node_modules/
.next/
.claude/

  1. Verify Project Logs

If the issue continues, please check your log file at:
~/Library/Logs/Antigravity/renderer.log
Look for any “LanguageServer” or “Connection” errors at the bottom of the file.

Please let us know if the issue still persists after trying these steps!

Hello Thatipamula,

Thank you for the detailed troubleshooting steps and your assistance.

I wanted to let you know that I have resolved the issue. Unfortunately, the steps you outlined did not work in this case. The solution ended up being deleting the project entirely and re-cloning it from the repository.

This certainly confirms the necessity of always making backups!

Thanks again for your help.

Best,

Damian Tępowski

In my case, the only solution was to downgrade the version of the Claude Code extension in Antigravity.