Do not send project notifications when agent creates a file (#34610)

Release Notes:

- N/A
This commit is contained in:
Oleksiy Syvokon 2025-07-17 13:08:20 +03:00 committed by GitHub
parent ad2bfa3edd
commit acb3ecef0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -331,16 +331,17 @@ impl ActionLog {
.get_mut(buffer)
.context("buffer not tracked")?;
if let ChangeAuthor::User = author {
tracked_buffer.has_unnotified_user_edits = true;
}
let rebase = cx.background_spawn({
let mut base_text = tracked_buffer.diff_base.clone();
let old_snapshot = tracked_buffer.snapshot.clone();
let new_snapshot = buffer_snapshot.clone();
let unreviewed_edits = tracked_buffer.unreviewed_edits.clone();
let edits = diff_snapshots(&old_snapshot, &new_snapshot);
if let ChangeAuthor::User = author
&& !edits.is_empty()
{
tracked_buffer.has_unnotified_user_edits = true;
}
async move {
if let ChangeAuthor::User = author {
apply_non_conflicting_edits(