Automatically keep edits if they are included in a commit (#32093)

Release Notes:

- Improved the review experience in the agent panel. Now, when you
commit changes (generated by the AI agent) using Git, Zed will
automatically dismiss the agent’s review UI for those changes. This
means you won’t have to manually “keep” or approve changes twice—just
commit, and you’re done.
This commit is contained in:
Antonio Scandurra
2025-06-04 19:54:24 +02:00
committed by GitHub
parent 8c1b549683
commit 4ac67ac5ae
11 changed files with 465 additions and 116 deletions
+2
View File
@@ -1387,6 +1387,7 @@ mod tests {
fs.set_head_for_repo(
path!("/project/.git").as_ref(),
&[("foo.txt".into(), "foo\n".into())],
"deadbeef",
);
fs.set_index_for_repo(
path!("/project/.git").as_ref(),
@@ -1523,6 +1524,7 @@ mod tests {
fs.set_head_for_repo(
path!("/project/.git").as_ref(),
&[("foo".into(), "original\n".into())],
"deadbeef",
);
cx.run_until_parked();