fix(agent-manager): fix version group splitting when sections exist (#8667)
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.
This commit is contained in:
@@ -2416,7 +2416,9 @@ const AgentManagerContent: Component = () => {
|
||||
</SectionHeader>
|
||||
)
|
||||
}
|
||||
return renderWt(item.wt, idx)
|
||||
const ug = ungrouped()
|
||||
const wtIdx = () => ug.indexOf(item.wt)
|
||||
return renderWt(item.wt, wtIdx, false, ug)
|
||||
}}
|
||||
</For>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user