fix(agent-manager): restore subtitle, pr, and onOpenPR props in section renderWt (#8583)

This commit is contained in:
Marius
2026-04-08 13:52:33 +02:00
committed by GitHub
parent aa2d747798
commit e29befcf71
@@ -2332,6 +2332,7 @@ const AgentManagerContent: Component = () => {
<WorktreeItem
worktree={wt}
label={worktreeLabel(wt)}
subtitle={worktreeSubtitle(wt)}
active={selection() === wt.id}
pendingDelete={pendingDelete() === wt.id}
busy={busyWorktrees().has(wt.id)}
@@ -2349,6 +2350,12 @@ const AgentManagerContent: Component = () => {
renameValue={renameValue()}
closeKeybind={kb().closeWorktree ?? ""}
openKeybind={kb().openWorktree ?? ""}
pr={
prStatuses()[wt.id] !== undefined ? (prStatuses()[wt.id] ?? undefined) : undefined
}
onOpenPR={() =>
vscode.postMessage({ type: "agentManager.openPR", worktreeId: wt.id })
}
sections={sections()}
currentSectionId={wt.sectionId}
onMoveToSection={(secId) => moveToSection([wt.id], secId)}