From 09271a862a0d1391735be75937ef81c7a95747ba Mon Sep 17 00:00:00 2001 From: Eric Holk Date: Mon, 23 Mar 2026 14:18:00 -0700 Subject: [PATCH] Add a debug assert Co-authored-by: Richard Feldman --- crates/sidebar/src/sidebar.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/sidebar/src/sidebar.rs b/crates/sidebar/src/sidebar.rs index c1db65927f0319881ae15b4e581fc1912ee814df..881549bcffcd18924037a92b4427a54e64ce079f 100644 --- a/crates/sidebar/src/sidebar.rs +++ b/crates/sidebar/src/sidebar.rs @@ -812,6 +812,10 @@ impl Sidebar { } } } + debug_assert!( + pending.is_empty(), + "all workspaces should be absorbed by a parent" + ); // Build a mapping from worktree checkout paths → root repo paths so // that threads saved against a worktree checkout can be grouped under