Documented entries use credited imagery cleared for publication · Concept entries are illustrative
AgentUI Gallery

05 Errors & recovery · Hunk-level review

Accept or reject each change, or the whole set

Zed (agent panel) · Editor

Zed editor after an AI agent edited two files. A summary bar in the left Agent Panel reads "Edits · 2 files · +43 −0" with a row per file and Reject All and Keep All buttons. The center review tab shows the same Reject All and Keep All controls above green added code in tests/test_textutils.py.

Swipe to pan

Screenshot: original capture by AgentUI Gallery's AI assistant, directed by Summer Ordoñez, on Nov 4, 2026, for commentary. Cropped, otherwise unmodified. Software shown: Zed 1.27.0, © Zed Industries, Inc., licensed under GPL-3.0-or-later. Product page: https://zed.dev. The GPL applies to the Zed software, not to this screenshot. Zed is a trademark of Zed Industries, Inc.; AgentUI Gallery is not affiliated with or endorsed by Zed Industries, Inc. Software license · Credits & takedown
Close-up of Zed's review tab with the cursor inside the first added hunk of tests/test_textutils.py. Small "Reject" and "Keep Ctrl-Alt-Y" buttons sit at the hunk's top-right, below the tab toolbar's "Reject All Alt-Shift-Z" and "Keep All Alt-Shift-Y".

Swipe to pan

With the cursor inside a hunk, per-hunk "Reject" and "Keep" (Ctrl-Alt-Y) appear at its top-right. Cropped from a second capture of the same session, Nov 4, 2026; credit as above.

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 source

Visible 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.

  1. 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
  2. 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
  3. 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 interpretation

Why 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.

More entries