Skip to content

agent_ui: Enable mentioning branch diff with main#51235

Merged
danilo-leal merged 4 commits intomainfrom
mention-branch-diff
Mar 10, 2026
Merged

agent_ui: Enable mentioning branch diff with main#51235
danilo-leal merged 4 commits intomainfrom
mention-branch-diff

Conversation

@danilo-leal
Copy link
Copy Markdown
Member

As a follow up to the possibility of sending the branch diff to an agent review, this PR enables directly @-mentioning the content of your diff with main to the agent. Here's a quick video of it:

Screenshot.2026-03-10.at.7.35.mp4

Release Notes:

  • Agent: Enabled mentioning the branch diff with main.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 10, 2026
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Mar 10, 2026
@zed-codeowner-coordinator zed-codeowner-coordinator bot requested review from a team, benbrandt and rtfeldman and removed request for a team March 10, 2026 22:42
@danilo-leal danilo-leal merged commit b13a8e8 into main Mar 10, 2026
28 checks passed
@danilo-leal danilo-leal deleted the mention-branch-diff branch March 10, 2026 23:05
@DanTremonti
Copy link
Copy Markdown

Hi @danilo-leal, I just noticed that when I took an old branch, merged the changes from main/master branch to my feature branch, and used @Branch diff (with main/master), the agent included changes from those merge commits. With certain models (I think), the token count is simply too large. Could you consider having a look at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants