diff --git a/apps/desktop/src/app/right-sidebar/terminal/index.tsx b/apps/desktop/src/app/right-sidebar/terminal/index.tsx index f305b94ef00..9e063ccac54 100644 --- a/apps/desktop/src/app/right-sidebar/terminal/index.tsx +++ b/apps/desktop/src/app/right-sidebar/terminal/index.tsx @@ -22,22 +22,25 @@ export function TerminalTab({ cwd, onAddSelectionToChat }: TerminalTabProps) { cwd, onAddSelectionToChat }) + const takeover = useStore($terminalTakeover) const label = takeover ? 'Return to split view' : 'Focus terminal view' const toggleTakeover = () => { // Pre-select the Terminal tab so the slot is ready to host us on return. - if (takeover) setRightSidebarTab('terminal') + if (takeover) { + setRightSidebarTab('terminal') + } setTerminalTakeover(!takeover) } return (
-
- {shellName} +
+ {shellName}