Files
zed/crates/agent_servers
Ben Brandt ac22c37e86 agent_servers: Retry ACP initialization with v1 after a v2 decode failure (#67357)
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
2026-11-23 11:30:26 +00:00
..