@@ -156,8 +67,8 @@ export default function Terminal() {
onClick={() => activePaneId !== null && setPaneHost(activePaneId, h.id)}
className="rounded-md px-2 py-1.5 text-left text-sm transition-colors"
style={{
- background: activeTab.panes.find((p) => p.id === activePaneId)?.hostId === h.id ? 'rgba(200,164,52,0.15)' : 'transparent',
- color: activeTab.panes.find((p) => p.id === activePaneId)?.hostId === h.id ? GOLD : '#E8E6E0',
+ background: activePaneHostId === h.id ? 'rgba(200,164,52,0.15)' : 'transparent',
+ color: activePaneHostId === h.id ? GOLD : '#E8E6E0',
}}
>
{h.name}
@@ -165,7 +76,8 @@ export default function Terminal() {
))}
- Click a pane, then a host to connect it.
+ Click a pane, then a host to connect it. Sessions stay connected when
+ you switch pages — close a tab or pane to disconnect.
@@ -264,9 +176,9 @@ export default function Terminal() {
{activeTab.panes.map((pane) => (