Ben Brandt e96ffb0fd3 acp_thread: Show ACP session messages in the transcript (#66028)
The RFD reports messages between sessions, such as a parent delegating
work to its subagent, as `session_message` and `session_message_chunk`
updates. Each transcript gets its own view: the parent's outgoing
message, the subagent's incoming one. Zed dropped both.

- **Transcript entry.** Session messages are a new
`AgentThreadEntry::SessionMessage`, kept separate from user and
assistant messages. They reuse the keyed-message path: an upsert
replaces content, a chunk appends, and a message can start with a chunk.
Participants come only from `session_message` upserts: one that an
upsert omits keeps its earlier value, and a known participant cannot
change. Chunks carry only content, so the participant fields that schema
1.12.0 still has on chunks are ignored, following the RFD revision in
agentclientprotocol/agent-client-protocol#2465. v1 replaces message
metadata where v2 patches it by key.
- **Row.** It reads "To <recipient>" or "From <sender>". A subagent is
named with its parent's title for it, as on its permission card, and the
root session as "Main Agent". The name opens that session's thread; a
session the conversation never learned about shows as "Unavailable
Session" without a link.
- **v1 stays off.** Like `subagent_update`, v1 session messages are only
applied when Zed advertised the `subagents` client capability, which it
does not do yet.
- **Resume replay test.** A separate commit adds
`v2_resume_replay_delivers_subagent_history`. It confirms that a
subagent's history replayed during a v2 resume reaches the subagent.
#65976's description said this wasn't handled; resume registers the
parent before sending `session/resume`, so it works.

Follow-up: the same RFD revision adds optional `senderMessageId` and
`recipientMessageId` so each view can name the other. Once a schema
release includes them, the row will jump to the linked entry instead of
opening the thread, and per-delegation subagent cards can build on the
same links.

Release Notes:

- N/A
2026-10-23 12:43:26 +00:00
…
…
…
…
…
…
…
…
…
…
…
…

Zed

Zed CI

Welcome to Zed, a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.


Installation

On macOS, Linux, and Windows you can download Zed directly or install Zed via your local package manager (macOS/Linux/Windows).

Other platforms are not yet available:

Developing Zed

Contributing

See CONTRIBUTING.md for ways you can contribute to Zed.

Also... we're hiring! Check out our jobs page for open roles.

Licensing

Zed source code is licensed primarily under GPL-3.0-or-later, with Apache-2.0 components where marked.

License information for third party dependencies must be correctly provided for CI to pass.

We use cargo-about to automatically comply with open source licenses. If CI is failing, check the following:

  • Is it showing a no license specified error for a crate you've created? If so, add publish = false under [package] in your crate's Cargo.toml.
  • Is the error failed to satisfy license requirements for a dependency? If so, first determine what license the project has and whether this system is sufficient to comply with this license's requirements. If you're unsure, ask a lawyer. Once you've verified that this system is acceptable add the license's SPDX identifier to the accepted array in script/licenses/zed-licenses.toml.
  • Is cargo-about unable to find the license for a dependency? If so, add a clarification field at the end of script/licenses/zed-licenses.toml, as specified in the cargo-about book.

Sponsorship

Zed is developed by Zed Industries, Inc., a for-profit company.

If you’d like to financially support the project, you can do so via GitHub Sponsors. Sponsorships go directly to Zed Industries and are used as general company revenue. There are no perks or entitlements associated with sponsorship.

S
Description
No description provided
Readme 1.5 GiB
Languages
Rust 95.5%
JSON-with-Comments 2.3%
Python 0.8%
Inno Setup 0.3%
Tree-sitter Query 0.3%
Other 0.3%