Files
zed/crates
Ben Brandt dff535449c acp_thread: Use v2 content for outbound prompts (#65165)
Carry SDK v2 content through outbound composition, drafts, queues, and
submissions. Shared prompt inputs use v2 requests; existing v1/native
adapters still own wire conversion. **This does not enable a v2 backend
or change protocol selection.**

- Preserve full source in drafts and submission records, including
unknown v2 payloads and metadata. Native draft storage reads valid
legacy JSON without a database version bump.
- Keep legacy turn-completion responses distinct from v2 acceptance
receipts. Receipt transports receive exact v2 content without a legacy
representability gate.
- Lower complete requests only at v1/native adapter entry. Borrowed,
transport-aware preflight rejects before turn cancellation, optimistic
history, queue removal/processing effects, or backend retry.
- Keep unsupported composer/queue source authoritative while rendering a
read-only projection. Prevent projection autosave/resend, including
queue blur and recovery/authentication restoration. An explicit
**Discard draft** action clears and unlocks a protected composer.

## Review guide

- [Shared transport and receipt
contracts](https://github.com/zed-industries/zed/blob/cf591b00a001c412e6f5b20242da233877b19469/crates/acp_thread/src/connection.rs#L203),
[request
lowering](https://github.com/zed-industries/zed/blob/cf591b00a001c412e6f5b20242da233877b19469/crates/acp_thread/src/content.rs#L4),
and [source
ownership](https://github.com/zed-industries/zed/blob/cf591b00a001c412e6f5b20242da233877b19469/crates/acp_thread/src/submission.rs#L65).
- [Core send/retry
preflight](https://github.com/zed-industries/zed/blob/cf591b00a001c412e6f5b20242da233877b19469/crates/acp_thread/src/acp_thread.rs#L6049);
actual
[v1](https://github.com/zed-industries/zed/blob/cf591b00a001c412e6f5b20242da233877b19469/crates/agent_servers/src/acp.rs#L1879)
and
[native](https://github.com/zed-industries/zed/blob/cf591b00a001c412e6f5b20242da233877b19469/crates/agent/src/agent.rs#L2835)
adapters.
- [Queued
dispatch](https://github.com/zed-industries/zed/blob/cf591b00a001c412e6f5b20242da233877b19469/crates/agent_ui/src/conversation_view/thread_view.rs#L2612),
[queue blur
preservation](https://github.com/zed-industries/zed/blob/cf591b00a001c412e6f5b20242da233877b19469/crates/agent_ui/src/conversation_view/thread_view.rs#L2539),
and [explicit draft
discard](https://github.com/zed-industries/zed/blob/cf591b00a001c412e6f5b20242da233877b19469/crates/agent_ui/src/conversation_view/thread_view.rs#L4926).

- [Native steering
preflight](https://github.com/zed-industries/zed/blob/cf591b00a001c412e6f5b20242da233877b19469/crates/agent_ui/src/conversation_view/thread_view.rs#L2595)
also gates the end-at-boundary flag; the existing test checks the actual
native flag for supported and unsupported source.

Release Notes:

- N/A
2026-10-05 12:56:38 +00:00
..
…
…
2026-10-05 07:20:42 +00:00
…