Antigravity 1.20.5 (macOS, Apple Silicon)
What happens: The language server crashes repeatedly with a nil pointer dereference during agent sessions. The server restarts automatically but crashes again within minutes when the agent uses the grep/search tool.
Stack trace:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2]
goroutine [running]:
WorkspaceInfo.WorkspaceFolderIsGitRoot({0x0, {{}, {0x0, 0x0}, {0x0, 0x0}}})
third_party/jetski/fs/workspace_manager/workspace_client.go:60
GrepHandler.Handle(...)
third_party/jetski/cortex/handlers/grep_handler.go:551
Root cause: GrepHandler calls WorkspaceFolderIsGitRoot without checking if the workspace is nil first. During long agent sessions the workspace context drops to null, triggering the crash.
Steps to reproduce:
-
Open a folder in Antigravity
-
Run a long agent task that involves multiple grep/search operations
-
Language server crashes with code 2 after several minutes
Expected: Server handles nil workspace gracefully without crashing Workaround: None permanent — server restarts but crashes again on next grep call