- {/* Keep terminal tabs mounted so output streams across worktree switches. */}
{renderTerminalLayer({
state: terms,
onFocusPrompt: focusCtl.focus,
onFocusChange: focusCtl.report,
})}
- {/* Session-less context (e.g. a worktree mid-provisioning): the
- empty state lives in the main pane so the side terminal
- panel can render next to it. */}
{
}
openLocally(id)
}}
- onShowHistory={() => setHistory(true)}
+ onShowHistory={() => openHistory()}
onForkMessage={readOnly() ? undefined : handleForkSession}
onForkSession={readOnly() ? undefined : handleForkSession}
readonly={readOnly()}
@@ -2599,11 +2604,9 @@ const AgentManagerContent: Component = () => {
- {/* One inspector host for all right-side modes. It stays
- mounted while a side terminal is alive — hidden via
- .am-side-host-hidden (absolute + opacity), never
- unmounted, so xterm render loops keep streaming. */}
-