fix(agent-manager): hide changes panel during worktree setup (#7196)

Close diff and review panels when a worktree enters setup mode and
contain the diff header z-index so it cannot bleed through the setup
overlay.
This commit is contained in:
Marius
2026-03-18 14:40:50 +01:00
committed by GitHub
parent d85430c0ea
commit db4bf938b9
2 changed files with 4 additions and 0 deletions
@@ -1099,6 +1099,9 @@ const AgentManagerContent: Component = () => {
)
setSelection(ev.worktreeId)
}
// Close diff/review panels — nothing to show during setup
setDiffOpen(false)
setReviewActive(false)
setSetup({ active: true, message: ev.message, branch: ev.branch, worktreeId: ev.worktreeId })
}
}
@@ -885,6 +885,7 @@ button.am-section-toggle:hover .am-section-label {
flex-direction: column;
flex: 1;
min-height: 0;
isolation: isolate;
}
.am-detail-split {