From acb3ecef0c494fa8dbc346c08f722491182a192d Mon Sep 17 00:00:00 2001 From: Oleksiy Syvokon Date: Thu, 17 Jul 2025 13:08:20 +0300 Subject: [PATCH] Do not send project notifications when agent creates a file (#34610) Release Notes: - N/A --- crates/assistant_tool/src/action_log.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/assistant_tool/src/action_log.rs b/crates/assistant_tool/src/action_log.rs index dce1b0cdc1..ecbbcc785e 100644 --- a/crates/assistant_tool/src/action_log.rs +++ b/crates/assistant_tool/src/action_log.rs @@ -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(