mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-27 19:09:54 +01:00
ac22c37e86
Google Antigravity ACP 1.5.2 responds to a v2 `initialize` request with `protocolVersion: 2` but uses the v1 fields `agentInfo` and `agentCapabilities`. It returns a usable v1 response when asked for v1 directly. If Zed receives a matching JSON-RPC success response but cannot decode the initialization result, close the first connection and retry once on a fresh v1 process. This applies to any agent, without checking for Antigravity-specific fields. An error returned by the agent, an invalid envelope, or an exit without a reply does not by itself trigger the new retry. If v1 also fails, preserve both diagnostics. Release Notes: - N/A