Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ export function TerminalPane({ ctx, workspaceId }: TerminalPaneProps) {
[terminalId, connectionState],
);

// Physically move keyboard focus when this pane becomes active via hotkey (e.g. FOCUS_PANE_*)
useEffect(() => {
if (!ctx.isActive || !terminal) return;
terminal.focus();
}, [ctx.isActive, terminal]);

// biome-ignore lint/correctness/useExhaustiveDependencies: connectionState is intentionally included to trigger re-derive
const searchAddon = useMemo(
() => terminalRuntimeRegistry.getSearchAddon(terminalId),
Expand Down