# agent: Make branch diff completion use same default branch as branch diff action \(\#52223\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f1f21d8c83923a8813271b0e4d06a281bd471e28

Requested commit: f1f21d8c83923a8813271b0e4d06a281bd471e28

Commit: f1f21d8c83923a8813271b0e4d06a281bd471e28

Tree: 6ed1fb9beaa30c8b8e6647a4251902660faab405

Author: Anthony Eid

Committer: GitHub

## Message

```
agent: Make branch diff completion use same default branch as branch diff action (#52223)

## Context

Before this change the branch diff would compare with local main instead
of upstream main. This causes confusion because it's a different diff
than the branch diff action would show users, and cause agents to
potentially review a much larger diff then it has too.

## Self-Review Checklist

<!-- Check before requesting review: -->
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
```

## Parents

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

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