Files
zed/crates/sidebar
Ben Brandt d3bba51492 Update ACP SDK to 5.5.1 and align Zed with schema 1.21.2 (#67291)
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.
2026-11-23 10:27:18 +00:00
..
2026-09-17 08:49:31 +00:00