05 Errors & recovery · Hunk-level review
Accept or reject each change, or the whole set
Zed (agent panel) · Editor
The insight
Summarize first, then let people accept or reject at the smallest useful unit, with one control for the whole set.
Documented
from the sourceVisible in the image: Zed 1.27.0 right after the Zed Agent edited two files in a demo project. Above the message box, the Agent Panel's summary bar reads "Edits · 2 files · +43 −0", with one row per file (tests/test_textutils.py +32 −0, textutils.py +11 −0) and "Reject All" and "Keep All" buttons. In the center, the review tab "Review: Add input validation…" repeats "Reject All Alt-Shift-Z" and "Keep All Alt-Shift-Y" above a file header "test_textutils.py tests/ +32 −0" with "Open File Alt-Enter", followed by the added code in green hunks. Nothing has been kept or rejected yet. Observed on Zed 1.27.0, Nov 4, 2026.
- After the agent edits your project, the panel shows which files changed, how many, and how many lines.“the panel will surface which files, how many of them, and how many lines have been edited” — Reviewing Changes
- Review Changes opens a multi-buffer tab where you can accept or reject each hunk, or the whole set.“You can accept or reject each individual change hunk, or the whole set of changes made by the agent.” — Reviewing Changes
- An optional setting shows the same keep/reject hunk controls inline in single files.“Enable it by setting agent.single_file_review to true in your settings.” — Reviewing Changes
Our read
design interpretationWhy it works
The panel's summary bar shows how many files and lines changed, file by file. The review view (the Review Changes icon, Ctrl-Shift-R) then lets you decide hunk by hunk, and the whole-set option means you don't have to judge every hunk.
Trade-off
The whole-set buttons are in plain view in both the panel and the review tab. Keep and Reject for a single hunk show up only once your cursor is inside that hunk, so at first glance the smallest unit looks like the whole set.
Steal this
- Show a summary of what changed (files, lines) before any diff.
- Offer accept/reject per hunk and for the whole set.
Source
Zed docs: Agent Panel, Reviewing Changes
2026-11-04 · Docs re-checked Nov 4, 2026 (first accessed Oct 26); the docs page is undated. Captured Nov 4, 2026 on Zed 1.27.0 (the first stable release without agent checkpoints), Debian GNU/Linux 13 (trixie). This entry covers Review Changes only.
