# acp: Add ACP context compaction support \(\#64081\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/d1dae815f230441b0154b2b2dd1c0340e0247ea0)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: d1dae815f230441b0154b2b2dd1c0340e0247ea0

Requested commit: d1dae815f230441b0154b2b2dd1c0340e0247ea0

Commit: d1dae815f230441b0154b2b2dd1c0340e0247ea0

Tree: 017cdf9099d5dab1df05901ba739bbb9b1f19614

Author: Ben Brandt

Committer: GitHub

## Message

```
acp: Add ACP context compaction support (#64081)

Add support for ACP context-compaction updates and streamed summaries.
The ACP beta flag gates only the capability advertised to external ACP
agents. Native Zed-agent compaction (manual and automatic), including
the shared rendering, search, and export behavior, remains available
regardless of that flag.

- Apply updates by compaction ID without moving their timeline entries,
preserving omitted/null/replacement semantics for summaries and errors.
- Retain rich summary content and show explicit placeholders for
unsupported content instead of silently dropping it.
- Render progress, completion, failure, cancellation, and unknown
statuses. Expanded summaries and literal error details participate in
thread search, and Markdown exports preserve status and details.
- Keep native compaction compatible: failed retry attempts become
terminal, and cancellation is delivered before the stop event even when
the bridge has not yet applied the queued start event. Preserve native
streaming and save/reload behavior.

Release Notes:

- N/A
```

## Parents

- [d89e9c2124b2786a390c7a451c7488601b4da2e1](https://git.cafe/gitcafe/zed/commit/d89e9c2124b2786a390c7a451c7488601b4da2e1?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/d1dae815f230441b0154b2b2dd1c0340e0247ea0?format=markdown)
