# Enable review comments in branch diff view \(\#46951\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 24b7e3edb577e123bd2a4a6cd16ec7cfa1c98e03

Requested commit: 24b7e3edb577e123bd2a4a6cd16ec7cfa1c98e03

Commit: 24b7e3edb577e123bd2a4a6cd16ec7cfa1c98e03

Tree: 1e9c5bdf56ef53d11bc98ec088bb60557ad10fb4

Author: Richard Feldman

Committer: GitHub

## Message

```
Enable review comments in branch diff view (#46951)

<img width="611" height="102" alt="Screenshot 2026-01-15 at 4 18 30 PM"
src="https://github.com/user-attachments/assets/ba422cbb-4607-47c7-94c7-77752d7b4479"
/>

When viewing a branch diff (e.g., 'Changes since origin/main'), the
toolbar was hidden because `ProjectDiffToolbar` filters for
`DiffBase::Head` only. This meant users couldn't send review comments to
the Agent panel from the branch diff view.

Now there's a new `BranchDiffToolbar` which:
- Only activates for branch diff views (`DiffBase::Merge`)
- Shows only the 'Send Review to Agent' button (not stage/unstage
controls)
- Only appears when there are review comments (same behavior as the
existing toolbar)

(No release notes because this is still feature-flagged.)

Release Notes:

- N/A
```

## Parents

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

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