ebcda1b50b
Top-level worktrees were passing the mixed topLevelItems index to isGroupStart/isGroupEnd which compared against sortedWorktrees — a different array. This caused grouped worktrees sharing the same groupId to render as separate version groups. Pass ungrouped() list and the correct index within it instead.