Skip to content

agent: Use streaming diff when agent rewrites the entire file#51165

Draft
bennetbo wants to merge 14 commits intomainfrom
better-diffs
Draft

agent: Use streaming diff when agent rewrites the entire file#51165
bennetbo wants to merge 14 commits intomainfrom
better-diffs

Conversation

@bennetbo
Copy link
Copy Markdown
Member

@bennetbo bennetbo commented Mar 10, 2026

TODO:

  • Check change in multi-buffer
  • Add tests for compute_hunks

We now use a streaming line based-diff when the model decides to rewrite the entire file.

Main:

Screen.Recording.2026-03-10.at.09.33.47.mov

This branch:

Screen.Recording.2026-03-10.at.09.35.20.mov

Release Notes:

  • N/A

@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
@bennetbo bennetbo changed the title Better diffs agent: Use streaming diff when agent rewrites the entire file Mar 10, 2026
@bennetbo bennetbo self-assigned this Mar 11, 2026
@github-actions
Copy link
Copy Markdown

📏 PR Size: 931 lines changed (Size XL)

Please note: this PR exceeds the 400 LOC soft limit.

  • Consider splitting into separate PRs if the changes are separable
  • Ensure the PR description includes a guided tour in the "How to Review" section so reviewers know where to start

@zelenenka zelenenka removed the Size XL label Apr 9, 2026
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 large-pr staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants