Antigravity agent becomes unresponsive in repositories with extensions.worktreeconfig in git config

Description

The Antigravity agent silently fails and becomes completely unresponsive when opening a git repository that has extensions.worktreeconfig=true in .git/config while core.repositoryformatversion is set to 0.

This is a common configuration left behind by other AI coding tools (e.g., Claude Code) after creating and removing git worktrees. Standard git CLI handles this combination without issues, but Antigravity’s language server treats it as a fatal error.

Error from logs

Found in exthost/google.antigravity/Antigravity.log:

E0331 23:47:37.518469 25954 interceptor.go:74] /exa.language_server_pb.LanguageServerService/GetAgentScripts (unknown): core.repositoryformatversion does not support extension: worktreeconfig
E0331 23:47:37.518557 25954 log.go:398] core.repositoryformatversion does not support extension: worktreeconfig
W0331 23:47:37.519821 25954 cascade_manager.go:2894] Failed to resolve workspace infos, continuing without: core.repositoryformatversion does not support extension: worktreeconfig
E0331 23:47:37.519909 25954 log.go:398] non-fatal: failed to resolve workspace infos for cascade: core.repositoryformatversion does not support extension: worktreeconfig
E0331 23:47:37.623063 25954 log.go:398] workspace infos is nil

Steps to reproduce

  1. Add the following to any git repository’s .git/config:

    [extensions]    worktreeconfig = true
    
    

    (while core.repositoryformatversion remains 0)

  2. Open the repository in Antigravity

  3. Try to use the agent — it will not respond

Expected behavior

The agent should either:

  • Gracefully ignore the unsupported extension and continue working, or

  • Display a clear error message explaining the issue

Actual behavior

The agent silently fails with no user-facing error. It appears to load normally but never responds to any prompt.

Workaround

Remove the config entry from affected repositories:

git config --local --unset extensions.worktreeconfig

Environment

  • Antigravity: v1.20.5 (macOS)

  • macOS (Darwin 25.3.0, Apple Silicon)

5 Likes

Thanks, removing the config makes it work.

3 Likes

Faced same issue. Thanks for reporting and providing a fix.

2 Likes