Skip to content

Bug: Chat panel unresponsive, fails with "workspace infos is nil" when repository uses worktreeconfig (Conflict with Claude Code) #1220

@sai4321

Description

@sai4321

Environment:
(Hint: "Report Extension Issue on Github" command will fill these out for you.)

Version information

版本: Antigravity
認可: 1.21.6
日期: 1.107.0 (user setup)
Electron: 497c5f20052b4227f87cf8e71e2a9328ca9a6b66
ElectronBuildId: 2026-03-25T00:17:48.552Z
Chromium: 39.2.3
Node.js: 142.0.7444.175
V8: 22.21.1
OS: 14.2.231.21-electron.0

Cloud SDK: N/A

Skaffold: N/A

Kubectl: N/A

Description:
When working in a Git repository that utilizes Git Worktrees (specifically, heavily used by the Anthropic Claude Code CLI), the Gemini Code Assist chat panel completely stops responding.

Checking the Output logs reveals that the extension's underlying Git parser fails to handle the worktreeconfig extension, causing the workspace resolution to fail and return nil.
Repro step:
Initialize a Git repository.

Use Anthropic's claude CLI, which automatically creates Git Worktrees for code changes.

The .git/config is automatically updated to use core.repositoryformatversion = 1 and extensions.worktreeconfig = true.

Attempt to send a message in the Gemini Code Assist chat panel in VS Code.

The panel hangs indefinitely with no response.
Error Logs:
[info] E0328 03:48:12.694469 ... agent state for conversation not found
[info] W0328 03:48:12.694987 ... Failed to resolve workspace infos, continuing without: core.repositoryformatversion does not support extension: worktreeconfig
[info] E0328 03:48:12.694987 ... non-fatal: failed to resolve workspace infos for cascade: core.repositoryformatversion does not support extension: worktreeconfig
[info] E0328 03:48:12.731169 ... workspace infos is nil
Expected Behavior:
The extension should either correctly parse worktreeconfig or gracefully ignore the unsupported Git extensions and fall back to a basic workspace context, rather than completely breaking the chat functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions