Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Ensure all progressive updates render at finish
Maximilian Roos29022365fef0
diff --git a/src/commands/list/collect.rs b/src/commands/list/collect.rsindex 63b9c3d92..694515e7c 100644--- a/src/commands/list/collect.rs+++ b/src/commands/list/collect.rs@@ -756,6 +756,15 @@ pub fn collect(if is_tty {// Interactive: morph footer → summary, keep rows in place+ // Do a final render pass to ensure all data is displayed+ // (progressive updates may have been clamped or timing-delayed)+ for (item_idx, pb) in progress_bars.iter().enumerate() {+ let rendered = layout+ .format_list_item_line(&all_items[item_idx], current_worktree_path.as_ref());+ let clamped = clamp(&rendered);+ pb.set_message(clamped);+ }+if let Some(pb) = spacer_pb.as_ref() {pb.finish(); // leave the blank line}diff --git a/src/commands/list/collect_progressive_impl.rs b/src/commands/list/collect_progressive_impl.rsindex 9a2a49b5e..920ec1d65 100644--- a/src/commands/list/collect_progressive_impl.rs+++ b/src/commands/list/collect_progressive_impl.rs@@ -310,11 +310,17 @@ fn spawn_ci_status<'scope>(fetch_ci: bool,tx: Sender<CellUpdate>,) {+ let item_idx = ctx.item_idx;+if !fetch_ci {+ // Send None to indicate "loaded but not fetched" (shows empty, not "⋯")+ let _ = tx.send(CellUpdate::CiStatus {+ item_idx,+ pr_status: None,+ });return;}- let item_idx = ctx.item_idx;let branch = ctx.branch.clone();let sha = ctx.commit_sha.clone();let path = ctx.repo_path.clone();