From 7d423cc0009e8c8e2661410189f4f3c5b8df2fd4 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Thu, 21 May 2026 20:00:06 -0300 Subject: [PATCH] sidebar: Remove pending indicator from header when visiting project again (#57454) Quick follow-up to https://github.com/zed-industries/zed/pull/57322. We weren't removing the pending notification when re-visiting the project that contains the pending thread (only while the project is still collapsed, though). Release Notes: - N/A --- crates/sidebar/src/sidebar.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/sidebar/src/sidebar.rs b/crates/sidebar/src/sidebar.rs index b02beeeee0..6eef174192 100644 --- a/crates/sidebar/src/sidebar.rs +++ b/crates/sidebar/src/sidebar.rs @@ -1632,6 +1632,12 @@ impl Sidebar { } } } + + if is_active + && let Some(ActiveEntry::Thread { thread_id, .. }) = self.active_entry.as_ref() + { + notified_threads.remove(thread_id); + } } let has_visible_rows = !threads.is_empty() || !terminals.is_empty();