mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-27 11:02:33 +01:00
d3bba51492
Update the published ACP Rust SDK from `5.4.0` to `5.5.1` and the schema from `1.19.0` to `1.21.2`. This follows the [protocol and schema changes since 1.19.0](https://github.com/agentclientprotocol/agent-client-protocol/compare/v1.19.0...v1.21.2), not just the [SDK API changes](https://github.com/agentclientprotocol/rust-sdk/compare/v5.4.0...v5.5.1). ACP v2 is in Preview; Zed still negotiates it only with `acp-beta` enabled. - **v1 plans and subagents:** Advertise the stable capabilities without `acp-beta`. Keep legacy checklists working. Let users stop a parent's work after the prompt RPC has returned, without treating the response as the end of its children's work. - **Session ownership and replay:** Historical child state, cancel permissions, and configuration from a v1 load are not current. Detach descendants when their parent is released. Don't show disconnected work as running, a repeated idle snapshot as another child completion, or an unknown stop reason as a success. - **v2 patches and forms:** Preserve compaction status when omitted and reset it to `in_progress` on `null`. Apply usage metadata as a top-level key patch independent of cost. Preserve the agent's field order in elicitation forms and their answers. - **v2 rendering:** Treat tool titles as plain text. Join adjacent text items across snapshots and chunks before rendering Markdown, while retaining each item's metadata and annotations. Keep v1 and native tool-title behavior unchanged. - **Recovery:** A lost prompt response does not prove the message failed. Tell users that the agent may already have acted on the input, including after reconnect. Do not resend it automatically. The client already correlates prompt echoes by message ID, scopes cancellation to foreground work, and enforces the v2 auth and MCP capability checks. The SDK handles tighter wire validation. This PR does not add Markdown rendering to description fields or introduce a keyed Retry action; those are separate UI decisions. Release Notes: - ACP agents can now show markdown plans and subagents.